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 Alexander Piavka <pi...@cs.bgu.ac.il> on 2000/11/28 23:12:48 UTC
Problems with addressbook example.
Hi all,
I have just started testing the soap package & I have a problem with
the addressbook example.I have deployed the addressbook service
and I can run the GetAllListings client for the addressbook,but
when I try the GetAddress example I get an exception caught by the client
saying that Type Mappings are not properly defined:
Caught SOAPException (SOAP-ENV:Client): No Deserializer found to
deserialize a 'urn:xml-soap-address-demo:x:address' using encoding style
'http://schemas.xmlsoap.org/soap/encoding/'.
Inspite of that the deployment does defines the the Deserializer for the address.
Here is my depolment addressbook listing:
ID urn:AddressFetcher
Scope Application
ProviderType java
ProviderClass samples.addressbook.AddressBook
UseStaticClass false
Methods getAddressFromName, addEntry, getAllListings, putListings
TypeMappings
[TypeMapping
encodingStyle=http://schemas.xmlsoap.org/soap/encoding/,
elementType=urn:xml-soap-address-demo:x:address,
javaType=samples.addressbook.Address,
java2XMLClassName=org.apache.soap.encoding.soapenc.BeanSerializer,
xml2JavaClassName=org.apache.soap.encoding.soapenc.BeanSerializer
]
[TypeMapping
encodingStyle=http://schemas.xmlsoap.org/soap/encoding/,
elementType=urn:xml-soap-address-demo:x:phone,
javaType=samples.addressbook.PhoneNumber,
java2XMLClassName=org.apache.soap.encoding.soapenc.BeanSerializer,
xml2JavaClassName=org.apache.soap.encoding.soapenc.BeanSerializer
]
Please Help,
Thanks.
ps. Also the UserGuide is stating that the deployment parameter Scope can
have the following values request,session,application & page.But there is
no such option as page in the deployment jsp page.Also it mentions the
rpcrouter.jsp file which simply does not exist in the downloaded soap
package.Is this ok?