tko_eric Posted February 17, 2010 Share Posted February 17, 2010 I'm trying to upload a report onto Jasper. I'm using .NET and the Microsoft WSE library which only supports DIME attachments. I have been able to successfully call "runReport" and download a PDF. Here's the request:<request operationName="put" locale="en-US"> <argument name="USE_DIME_ATTACHMENTS"></argument> <resourceDescriptor name="EricsTest" wsType="reportUnit" uriString="/reports" isNew="true"> <label>Eric's Test</label> <description>Eric's Jasper Installer Test Report</description> <resourceProperty name="PROP_PARENT_FOLDER"><value>/reports</value></resourceProperty> <resourceDescriptor name="test.jrxml" wsType="jrxml" uriString="/reports/EricsTest_files" isNew="true"> <label>test.jrxml</label> <resourceProperty name="PROP_PARENT_FOLDER"><value>/reports/EricsTest_files</value></resourceProperty> <resourceProperty name="PROP_RU_IS_MAIN_REPORT"><value>true</value></resourceProperty> <resourceProperty name="PROP_HAS_DATA"><value>true</value></resourceProperty> </resourceDescriptor> </resourceDescriptor></request>and the response:<operationResult version="2.0.1"> <returnCode><![CDATA[0]]></returnCode> <resourceDescriptor name="reports" wsType="folder" uriString="/reports" isNew="false"> <label><![CDATA[Reports]]></label> <description><![CDATA[Reports]]></description> <creationDate>1265126881000</creationDate> <resourceProperty name="PROP_HAS_DATA"> <value><![CDATA[false]]></value> </resourceProperty> <resourceProperty name="PROP_RESOURCE_TYPE"> <value><![CDATA[com.jaspersoft.jasperserver.api.metadata.common.domain.Folder]]></value> </resourceProperty> <resourceProperty name="PROP_PARENT_FOLDER"> <value><![CDATA[/]]></value> </resourceProperty> <resourceProperty name="PROP_VERSION"> <value><![CDATA[0]]></value> </resourceProperty> </resourceDescriptor></operationResult> everything looks okay, but the Report never shows up in the web interface. Also, if I try to upload an image into the reportUnit, I get "The resource was not found". Is something wrong with my put request, or are DIME attachments not supported on put?Thanks! 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