wuyuwei Posted October 8, 2014 Share Posted October 8, 2014 hello guys, I reference below http://community.jaspersoft.com/questions/824432/using-rest-service-aspnet my server is jasperreports-server-cp-5.6.0 my report name is "ttt" it path is "root/reports/" WebClient httpclient = new WebClient(); //Basic Auth httpclient.Credentials = new NetworkCredential("jasperadmin", "jasperadmin"); httpclient.Headers.Add("Content-Type", "application/x-www-form-urlencoded"); // Build resourceDescriptor string requestXml = ""; requestXml += "<resourceDescriptor name="ttt" wsType="reportUnit" uriString="/reports/ttt""; requestXml += " isNew="false">"; requestXml += "</resourceDescriptor>"; // Send PUT string requestAllResult = httpclient.UploadString("http://localhost:8080/jasperserver/rest_v2/reports/reports/ttt.HTML", "PUT", requestXml); when execute the string requestAllResult = httpclient.UploadString("..... I get error Message is 405 UnsupportedHttpVerb how should I do to solve it? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now