Hi
The Axis client in a production environment will point to:
"http://<someipAddress>/ProvidentConnector/ProvidentWSPort.asmx"
However, for my test environment I have been running the following
client code:
com.accenture.namespace.ProvidentConnector_ProvidentReceiver_ProvidentWS
Port wsPort =
new
com.accenture.namespace.ProvidentConnector_ProvidentReceiver_ProvidentWS
PortLocator();
ProvidentConnector_ProvidentReceiver_ProvidentWSPortSoap pt =
wsPort.getProvidentConnector_ProvidentReceiver_ProvidentWSPortSoap(servi
ceURL);
Where serviceURL is configurable, and set to:
http://192.168.1.150:8880/axis/services/ProvidentConnector_ProvidentRece
iver_ProvidentWSPortSoap
(Apologies for the lengthy and confusing names by the way, this is
customer driven).
I am presuming there is some communication between the client and the
service, since I can see XML data in the 'SOAP Request' window of the
SOAPMonitor applet. Or is that a red herring?
The error I am seeing in my output I am guessing is from the service and
not the client:
ERROR!!!!org.xml.sax.SAXException: Deserializing parameter
'ProvidentResponse': could not find deserializer for type
{http://ProvidentConnector.ProvidentResponseToOrch}ProvidentResponse
Am I doing something wrong in the client code?
I can post more details of the calling code if necessary.
Thanks for having a look at this, much appreciated.
Patrick
-----Original Message-----
From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
Sent: 06 July 2005 15:34
To: Patrick Quinn
Cc: [email protected]
Subject: Re: Error seen on BizTalk client request to my web service
Pat,
The SOAP address specified in your WSDL points to a .NET service (.asmx
extension) rather than to an Axis service:
<soap:address
location="http://localhost/ProvidentConnector/ProvidentWSPort.asmx" />
You need to change this address to point to your service.
Anne
On 7/6/05, Patrick Quinn <[EMAIL PROTECTED]> wrote:
> Anne
>
> WSDD file is as follows:
>
>
> <deployment
> xmlns="http://xml.apache.org/axis/wsdd/"
> xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
>
> <!-- Services from
> ProvidentConnector_ProvidentReceiver_ProvidentWSPort WSDL service -->
>
> <service
> name="ProvidentConnector_ProvidentReceiver_ProvidentWSPortSoap"
> provider="java:RPC" style="wrapped" use="literal">
> <parameter name="wsdlTargetNamespace"
> value="http://namespace.accenture.com/"/>
> <parameter name="wsdlServiceElement"
> value="ProvidentConnector_ProvidentReceiver_ProvidentWSPort"/>
> <parameter name="schemaQualified"
> value="http://ProvidentConnector.ProvidentResponseToOrch,http:/
> /namespace.accenture.com/"/>
> <parameter name="wsdlServicePort"
> value="ProvidentConnector_ProvidentReceiver_ProvidentWSPortSoap"/>
> <parameter name="className"
> value="com.accenture.namespace.ProvidentConnector_ProvidentReceiver_Pr
> ov
> identWSPortSoapSkeleton"/>
> <parameter name="wsdlPortType"
> value="ProvidentConnector_ProvidentReceiver_ProvidentWSPortSoap"/>
> <parameter name="typeMappingVersion" value="1.2"/>
> <parameter name="allowedMethods" value="*"/>
>
> <typeMapping
> xmlns:ns="http://ProvidentConnector.ProvidentResponseToOrch"
> qname="ns:ProvidentResponse"
>
>
type="java:ProvidentResponseToOrch.ProvidentConnector.ProvidentResponse"
> serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
>
> deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
> encodingStyle=""
> />
> </service>
> </deployment>
>
>
> WSDL file as follows:
>
>
> <?xml version="1.0" encoding="utf-8"?>
> <wsdl:definitions
> xmlns:s1="http://ProvidentConnector.ProvidentResponseToOrch"
> xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:s="http://www.w3.org/2001/XMLSchema"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:tns="http://namespace.accenture.com/"
> xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
> xmlns:mime="http://schemas.xml
> soap.org/wsdl/mime/" targetNamespace="http://namespace.accenture.com/"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
> <wsdl:types>
> <s:schema elementFormDefault="qualified"
> targetNamespace="http://namespace.accenture.com/">
> <s:import
> namespace="http://ProvidentConnector.ProvidentResponseToOrch" />
> <s:element name="SOPResponse">
> <s:complexType>
> <s:sequence>
> <s:element minOccurs="0" maxOccurs="1"
> ref="s1:ProvidentResponse" />
> </s:sequence>
> </s:complexType>
> </s:element>
> <s:element name="SOPResponseResponse">
> <s:complexType>
> <s:sequence>
> <s:element minOccurs="0" maxOccurs="1" name="part"
> type="s:string" />
> </s:sequence>
> </s:complexType>
> </s:element>
> </s:schema>
> <s:schema elementFormDefault="qualified"
> targetNamespace="http://ProvidentConnector.ProvidentRespon
> seToOrch">
> <s:element name="ProvidentResponse" type="s1:ProvidentResponse"
/>
> <s:complexType name="ProvidentResponse">
> <s:sequence>
> <s:element minOccurs="0" maxOccurs="1" form="unqualified"
> name="REQUESTID" type="s:string" />
> <s:element minOccurs="0" maxOccurs="1" form="unqualified"
> name="SO_RESULT_CODE" type="s:string" />
> <s:element minOccurs="0" maxOccurs="1" form="unqualified"
> name="SO_PROV_DATE" type="s:string" />
> <s:element minOccurs="0" maxOccurs="1" form="unqualified"
> name="SO_ERR_DESC" type="s:string" />
> <s:element minOccurs="0" maxOccurs="1" form="unqualified"
> name="XML_SORESULT" type="s:string" />
> </s:sequence>
> </s:complexType>
> </s:schema>
> </wsdl:types>
> <wsdl:message name="SOPResponseSoapIn">
> <wsdl:part name="parameters" element="tns:SOPResponse" />
> </wsdl:message> <wsdl:message name="SOPResponseSoapOut">
> <wsdl:part name="parameters" element="tns:SOPResponseResponse" />
> </wsdl:message>
> <wsdl:portType
> name="ProvidentConnector_ProvidentReceiver_ProvidentWSPortSoap">
> <wsdl:operation name="SOPResponse">
> <wsdl:input message="tns:SOPResponseSoapIn" />
> <wsdl:output message="tns:SOPResponseSoapOut" />
> </wsdl:operation>
> </wsdl:portType>
> <wsdl:binding
> name="ProvidentConnector_ProvidentReceiver_ProvidentWSPortSoap"
> type="tns:ProvidentConnector_ProvidentReceiver_ProvidentWSPortSoap">
> <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
> style="document" />
> <wsdl:operation name="SOPResponse">
> <soap:operation
>
soapAction="http://namespace.accenture.com/ProvidentConnector_ProvidentR
> eceiver_ProvidentWSPort/SOPResponse" style="document" />
> <wsdl:input>
> <soap:body use="literal" />
> </wsdl:input>
> <wsdl:output>
> <soap:body use="literal" />
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> <wsdl:service
> name="ProvidentConnector_ProvidentReceiver_ProvidentWSPort">
> <documentation xmlns="http://schemas.xmlsoap.org/wsdl/">BizTalk
> assembly "ProvidentConnector, Version=1.0.0.0, Culture=neutral,
> PublicKeyToken=ae7c9e263f196bff" published web
service.</documentation>
> <wsdl:port
> name="ProvidentConnector_ProvidentReceiver_ProvidentWSPortSoap"
>
binding="tns:ProvidentConnector_ProvidentReceiver_ProvidentWSPortSoap">
> <soap:address
> location="http://localhost/ProvidentConnector/ProvidentWSPort.asmx" />
> </wsdl:port>
> </wsdl:service>
> </wsdl:definitions>
>
>
>
> Thanks
>
> Pat
>
> -----Original Message-----
> From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
> Sent: 06 July 2005 14:14
> To: [email protected]
> Subject: Re: Error seen on BizTalk client request to my web service
>
>
> We need more information ...
> Please provide the WSDL and WSDD.
>
> Anne
>
> On 7/6/05, Patrick Quinn <[EMAIL PROTECTED]> wrote:
> >
> > Hi
> >
> > Would anybody be able to tell me whether the error below seen by a
> > BizTalk client is something incorrect in the configuration of my
> > Axis Web Service, or something wrong on the client side?
> >
> >
> > "Provident Connector Send: Exception invoking WS... The XLANG/s
> > message has no part at index '0'. The total number of parts found
> > in the message is '0'. If you expect a multipart message, check that
> > the pipeline supports multipart messages such as MIME."
> >
> > My web service is doc/lit WRAPPED style, receiving 5 Strings as
> > arguments in the call (if this helps).
> >
> > Thanks for any thoughts or suggestions,
> >
> > Patrick
> >
> >
> > This e-mail and any attachments may be confidential and/or legally
> > privileged. If you have received this e-mail and you are not a named
> > addressee, please inform Evolving Systems TIS at [EMAIL PROTECTED]
> > and then delete the e-mail from your system. If you are not a named
> > addressee you must not use, disclose, distribute, copy, print or
> > rely on this e-mail. To ensure regulatory compliance and for the
> > protection
>
> > of our clients and business, Evolving Systems may monitor and read
> > e-mails sent to and from its servers. Although Evolving Systems
> > routinely screens for viruses, addressees should scan this e-mail
> > and any attachments for viruses. Evolving Systems makes no
> > representation or warranty as to the absence of viruses in this
> > e-mail or any attachments.
> >
> > Registered Office: One Angel Square, Torrents Street, London. EC1V
> > 1PL. Registered number 2325854
> >
> This e-mail and any attachments may be confidential and/or legally
> privileged. If you have received this e-mail and you are not a named
> addressee, please inform Evolving Systems TIS at [EMAIL PROTECTED] and
> then delete the e-mail from your system. If you are not a named
> addressee you must not use, disclose, distribute, copy, print or rely
> on this e-mail. To ensure regulatory compliance and for the protection
> of our clients and business, Evolving Systems may monitor and read
> e-mails sent to and from its servers. Although Evolving Systems
> routinely screens for viruses, addressees should scan this e-mail and
> any attachments for viruses. Evolving Systems makes no representation
> or warranty as to the absence of viruses in this e-mail or any
> attachments.
>
> Registered Office: One Angel Square, Torrents Street, London. EC1V
> 1PL. Registered number 2325854
>
This e-mail and any attachments may be confidential and/or legally privileged.
If you have received this e-mail and you are not a named addressee, please
inform Evolving Systems TIS at [EMAIL PROTECTED] and then delete the e-mail
from your system. If you are not a named addressee you must not use, disclose,
distribute, copy, print or rely on this e-mail. To ensure regulatory compliance
and for the protection of our clients and business, Evolving Systems may
monitor and read e-mails sent to and from its servers. Although Evolving
Systems routinely screens for viruses, addressees should scan this e-mail and
any attachments for viruses. Evolving Systems makes no representation or
warranty as to the absence of viruses in this e-mail or any attachments.
Registered Office: One Angel Square, Torrents Street, London. EC1V 1PL.
Registered number 2325854