It appears Journyx is not sending type information for the result (which
would be typical for Microsoft-based services or doc/lit ones in
general).  You must therefore map the QName("", "Result") to the type
and deserializer you expect to be returned.  This mapping may change
depending on the method called.  For example,

 smr.mapTypes(
 Constants.NS_URI_SOAP_ENC,
 new QName("", "Result"),
 UserRecord.class,
 null,
 beanSer);

Scott Nichol

----- Original Message -----
From: "Justin F. Knotzke" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 02, 2002 4:50 PM
Subject: Re: Journyx API


> On Mon, Dec 02, 2002 at 03:51:58PM -0500, Scott Nichol wrote:
>
>    First off, I would like to thank you for your reply.
>
>    Here is what I have done. Declared globally to my Object I have:
>
> private SOAPMappingRegistry smr = new SOAPMappingRegistry();
> private BeanSerializer beanSer = new BeanSerializer();
>
>     Then when I make the call I do:
>
>     protected Parameter doCall(String method, Vector vectParam)
> {
>
> smr.mapTypes(
> Constants.NS_URI_SOAP_ENC,
> new QName("http://www.journyx.com/jxapi";, "UserRecord"),
> UserRecord.class,
> beanSer,
> beanSer);
>
> Call call = new Call();
> call.setMethodName(method);
> call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);
>     call.setSOAPMappingRegistry(smr);
>
> //Set them in the call
> if (vectParam.size() > 0)
> call.setParams(vectParam);
>
> try
> {
> // Invoke the call
> Response response;
> response = call.invoke(sessionURL, "");
>
> //Check the return code
> if (!response.generatedFault())
> {
> //Get the return values of the method called
> Parameter returnValue = response.getReturnValue();
> return returnValue;
>
>              ...
>
>
>      My UserRecord.java is exactly as you wrote. I am trying to call
> getDefaultUser() in the Journyx API.
>
>      After call.invoke(..) is called the following error is returned:
>
>      [SOAPException: faultCode=SOAP-ENV:Client; msg=No Deserializer
> found to deserialize a ':Result' using encoding style
> 'http://schemas.xmlsoap.org/soap/encoding/'.;
> targetException=java.lang.IllegalArgumentException: No Deserializer
> found to deserialize a ':Result' using encoding style
> 'http://schemas.xmlsoap.org/soap/encoding/'.]
>
>
>      Thank You
>
>      Justin Knotzke.
>
>
>
>
> --
> Justin F. Knotzke
> [EMAIL PROTECTED]
> http://www.shampoo.ca
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to