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 <[EMAIL PROTECTED]>
Reply-To: Anne Thomas Manes <[EMAIL PROTECTED]>
To: [email protected]
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"
> 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 <[EMAIL PROTECTED]>
> >Reply-To: Anne Thomas Manes <[EMAIL PROTECTED]>
> >To: [email protected]
> >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 <[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"
> > > > > 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 <[EMAIL PROTECTED]>
> > > > > >Reply-To: Anne Thomas Manes <[EMAIL PROTECTED]>
> > > > > >To: [email protected]
> > > > > >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}
> > > > > > > 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
/**
* EndUserIdentifier.java
*
* This file was auto-generated from WSDL
* by the Apache Axis WSDL2Java emitter.
*/
package org.csapi.www.schema.parlayx.common.v1_0;
public class EndUserIdentifier implements java.io.Serializable
{
private org.apache.axis.types.URI value;
public EndUserIdentifier()
{
}
public org.apache.axis.types.URI getValue() {
return value;
}
public void setValue(org.apache.axis.types.URI value) {
this.value = value;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj)
{
if (!(obj instanceof EndUserIdentifier)) return false;
EndUserIdentifier other = (EndUserIdentifier) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.value==null && other.getValue()==null) ||
(this.value!=null &&
this.value.equals(other.getValue())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getValue() != null) {
_hashCode += getValue().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(EndUserIdentifier.class);
static {
typeDesc.setXmlType(new
javax.xml.namespace.QName("http://www.csapi.org/schema/parlayx/common/v1_0",
"EndUserIdentifier"));
org.apache.axis.description.ElementDesc elemField = new
org.apache.axis.description.ElementDesc();
elemField.setFieldName("value");
elemField.setXmlName(new javax.xml.namespace.QName("", "value"));
elemField.setXmlType(new
javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "anyURI"));
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}