Hi,
I just stumbled over this question and I guess you have solved the problem 
yourself by now, but in case you haven't, here are some hints...
The EndUserIdentifier is defined in an xml-schema.
You can find this schema at
http://uddi.bt.com/WSDL/parlayx/thirdpartycallservice/rpc-lit/parlayx_common_types.xsd
or download all the files from www.parlay.org 
(but then you need to know which version to select and you will have to edit 
the location URL to point to the correct server)

Anyway, here is what the EndUserIdentifier looks like:

<xsd:complexType name="EndUserIdentifier">
   <xsd:sequence>
      <xsd:element name="value" type="xsd:anyURI"/>
   </xsd:sequence>
</xsd:complexType>

Axis will map this to the java type org.apache.axis.types.URI

And here is what your code might look like:

org.apache.axis.types.URI callingParty = 
        new 
org.apache.axis.types.URI("tel:+440123456789;vnd.bt.cli-presentation=available";);

Note that when you compile the wsdl files with axis wsdl2java, all the wsdl and 
xml-schema files must be present in the same directory.
Unfortunately the wsdl2java does, as far as I know, not have any equivalence to 
javas classpath. It just assumes that files imported into a wsdl are in the 
same directory.


Regards,
Andreas Bjarlestam





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 <[EMAIL PROTECTED]>
        Reply-To: Anne Thomas Manes <[EMAIL PROTECTED]>
        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%22>;; String calledparty = 
" <tel:+440123456789;vnd.bt.cli-presentation=available%22>;; 

        to this:
        
            EndUserIdentifier callingparty =
        " <tel:+440123456789;vnd.bt.cli-presentation=available%22>;;
            EndUserIdentifier calledparty =
        " <tel:+440123456789;vnd.bt.cli-presentation=available%22>;;
        
        Anne
        
        On 5/31/05, Plorks mail <[EMAIL PROTECTED]> 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%22>;;
        > calledParty = " 
<tel:+44123456789;vnd.bt.cli-presentation=available%22>;;
        > 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 <[EMAIL PROTECTED]>
        > >Reply-To: Anne Thomas Manes <[EMAIL PROTECTED]>
        > >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 <[EMAIL PROTECTED]> 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%22>; 
        > > > xmlns=" <http://schemas.xmlsoap.org/wsdl/%22>;
        > > > xmlns:wsdl=" <http://schemas.xmlsoap.org/wsdl/%22>;
        > > > xmlns:xsd=" <http://www.w3.org/2001/XMLSchema%22>;>
        > > > - <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 <[EMAIL PROTECTED]>
        > > > >Reply-To: Anne Thomas Manes <[EMAIL PROTECTED]>
        > > > >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%22>; 
        > > > >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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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%22>; 
        > > > > > > > xmlns=" <http://schemas.xmlsoap.org/wsdl/%22>;
        > > > > > > > xmlns:wsdl=" <http://schemas.xmlsoap.org/wsdl/%22>;
        > > > > > > > xmlns:soap=" <http://schemas.xmlsoap.org/wsdl/soap/%22>;
        > > > > > > > xmlns:xsd=" <http://www.w3.org/2001/XMLSchema%22>;
        > > > > > > >
        > > > > >
        > > > >
        > > >xmlns:tns=" 
<http://www.csapi.org/wsdl/parlayx/third_party_calling/v1_0/service%22>; 
        > > > > > > >
        > > > > >
        > > > >
        > > >xmlns:port=" 
<http://www.csapi.org/wsdl/parlayx/third_party_calling/v1_0/service_port%22>;> 
        > > > > > > >   <wsdl:import
        > > > > > > >
        > > > > >
        > > > >
        > > >namespace=" 
<http://www.csapi.org/wsdl/parlayx/third_party_calling/v1_0/service_port%22>; 
        > > > > > > > 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%22>;
        > > > > > > > />
        > > > > > > > - <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%22>; 
        > > > > > > > />
        > > > > > > >   </wsdl:port>
        > > > > > > >   </wsdl:service>
        > > > > > > >   </wsdl:definitions>
        > > > > > > >
        > > > > > > >
        > > > > > > >
        > > > > > > >
        > > > > > > >
        > > > > > > > >From: Anne Thomas Manes <[EMAIL PROTECTED]>
        > > > > > > > >Reply-To: Anne Thomas Manes <[EMAIL PROTECTED]>
        > > > > > > > >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 <[EMAIL PROTECTED]> 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%7D>
        > > > > > > > > > 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%22>;); 
        > > > > > > > > >
        > > > > > > > > > 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>
        >
        >
        >

Reply via email to