You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@xml.apache.org by Javier Galindo <hg...@engineer.com> on 2001/01/12 18:18:49 UTC
Re: Problems with SOAP client AGAIN..
Sorry, i mean not using in the server IBM SOAP, using Microsoft on the server and
apache soap in the client.
Javier Galindo wrote:
> Hi,
>
> any of you has made function properly a soap client not using IBM SOAP? i mean
> using Microsoft?
>
> I'm getting the following error trying to do that:
>
> this is the code:
>
> String encodingStyleURI = Constants.NS_URI_SOAP_ENC;
> URL url = new URL ("http://sfcbdesarrollo1/ICRM/integ/services.asp");
> // Build the call.
> Call call = new Call ();
> call.setTargetObjectURI ("RutinasSuite");
> call.setMethodName ("PruebaObtHora");
> call.setEncodingStyleURI(encodingStyleURI);
> Vector params = new Vector ();
> Parameter pTemp = new Parameter("parametro", String.class, "hola",
> Constants.ATTR_ENCODING_STYLE);
> // pTemp.setEncodingStyleURI("http://schemas.xmlsoap.org/soap/encoding/");
> params.addElement (pTemp);
> call.setParams (params);
>
> // make the call: note that the action URI is empty because the
> // XML-SOAP rpc router does not need this. This may change in the
> // future.
> Response resp = null;
> resp = call.invoke (/* router URL */ url, /* actionURI */ "" );
> // Check the response.
> if (resp.generatedFault ()) {
> Fault fault = resp.getFault ();
> System.out.println ("Ouch, the call failed: ");
> System.out.println (" Fault Code = " + fault.getFaultCode ());
> System.out.println (" Fault String = " + fault.getFaultString ());
> System.out.println (" Fault Actor URI = " + fault.getFaultActorURI());
> System.out.println (" Fault Entries = " + fault.getFaultEntries());
> System.out.println (" Fault toString = " + fault.toString());
> } else {
> Parameter result = resp.getReturnValue ();
> System.out.println (result.getValue ());
> }
>
> this is the error:
>
> [SOAPException: faultCode=SOAP-ENV:Client; msg=No Serializer found to serialize
> a 'org.apache.soap.rpc.Parameter' using encoding style 'encodingStyle'.;
> targetException=java.lang.IllegalArgumentException: No Serializer found to
> serialize a 'org.apache.soap.rpc.Parameter' using encoding style
> 'encodingStyle'.]
> at
> org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:115)
>
> at org.apache.soap.rpc.Call.invoke(Call.java:145)
> at samples.stockquote.GetQuote.main(GetQuote.java:116)
> Exception in thread "main"
>
> Thanks in advance..
>
> Javier