axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Plorks mail" <plork...@hotmail.com>
Subject Re: Error in deserialization
Date Wed, 01 Jun 2005 12:33:45 GMT

Hello,

I've tried that but i get a type mismatch error - connot convert a String to 
EndUserIdentifier

Thanks for your help









>From: Anne Thomas Manes <atmanes@gmail.com>
>Reply-To: Anne Thomas Manes <atmanes@gmail.com>
>To: axis-user@ws.apache.org
>Subject: Re: Error in deserialization
>Date: Wed, 1 Jun 2005 08:19:36 -0400
>
>Very simple. Change these statements:
>
>     String callingparty = 
>"tel:+440123456789;vnd.bt.cli-presentation=available";
>     String calledparty = 
>"tel:+440123456789;vnd.bt.cli-presentation=available";
>
>to this:
>
>     EndUserIdentifier callingparty =
>"tel:+440123456789;vnd.bt.cli-presentation=available";
>     EndUserIdentifier calledparty =
>"tel:+440123456789;vnd.bt.cli-presentation=available";
>
>Anne
>
>On 5/31/05, Plorks mail <plork123@hotmail.com> wrote:
> > Hi Anne,
> >
> > I've created stubs as you have suggested and I have 4 packages with 
>several
> > java in each
> >
> > There one java file EndUserIdentifier.java
> >
> > I've then looked at the method i'm trying to call (makeACall) that look 
>like
> > this :
> >
> > public String makeACall(EndUserIdentifier callingParty, 
>EndUserIdentifier
> > calledParty, String charging)
> >
> > The parameters i'm trying to pass are :
> >
> > callingParty = "tel:+44123456789;vnd.bt.cli-presentation=available";
> > calledParty = "tel:+44123456789;vnd.bt.cli-presentation=available";
> > String charging ="9F"
> >
> > By looking at the method callingParty and calledParty must be of type
> > EndUserIdentifier, I think this is my problem, I am passing these values 
>in
> > as Strings but I must pass them in as EndUserIdentifier types but i'm 
>not
> > sure how i convert to this
> >
> > Am i looking in the right direction?  Can you help me convert my
> > callingParty and calledParty to type EndUserIdentifier?
> >
> > Thanks very much for your help
> >
> >
> >
> >
> >
> >
> >
> > >From: Anne Thomas Manes <atmanes@gmail.com>
> > >Reply-To: Anne Thomas Manes <atmanes@gmail.com>
> > >To: axis-user@ws.apache.org
> > >Subject: Re: Error in deserialization
> > >Date: Tue, 31 May 2005 08:34:38 -0400
> > >
> > >Kumar,
> > >
> > >This WSDL imports another WSDL and two schemas. Can you send us those 
>also?
> > >Also, can you tell us how you built and configured your client? I
> > >noticed that you're using the call interface. Have you tryied creating
> > >a stub client and invoking operations on the stub?
> > >
> > >Anne
> > >
> > >On 5/31/05, Plorks mail <plork123@hotmail.com> wrote:
> > > > Hello again
> > > >
> > > > Sorry clicked send too soon
> > > >
> > > > In the 2nd WSDL there's another reference to a WSDL, heres that WSDL
> > > >
> > > > Thanks for any help you can ofer, much apreciated
> > > >
> > > > P
> > > >
> > > >
> > > >   <?xml version="1.0" encoding="UTF-8" ?>
> > > > - <!--  March 5, 2003
> > > >   -->
> > > > - <wsdl:definitions name="common_faults"
> > > > 
>targetNamespace="http://www.csapi.org/wsdl/parlayx/common_faults/v1_0"
> > > > xmlns="http://schemas.xmlsoap.org/wsdl/"
> > > > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> > > > xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> > > > - <wsdl:message name="UnknownEndUserException">
> > > >   <wsdl:part name="UnknownEndUserException" type="xsd:string" />
> > > >   </wsdl:message>
> > > > - <wsdl:message name="InvalidArgumentException">
> > > >   <wsdl:part name="InvalidArgumentException" type="xsd:string" />
> > > >   </wsdl:message>
> > > > - <wsdl:message name="ServiceException">
> > > >   <wsdl:part name="ServiceException" type="xsd:string" />
> > > >   </wsdl:message>
> > > > - <wsdl:message name="PolicyException">
> > > >   <wsdl:part name="PolicyException" type="xsd:string" />
> > > >   </wsdl:message>
> > > > - <wsdl:message name="ApplicationException">
> > > >   <wsdl:part name="ApplicationException" type="xsd:string" />
> > > >   </wsdl:message>
> > > > - <wsdl:message name="MessageTooLongException">
> > > >   <wsdl:part name="MessageTooLongException" type="xsd:string" />
> > > >   </wsdl:message>
> > > >   </wsdl:definitions>
> > > >
> > > >
> > > >
> > > > >From: Anne Thomas Manes <atmanes@gmail.com>
> > > > >Reply-To: Anne Thomas Manes <atmanes@gmail.com>
> > > > >To: axis-user@ws.apache.org
> > > > >Subject: Re: Error in deserialization
> > > > >Date: Sat, 28 May 2005 17:36:15 -0400
> > > > >
> > > > >Kumar,
> > > > >
> > > > >The WSDL you sent me contains this import:
> > > > >
> > > > ><wsdl:import
> > > >
> > > 
> >namespace="http://www.csapi.org/wsdl/parlayx/third_party_calling/v1_0/service_port"
> > > > >location="parlayx_third_party_calling_service_port.wsdl" />
> > > > >
> > > > >This imported WSDL contains the <types>, <message>, and
<portType>
> > > > >definitions. I need to see this WSDL to answer your questions.
> > > > >
> > > > >Anne
> > > > >
> > > > >On 5/28/05, Plorks mail <plork123@hotmail.com> wrote:
> > > > > >
> > > > > >
> > > > > > Sorry about the sending, i just clicked reply, didn't notice
it
> > >wasn't
> > > > >the
> > > > > > axis-user
> > > > > >
> > > > > > What do you mean by the imported WSDL document?
> > > > > >
> > > > > > Many thanks for nay help
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > >We also need the imported WSDL document.
> > > > > > >
> > > > > > >One problem I noticed with this WSDL is that it uses "rpc"

>style,
> > >but
> > > > > > >it doesn't specify a namespace attribute in the <soap:body>
> > > > > > >descriptions.
> > > > > > >
> > > > > > >Thanks,
> > > > > > >Anne
> > > > > > >
> > > > > > >On 5/27/05, Plorks mail <plork123@hotmail.com> wrote:
> > > > > > > >
> > > > > > > > Here is the WSDL
> > > > > > > >
> > > > > > > > Thanks for any help
> > > > > > > >
> > > > > > > >
> > > > > > > > <?xml version="1.0" encoding="UTF-8" ?>
> > > > > > > > - <!--  March 17, 2003
> > > > > > > >   -->
> > > > > > > > - <wsdl:definitions name="third_party_calling_service"
> > > > > > > >
> > > > > >
> > > > >
> > > 
> >targetNamespace="http://www.csapi.org/wsdl/parlayx/third_party_calling/v1_0/service"
> > > > > > > > xmlns="http://schemas.xmlsoap.org/wsdl/"
> > > > > > > > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> > > > > > > > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> > > > > > > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > > > > > > >
> > > > > >
> > > > >
> > > 
> >xmlns:tns="http://www.csapi.org/wsdl/parlayx/third_party_calling/v1_0/service"
> > > > > > > >
> > > > > >
> > > > >
> > > 
> >xmlns:port="http://www.csapi.org/wsdl/parlayx/third_party_calling/v1_0/service_port">
> > > > > > > >   <wsdl:import
> > > > > > > >
> > > > > >
> > > > >
> > > 
> >namespace="http://www.csapi.org/wsdl/parlayx/third_party_calling/v1_0/service_port"
> > > > > > > > location="parlayx_third_party_calling_service_port.wsdl"
/>
> > > > > > > > - <wsdl:binding name="ThirdPartyCallBinding"
> > > > > > >type="port:ThirdPartyCallPort">
> > > > > > > >   <soap:binding style="rpc"
> > > > > > >transport="http://schemas.xmlsoap.org/soap/http"
> > > > > > > > />
> > > > > > > > - <wsdl:operation name="makeACall">
> > > > > > > >   <soap:operation soapAction="ThirdPartyCall#makeACall"
> > >style="rpc"
> > > > >/>
> > > > > > > > - <wsdl:input>
> > > > > > > >   <soap:body use="literal" />
> > > > > > > >   </wsdl:input>
> > > > > > > > - <wsdl:output>
> > > > > > > >   <soap:body use="literal" />
> > > > > > > >   </wsdl:output>
> > > > > > > > - <wsdl:fault name="UnknownEndUserException">
> > > > > > > >   <soap:fault use="literal" />
> > > > > > > >   </wsdl:fault>
> > > > > > > > - <wsdl:fault name="InvalidArgumentException">
> > > > > > > >   <soap:fault use="literal" />
> > > > > > > >   </wsdl:fault>
> > > > > > > > - <wsdl:fault name="ServiceException">
> > > > > > > >   <soap:fault use="literal" />
> > > > > > > >   </wsdl:fault>
> > > > > > > >   </wsdl:operation>
> > > > > > > > - <wsdl:operation name="getCallInformation">
> > > > > > > >   <soap:operation 
>soapAction="ThirdPartyCall#getCallInformation"
> > > > > > >style="rpc"
> > > > > > > > />
> > > > > > > > - <wsdl:input>
> > > > > > > >   <soap:body use="literal" />
> > > > > > > >   </wsdl:input>
> > > > > > > > - <wsdl:output>
> > > > > > > >   <soap:body use="literal" />
> > > > > > > >   </wsdl:output>
> > > > > > > > - <wsdl:fault name="UnknownCallIdentifierException">
> > > > > > > >   <soap:fault use="literal" />
> > > > > > > >   </wsdl:fault>
> > > > > > > > - <wsdl:fault name="ServiceException">
> > > > > > > >   <soap:fault use="literal" />
> > > > > > > >   </wsdl:fault>
> > > > > > > >   </wsdl:operation>
> > > > > > > > - <wsdl:operation name="endCall">
> > > > > > > >   <soap:operation soapAction="ThirdPartyCall#endCall"
> > >style="rpc" />
> > > > > > > > - <wsdl:input>
> > > > > > > >   <soap:body use="literal" />
> > > > > > > >   </wsdl:input>
> > > > > > > > - <wsdl:output>
> > > > > > > >   <soap:body use="literal" />
> > > > > > > >   </wsdl:output>
> > > > > > > > - <wsdl:fault name="CallTerminatedException">
> > > > > > > >   <soap:fault use="literal" />
> > > > > > > >   </wsdl:fault>
> > > > > > > > - <wsdl:fault name="UnknownCallIdentifierException">
> > > > > > > >   <soap:fault use="literal" />
> > > > > > > >   </wsdl:fault>
> > > > > > > > - <wsdl:fault name="ServiceException">
> > > > > > > >   <soap:fault use="literal" />
> > > > > > > >   </wsdl:fault>
> > > > > > > >   </wsdl:operation>
> > > > > > > > - <wsdl:operation name="cancelCallRequest">
> > > > > > > >   <soap:operation 
>soapAction="ThirdPartyCall#cancelCallRequest"
> > > > > > >style="rpc"
> > > > > > > > />
> > > > > > > > - <wsdl:input>
> > > > > > > >   <soap:body use="literal" />
> > > > > > > >   </wsdl:input>
> > > > > > > > - <wsdl:output>
> > > > > > > >   <soap:body use="literal" />
> > > > > > > >   </wsdl:output>
> > > > > > > > - <wsdl:fault name="CallConnectedException">
> > > > > > > >   <soap:fault use="literal" />
> > > > > > > >   </wsdl:fault>
> > > > > > > > - <wsdl:fault name="UnknownCallIdentifierException">
> > > > > > > >   <soap:fault use="literal" />
> > > > > > > >   </wsdl:fault>
> > > > > > > > - <wsdl:fault name="ServiceException">
> > > > > > > >   <soap:fault use="literal" />
> > > > > > > >   </wsdl:fault>
> > > > > > > >   </wsdl:operation>
> > > > > > > >   </wsdl:binding>
> > > > > > > > - <wsdl:service name="ThirdPartyCallService">
> > > > > > > > - <wsdl:port name="ThirdPartyCallPort"
> > > > > > >binding="tns:ThirdPartyCallBinding">
> > > > > > > >   <soap:address
> > > > > > > >
> > > > > >
> > > > >
> > > 
> >location="http://www.wwcc.bt.com:9000/ccx/parlayx_third_party_calling_service"
> > > > > > > > />
> > > > > > > >   </wsdl:port>
> > > > > > > >   </wsdl:service>
> > > > > > > >   </wsdl:definitions>
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > >From: Anne Thomas Manes <atmanes@gmail.com>
> > > > > > > > >Reply-To: Anne Thomas Manes <atmanes@gmail.com>
> > > > > > > > >To: axis-user@ws.apache.org
> > > > > > > > >Subject: Re: Error in deserialization
> > > > > > > > >Date: Fri, 27 May 2005 08:43:59 -0400
> > > > > > > > >
> > > > > > > > >Can you provide us with the WSDL?
> > > > > > > > >
> > > > > > > > >Somewhere in either the request or response message
there 
>is an
> > > > > > > > >element of type EndUserIdentifier, and it appears
that this
> > >element
> > > > > > > > >isn't mapping properly.
> > > > > > > > >
> > > > > > > > >Anne
> > > > > > > > >
> > > > > > > > >On 5/27/05, Plorks mail <plork123@hotmail.com>
wrote:
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > Hi all
> > > > > > > > > >
> > > > > > > > > > I'm trying to access an external web service
and get 
>this
> > >error
> > > > >when
> > > > > > >it
> > > > > > > > >gets
> > > > > > > > > > to this line
> > > > > > > > > >
> > > > > > > > > > String result = (String)call.invoke(new
Object[] 
>{param1,
> > > > >param2,
> > > > > > > > >param3});
> > > > > > > > > >
> > > > > > > > > > Error in deserialization : failed deserializing
value of
> > >type
> > > > > > > > > > {http://www.api.org/schema/par/common/v1_0}
> > > > > > > > > > EndUserIdentifier into class
> > > > > > >org.api.www.par.common.EndUserIdentifier
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > I'm been back to the supplier of the web
service but i'm 
>not
> > > > >getting
> > > > > > > > >much
> > > > > > > > > > help from them.  Does anyone know what this
error means. 
>  I
> > >have
> > > > >to
> > > > > > >pass
> > > > > > > > >up
> > > > > > > > > > username and password in the http header
and using the
> > > > > > >passweord/usernme
> > > > > > > > > > they gave me
> > > > > > > > > >
> > > > > > > > > > This is my code
> > > > > > > > > >
> > > > > > > > > > Can anyone see anything outstandingly wrong
in my code
> > > > > > > > > >
> > > > > > > > > > Thanks for any help
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > URL endpoint = new URL
> > > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > >
> > > 
> >("http://www.domain.com:9000/ccx/par_third_party_calling_service/encoded");
> > > > > > > > > >
> > > > > > > > > > Service service = new Service();
> > > > > > > > > >
> > > > > > > > > > Call call = (Call)service.createCall();
> > > > > > > > > >
> > > > > > > > > > call.setTargetEndpointAddress(endpoint);
> > > > > > > > > >
> > > > > > > > > > call.setOperationName("methodName");
> > > > > > > > > >
> > > > > > > > > > call.setUsername("username");
> > > > > > > > > >
> > > > > > > > > > call.setPassword("password");
> > > > > > > > > >
> > > > > > > > > > String result = (String)call.invoke(new
Object[] 
>{param1,
> > > > >param2,
> > > > > > > > >param3});
> > > > > > > > > >
> > > > > > > > > > System.out.println("call result " + result);
> > > > > > > > > >
> > > > > > > > > >
> > > > >_________________________________________________________________
> > > > > > > > > > Want to block unwanted pop-ups? Download
the free MSN
> > >Toolbar
> > > > >now!
> > > > > > > > > > http://toolbar.msn.co.uk/
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > > > >
> > >_________________________________________________________________
> > > > > > > > Winks & nudges are here - download MSN Messenger
7.0 today!
> > > > > > > > http://messenger.msn.co.uk
> > > > > > > >
> > > > > > > >
> > > > > >
> > > > > > 
>_________________________________________________________________
> > > > > > Be the first to hear what's new at MSN - sign up to our free
> > > > >newsletters!
> > > > > > http://www.msn.co.uk/newsletters
> > > > > >
> > > > > >
> > > >
> > > > _________________________________________________________________
> > > > Be the first to hear what's new at MSN - sign up to our free
> > >newsletters!
> > > > http://www.msn.co.uk/newsletters
> > > >
> > > >
> >
> > _________________________________________________________________
> > It's fast, it's easy and it's free. Get MSN Messenger 7.0 today!
> > http://messenger.msn.co.uk
> >
> >
> >

_________________________________________________________________
Be the first to hear what's new at MSN - sign up to our free newsletters! 
http://www.msn.co.uk/newsletters


Mime
View raw message