axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nguyen Anh-PT1427 <Anh.Ngu...@motorola.com>
Subject Getting DIME attachment from MS SOAP web service
Date Wed, 19 Feb 2003 20:54:35 GMT
Help,

I'm in a rush to get this working.  I'm trying to get a DIME attachment from a web server
(using MS SOAP Toolkit 3.0).  My code is  something like:

           String endpoint =
                    "http://okmg01:8080/PtkLCDRemoteInterface/TestWS.WSDL";
           Service  service = new Service();
           Call     call    = (Call) service.createCall();
           call.setTargetEndpointAddress( new java.net.URL(endpoint) );
           javax.xml.namespace.QName p0QName = new javax.xml.namespace.QName("", "aStrImageId");
           call.addParameter(p0QName, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema",
"string"), java.lang.String.class, javax.xml.rpc.ParameterMode.IN);
           javax.xml.namespace.QName p1QName = new javax.xml.namespace.QName("", "astrPassword");
           call.addParameter(p1QName, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema",
"string"), java.lang.String.class, javax.xml.rpc.ParameterMode.IN);
           call.setReturnType(new javax.xml.namespace.QName("http://omnitrak.org/TestWS/type/",
"UnknownBinaryContent"));
           call.setUseSOAPAction(true);
           call.setSOAPActionURI("http://omnitrak.org/TestWS/action/CTest.GetThumbnail");
           call.setOperationStyle("rpc");
           call.setOperationName(new javax.xml.namespace.QName("http://omnitrak.org/TestWS/message/",
"GetThumbnail"));

           Object resp = call.invoke(new Object[] {"0", ""});

----------------------------------
This is the error I get:

Feb 19, 2003 12:48:53 PM org.apache.axis.client.Call invoke 
INFO: Mapping Exception to AxisFault AxisFault  faultCode: Feb 19, 2003 12:48:53 PM org.apache.axis.client.Call
invoke INFO: Mapping Exception to AxisFault 
AxisFault  
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server  
faultString: SoapMapper:Restoring data into SoapMapper string failed  
faultActor: null  
faultDetail:  	errorInfo: 
<mserror:returnCode>-2147024809 : The parameter is incorrect. 
</mserror:returnCode><mserror:serverErrorInfo><mserror:description>SoapMapper:Restoring
data into SoapMapper string failed HRESULT=0x80070057: The parameter is incorrect.  - WSDLReader:None
of the matching operations for soapAction http://omnitrak.org/TestWS/action/CTest.GetThumbnail
could successfully load the incoming request. Potential typemapper problem HRESULT=0x80070057:
The parameter is incorrect.  - Server:One of the parameters supplied is invalid. HRESULT=0x80070057:
The parameter is incorrect. </mserror:description><mserror:source>SoapMapper</mserror:source></mserror:serverErrorInfo><mserror:callStack><mserror:callElement><mserror:component>SoapMapper</mserror:component><mserror:description>Restoring
data into SoapMapper string failed</mserror:description><mserror:returnCode>-2147024809
: The parameter is incorrect. </mserror:returnCode></mserror:callElement><mserror:callElement><mserror:component>WSDLReader</mserror:component><mserror:description>None
of the match!
in!
g operations for soapAction http://omnitrak.org/TestWS/action/CTest.GetThumbnail could successfully
load the incoming request. Potential typemapper problem</mserror:description><mserror:returnCode>-2147024809
: The parameter is incorrect. </mserror:returnCode></mserror:callElement><mserror:callElement><mserror:component>Server</mserror:component><mserror:description>One
of the parameters supplied is invalid.</mserror:description><mserror:returnCode>-2147024809
: The parameter is incorrect. </mserror:returnCode></mserror:callElement></mserror:callStack>

Mime
View raw message