You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Ross Daws <ro...@hubbub.com.au> on 2000/10/30 01:24:44 UTC

Can't find a Serializer

Hi!

I've hit a Soap Exception that I don't know how to fix...

This is the exception:

> TomServer>java hubbub.at.SOAPTest http://localhost/soap/servlet/rpcrouter
>
> Caught SOAPException (SOAP-ENV:Client): No Serializer found to serialize a
'hubbub.at.SMSRequest' using
> encoding style 'http://schemas.xmlsoap.org/soap/encoding/'.

This is my first attempt at trying to pass my own java class over a soap
call (hubbub.at.SMSRequest), and I'm a bit lost as to what the problem could
be ...

I have registered the class with the SoapMappingRegistry, like this:

	    smr.mapTypes(Constants.NS_URI_SOAP_ENC,
	                 new QName("urn:xml-soap-at-sms-server", "request"),
	                 SMSRequest.class, beanSer, beanSer);

and the service is deployed like this:

[TypeMapping
encodingStyle=http://schemas.xmlsoap.org/soap/encoding/,elementType=urn:xml-
soap-at-sms-server:request,javaType=hubbub.at.SMSRequest,java2XMLClassName=o
rg.apache.soap.encoding.soapenc.BeanSerializer,xml2JavaClassName=org.apache.
soap.encoding.soapenc.BeanSerializer]

Can anyone help me figure out what's going wrong?

Thanks,

Ross