You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by Jessie John <je...@lucent.com> on 2000/11/20 01:07:40 UTC

No Deserializer found error in addressbook

Hi,

I'm trying to get the apache version xml-soap v1.2 work with Tomcat 3.1 using
addressbook
as an example which is supplied in xml-soap\samples directory.
I get an exception when I invoke GetAddress service on the server side. 
I invoked on command-line as
    java samples.addressbook.GetAddress
http://localhost:8080/xml-soap/rpcrouter.jsp "John B. Good"

The exception that I get is:

Generated fault: 
  Fault Code   = SOAP-ENV:Client
  Fault String = No Deserializer found to deserialize a
'http://schemas.xmlsoap.org/soap/envelope/:Parameter' using encoding style
'null'.

Used deploy tool at http://localhost:8080/xml-soap to deploy the service as:
   ID    		urn:AddressFetcher
   Scope 		Application
   Provider Type	java
   Provider Class	samples.addressbook.AddressBook
   Use Static Class	false
   Methods		getAddressFromName, addEntry, getAllListings, putListings
   Encoding Style	SOAP
   Namespace URI	urn:ibm-soap-address-demo
   Local Part		x:address
   Java Type		samples.addressbook.Address
  Java to XML Serializer    org.apache.soap.encoding.soapenc.BeanSerializer 
  XML to Java Deserializer  org.apache.soap.encoding.soapenc.BeanSerializer 

The Tomcat seems to understand the SOAP request. On the tomcat window I get
    Processing SOAP request...

For Tomcat the classpath is defined as:

Starting tomcat in new window
Using classpath: d:\xml\xerces-1_1_1\xerces.jar;..\classes;
..\lib\webserver.jar;..\lib\jasper.jar;..\lib\xml.jar;..\lib\servlet.jar;
c:\jdk1.2.2\lib\tools.jar;%CLASSPATH%;d:\soap\xml-soap\lib\pop3.jar;
d:\soap\xml-soap\lib\smtp.jar;d:\soap\xml-soap\lib\soap.jar;
d:\soap\xml-soap\lib\xmisoap.jar;d:\xml\xerces-1_1_1\xerces.jar;
d:\soap\xml-soap\samples\addressbook

Any ideas?

Thanks in advance,
Jessie John
Lucent Tech.

Re: No Deserializer found error in addressbook

Posted by Jessie John <je...@lucent.com>.
I found the answer to this. In the deployment the encoding style wasn't 
correct.

Jessie John

Jessie John wrote:
> 
> Hi,
> 
> I'm trying to get the apache version xml-soap v1.2 work with Tomcat 3.1 using
> addressbook
> as an example which is supplied in xml-soap\samples directory.
> I get an exception when I invoke GetAddress service on the server side.
> I invoked on command-line as
>     java samples.addressbook.GetAddress
> http://localhost:8080/xml-soap/rpcrouter.jsp "John B. Good"
> 
> The exception that I get is:
> 
> Generated fault:
>   Fault Code   = SOAP-ENV:Client
>   Fault String = No Deserializer found to deserialize a
> 'http://schemas.xmlsoap.org/soap/envelope/:Parameter' using encoding style
> 'null'.
> 
> Used deploy tool at http://localhost:8080/xml-soap to deploy the service as:
>    ID                   urn:AddressFetcher
>    Scope                Application
>    Provider Type        java
>    Provider Class       samples.addressbook.AddressBook
>    Use Static Class     false
>    Methods              getAddressFromName, addEntry, getAllListings, putListings
>    Encoding Style       SOAP
>    Namespace URI        urn:ibm-soap-address-demo
>    Local Part           x:address
>    Java Type            samples.addressbook.Address
>   Java to XML Serializer    org.apache.soap.encoding.soapenc.BeanSerializer
>   XML to Java Deserializer  org.apache.soap.encoding.soapenc.BeanSerializer
> 
> The Tomcat seems to understand the SOAP request. On the tomcat window I get
>     Processing SOAP request...
> 
> For Tomcat the classpath is defined as:
> 
> Starting tomcat in new window
> Using classpath: d:\xml\xerces-1_1_1\xerces.jar;..\classes;
> ..\lib\webserver.jar;..\lib\jasper.jar;..\lib\xml.jar;..\lib\servlet.jar;
> c:\jdk1.2.2\lib\tools.jar;%CLASSPATH%;d:\soap\xml-soap\lib\pop3.jar;
> d:\soap\xml-soap\lib\smtp.jar;d:\soap\xml-soap\lib\soap.jar;
> d:\soap\xml-soap\lib\xmisoap.jar;d:\xml\xerces-1_1_1\xerces.jar;
> d:\soap\xml-soap\samples\addressbook
> 
> Any ideas?
> 
> Thanks in advance,
> Jessie John
> Lucent Tech.

Re: No Deserializer found error in addressbook

Posted by Jessie John <je...@lucent.com>.
I found the answer to this. In the deployment the encoding style wasn't 
correct.

Jessie John

Jessie John wrote:
> 
> Hi,
> 
> I'm trying to get the apache version xml-soap v1.2 work with Tomcat 3.1 using
> addressbook
> as an example which is supplied in xml-soap\samples directory.
> I get an exception when I invoke GetAddress service on the server side.
> I invoked on command-line as
>     java samples.addressbook.GetAddress
> http://localhost:8080/xml-soap/rpcrouter.jsp "John B. Good"
> 
> The exception that I get is:
> 
> Generated fault:
>   Fault Code   = SOAP-ENV:Client
>   Fault String = No Deserializer found to deserialize a
> 'http://schemas.xmlsoap.org/soap/envelope/:Parameter' using encoding style
> 'null'.
> 
> Used deploy tool at http://localhost:8080/xml-soap to deploy the service as:
>    ID                   urn:AddressFetcher
>    Scope                Application
>    Provider Type        java
>    Provider Class       samples.addressbook.AddressBook
>    Use Static Class     false
>    Methods              getAddressFromName, addEntry, getAllListings, putListings
>    Encoding Style       SOAP
>    Namespace URI        urn:ibm-soap-address-demo
>    Local Part           x:address
>    Java Type            samples.addressbook.Address
>   Java to XML Serializer    org.apache.soap.encoding.soapenc.BeanSerializer
>   XML to Java Deserializer  org.apache.soap.encoding.soapenc.BeanSerializer
> 
> The Tomcat seems to understand the SOAP request. On the tomcat window I get
>     Processing SOAP request...
> 
> For Tomcat the classpath is defined as:
> 
> Starting tomcat in new window
> Using classpath: d:\xml\xerces-1_1_1\xerces.jar;..\classes;
> ..\lib\webserver.jar;..\lib\jasper.jar;..\lib\xml.jar;..\lib\servlet.jar;
> c:\jdk1.2.2\lib\tools.jar;%CLASSPATH%;d:\soap\xml-soap\lib\pop3.jar;
> d:\soap\xml-soap\lib\smtp.jar;d:\soap\xml-soap\lib\soap.jar;
> d:\soap\xml-soap\lib\xmisoap.jar;d:\xml\xerces-1_1_1\xerces.jar;
> d:\soap\xml-soap\samples\addressbook
> 
> Any ideas?
> 
> Thanks in advance,
> Jessie John
> Lucent Tech.