Quantcast
Channel: Adobe Community : All Content - ColdFusion
Viewing all articles
Browse latest Browse all 5979

How to get a zip file from webservice

$
0
0

Hi,

 

I'm trying to get a zip file from a NET web service but I get this error:

 

Cannot perform web service invocation GetPolicy.

The fault returned when invoking the web service operation is:
org.apache.axis2.AxisFault: Must Understand check failed for header http://tempuri.org/ : FileName at org.apache.axis2.engine.AxisEngine.checkMustUnderstand(AxisEngine.java:105) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:171) at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:364) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165) at org.tempuri.EmissionServiceStub.getPolicy(EmissionServiceStub.java:222) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at coldfusion.xml.rpc.Axis2S... '

 

This is my code.

 

<cfinvoke webservice = "http://URL.com.mx/IntegrationService/EmissionService.svc?wsdl"

          method = "GetPolicy"

          returnvariable="aString" >

        <cfinvokeargument name="clave" value="ABCR2O14"/>

        <cfinvokeargument name="producto" value="ABCGUA"/>

        <cfinvokeargument name="llave" value="ABC53D35OUHGX2O14"/>

        <cfinvokeargument name="fileExtension" value="zip"/>

        <cfinvokeargument name="policy" value="001_PRO-RCSED_00000002_01_0"/>

        <cfinvokeargument name="fileName" value="caratula"/>       

    </cfinvoke>

 

The result must have a binary file I must use the content type "Application/Octet-Stream" and a header "Content-Disposition".

 

I don't know if I have to use CFHTTP for get the file.

 

Any recomendation?


Viewing all articles
Browse latest Browse all 5979

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>