tlapinski
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forum
Events
Featured Visualizations
Knowledge Base
Documentation (PDF Downloads)
Blog
Documentation (Test Area)
Documentation
Dr. Jaspersoft Webinar Series
Downloads
Posts posted by tlapinski
-
-
Hi,
We have the same issue, did you find any solution for it ?
Thanks
Problem with content type of 'multipart/related;
in Products
Posted
Hi
I am trying to run "runReport" call from c# using web service
ManagementServiceService managementServiceService = new ManagementServiceService(); System.Net.NetworkCredential c = new System.Net.NetworkCredential("mylogin", "mypass" ); managementServiceService.Credentials = c;
StringBuilder stringBuilder = new StringBuilder();
stringBuilder.Append("<request operationName="runReport" locale="en">");
stringBuilder.Append("<argument name="RUN_OUTPUT_FORMAT">HTML</argument>");
stringBuilder.Append("<resourceDescriptor name="" uriString="/reports/samples/myReport" isNew="false">"); stringBuilder.Append("<parameter name="start_date">1223589600000</parameter>");
stringBuilder.Append("<parameter name="end_date">1232381403593</parameter>");
stringBuilder.Append("</resourceDescriptor>");
stringBuilder.Append("</request>");
managementServiceService.runReport(stringBuilder.ToString());
After this call i recive next exception:
Client found response content type of 'multipart/related; type="text/xml"; start="<E47B0BE9207D67110DF7FF9DA7051919>"; boundary="----=_Part_83_32839007.1232456762721"', but expected 'text/xml'.
The request failed with the error message:
--
------=_Part_83_32839007.1232456762721
Content-Type: text/xml; charset=UTF-8
Content-Transfer-Encoding: binary
Content-Id: <E47B0BE9207D67110DF7FF9DA7051919>
<?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><ns1:runReportResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://axis2.ws.jasperserver.jaspersoft.com"><runReportReturn xsi:type="xsd:string"><?xml version="1.0" encoding="UTF-8"?>
<operationResult version="2.0.1">
<returnCode><![CDATA[0]]></returnCode>
</operationResult>
</runReportReturn></ns1:runReportResponse></soapenv:Body></soapenv:Envelope>
------=_Part_83_32839007.1232456762721
Content-Type: image/jpeg
Content-Transfer-Encoding: binary
Content-Id: <img_0_0_4>
???? JFIF H H ?? C ?? C?? / ??
?? r !1"A#2Qaq?8Bw????$367RWbu?????49CSXrvx???????%&HVc?????
..............
any idea how to fix this issue and get return data using "runReport" ?
Post Edited by Tomasz L. at 01/20/09 13:30