Hi Anne,
Here are the 3 links to the WSDL files
http://uddi.bt.com/WSDL/parlayx/thirdpartycallservice/rpc-lit/parlayx_third_party_calling_service.wsdl
http://uddi.bt.com/WSDL/parlayx/thirdpartycallservice/rpc-lit/parlayx_third_party_calling_service_port.wsdl
http://uddi.bt.com/WSDL/parlayx/thirdpartycallservice/rpc-lit/parlayx_common_faults.wsdl
I can't see the reference to the schemas. Are they in the
parlayx_common_faults.wsdl file?
I have created a stub client but i'm unsure how to call it. I'm familiar
with the Call interface and know how to use it. I've inc. my java file to
invoke their uddi regesrty and call the method passing the parameters
Thanks 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
>
>
_________________________________________________________________
Be the first to hear what's new at MSN - sign up to our free newsletters!
http://www.msn.co.uk/newsletters
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import org.uddi4j.UDDIException;
import org.uddi4j.client.UDDIProxy;
import org.uddi4j.datatype.Name;
import org.uddi4j.datatype.binding.BindingTemplate;
import org.uddi4j.datatype.binding.BindingTemplates;
import org.uddi4j.datatype.binding.AccessPoint;
import org.uddi4j.datatype.business.BusinessEntity;
import org.uddi4j.datatype.service.BusinessService;
import org.uddi4j.request.GetServiceDetail;
import org.uddi4j.response.*;
import org.uddi4j.util.ServiceKey;
import org.uddi4j.transport.TransportException;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Vector;
public class testbtuddi
{
private static String inquiryURL =
"http://uddi.bt.com/uddipublic/inquire.asmx";
//serviceEntity name to use
private static String localServiceName;
//UDDI proxy object representing the UDDI registry.
private static UDDIProxy uddiProxy;
private static String localServiceURI = null;
public static void main(String[] args)
{
try
{
boolean goodbad = false;
testbtuddi x = new testbtuddi();
goodbad = x.FindParlayXAccessPoint();
if (goodbad)
{
System.out.println("Success!");
String callingparty =
"tel:+440123456789;vnd.bt.cli-presentation=available";
String calledparty =
"tel:+440123456789;vnd.bt.cli-presentation=available";
int maxChargeParam = 159;
String charging =
Integer.toHexString(maxChargeParam);
URL endpoint = new URL(localServiceURI);
Service service = new Service();
Call call = (Call)service.createCall();
call.setTargetEndpointAddress(endpoint);
call.setOperationName("makeACall");
call.setUsername("username");
call.setPassword("password");
String result = (String)call.invoke(new Object[] {callingparty,
calledparty, charging});
System.out.println("call result " + result);
}
else
{
System.out.println("Failed.");
}
}
catch (Exception e)
{
e.printStackTrace();
}
}
public boolean FindParlayXAccessPoint()
{
System.out.println("\nIBM WEBSPHERE UDDI REGISTRY -
InquireWithIBM");
System.out.println("----------------------------------------------");
initialize();
try
{
System.out.println("\nFINDING SERVICE: " + localServiceName +
"\n-----------------");
//Create new Vector of Names to search for.
Vector names = new Vector();
names.add(new Name(localServiceName));
//Get list of services by name only, using vector of names created
above.
ServiceList serviceList = uddiProxy.find_service(null, names, null, null,
null, 0);
ServiceInfos serviceInfos =
serviceList.getServiceInfos();
if (serviceInfos == null)
{
System.out.println("ServiceInfos is null.");
return false;
}
Vector serviceInfoVector =
serviceInfos.getServiceInfoVector();
ServiceInfo serviceInfo;
for (int x = 0; x < serviceInfoVector.size(); x++)
{
serviceInfo = (ServiceInfo)
serviceInfoVector.elementAt(x);
doGetServiceDetail(serviceInfo.getServiceKey());
localServiceName =
serviceInfo.getName().getText();
}
System.out.println("FindParlayXAccessPoint
successful!");
System.out.println("Service name: " + localServiceName);
System.out.println("Service URL: " + localServiceURI);
return true;
}
catch (UDDIException e)
{
System.out.println("\nERROR:");
System.out.println("------\n");
e.printStackTrace();
System.exit(1);
}
catch (TransportException e)
{
System.out.println("\nERROR:");
System.out.println("------\n");
System.out.println("");
e.printStackTrace();
System.exit(1);
}
return true;
}
/**
* Performs necessary initialization.
*/
private static void initialize()
{
localServiceName = "Wholesale Web Call Connect";
//set up proxy
uddiProxy = new UDDIProxy();
try
{
uddiProxy.setInquiryURL(inquiryURL);
}
catch (MalformedURLException e)
{
System.out.println("\nERROR: THE INQUIRY URL IS
MALFORMED");
System.out.println("----------------------------------------------------------------");
System.out.println("Check sample inquiryURL field is configured
correctly.\n");
e.printStackTrace();
System.exit(1);
}
return;
}
public void doGetServiceDetail(String sKey)
{
try
{
ServiceDetail serviceDetail = uddiProxy.get_serviceDetail(sKey);
Vector businessServiceVector =
serviceDetail.getBusinessServiceVector();
BusinessService rBS = null;
for (int a = 0; a < businessServiceVector.size(); a++)
{
rBS = (BusinessService) businessServiceVector.elementAt(a);
Vector descriptionVector = rBS.getDescriptionVector();
BindingTemplates bindingTemplates =
rBS.getBindingTemplates();
Vector rBTVector =
bindingTemplates.getBindingTemplateVector();
BindingTemplate returnBindingTemplate = null;
for (int i = 0; i < rBTVector.size(); i++)
{
returnBindingTemplate = (BindingTemplate)
rBTVector.elementAt(i);
AccessPoint accessPoint =
returnBindingTemplate.getAccessPoint();
if (accessPoint != null)
localServiceURI = accessPoint.getText();
}
}
}
catch (UDDIException e)
{
System.out.println("\nERROR:");
System.out.println("------\n");
e.printStackTrace();
System.exit(1);
}
catch (TransportException e)
{
System.out.println("\nERROR:");
System.out.println("------\n");
System.out.println("");
e.printStackTrace();
System.exit(1);
}
}
}