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 "Rose, Angus H" <an...@eds.com> on 2002/08/15 17:24:08 UTC
Serializer probs..
Hello All,
once again I need somebody's help - thank God for user lists.
Basically, I'm trying to pass an ArrayList back from a service, and get this
error message:
' Ouch, the call failed:
Fault Code = SOAP-ENV:Server
Fault String = java.lang.IllegalArgumentException: No Serializer found to
serialize a 'java.util.ArrayList' using encoding style
'http://schemas.xmlsoap.org/soap/encoding/'.'
Any suggestions?
Thanks in advance
Angus
Re: Serializer probs..
Posted by James Black <jb...@ieee.org>.
"Rose, Angus H" wrote:
> Hello All,
> once again I need somebody's help - thank God for user lists.
>
> Basically, I'm trying to pass an ArrayList back from a service, and get this
> error message:
> ' Ouch, the call failed:
> Fault Code = SOAP-ENV:Server
> Fault String = java.lang.IllegalArgumentException: No Serializer found to
> serialize a 'java.util.ArrayList' using encoding style
> 'http://schemas.xmlsoap.org/soap/encoding/'.'
>
> Any suggestions?
convert it to a vector class or pass around an array of objects.
--
To unsubscribe, e-mail: <ma...@xml.apache.org>
For additional commands, e-mail: <ma...@xml.apache.org>
No mapping found for 'my.package.name.ClassName' using encoding style 'http://schemas.xmlsoap.org/soap/encoding/'
Posted by Daniel Bruce Lynes <dl...@shaw.ca>.
The error I'm getting is:
com.essc.xml.rpc.soap.OASoapException:
No mapping found for 'com.essc.util.DateTime' using encoding style
'http://schemas.xmlsoap.org/soap/encoding/'.
arg0=,arg1=,arg2=,arg3=
at
com.essc.xml.rpc.soap.client.SoapClientBase.executeCall(SoapClientBase.java:418)
at
com.essc.xml.rpc.soap.client.SoapClientBase.getChatDialog(SoapClientBase.java:276)
(it may not be exactly as it would be on other peoples' systems...the '
might have been inserted by our exception handler, and the arg?=,...
definitely is)
As a prelude to my executeCall(), I bind the mapping to the
SoapMappingRegistry:
SOAPMappingRegistry smr=null ;
DateTimeSerializer dateTimeSer=null ;
smr = new SOAPMappingRegistry();
dateTimeSer = new DateTimeSerializer() ;
smr.mapTypes(Constants.NS_URI_SOAP_ENC,
new QName("urn:xml-soap-oa-demo", "DateTime"),
com.essc.util.DateTime.class, dateTimeSer, dateTimeSer);
This is in reference to the mapping in the XML file:
<isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:x="urn:xml-soap-oa-demo" qname="x:dateTime"
javaType="com.essc.util.DateTime"
java2XMLClassName="com.essc.xml.rpc.soap.encoding.soapenc.DateTimeSerializer"
xml2JavaClassName="com.essc.xml.rpc.soap.encoding.soapenc.DateTimeSerializer"/>
The serializer/deserializer class I am using is attached to this message.
Thanks in advance for any help you might be able to offer.
Re: Serializer probs..
Posted by Daniel Bruce Lynes <dl...@shaw.ca>.
On Thursday 15 August 2002 08:24, Rose, Angus H wrote:
> Basically, I'm trying to pass an ArrayList back from a service, and get
> this error message:
> ' Ouch, the call failed:
> Fault Code = SOAP-ENV:Server
> Fault String = java.lang.IllegalArgumentException: No Serializer found to
> serialize a 'java.util.ArrayList' using encoding style
> 'http://schemas.xmlsoap.org/soap/encoding/'.'
If it doesn't have to be an ArrayList, and it can be a Vector, I've
implemented a serializer/deserializer for a List object, which is a
downcasted Vector object.
I've posted it as a submission to the development list.
No mapping found for 'my.package.name.ClassName' using encoding style 'http://schemas.xmlsoap.org/soap/encoding/'
Posted by Daniel Bruce Lynes <dl...@shaw.ca>.
The error I'm getting is:
com.essc.xml.rpc.soap.OASoapException:
No mapping found for 'com.essc.util.DateTime' using encoding style
'http://schemas.xmlsoap.org/soap/encoding/'.
arg0=,arg1=,arg2=,arg3=
at
com.essc.xml.rpc.soap.client.SoapClientBase.executeCall(SoapClientBase.java:418)
at
com.essc.xml.rpc.soap.client.SoapClientBase.getChatDialog(SoapClientBase.java:276)
(it may not be exactly as it would be on other peoples' systems...the '
might have been inserted by our exception handler, and the arg?=,...
definitely is)
As a prelude to my executeCall(), I bind the mapping to the
SoapMappingRegistry:
SOAPMappingRegistry smr=null ;
DateTimeSerializer dateTimeSer=null ;
smr = new SOAPMappingRegistry();
dateTimeSer = new DateTimeSerializer() ;
smr.mapTypes(Constants.NS_URI_SOAP_ENC,
new QName("urn:xml-soap-oa-demo", "DateTime"),
com.essc.util.DateTime.class, dateTimeSer, dateTimeSer);
This is in reference to the mapping in the XML file:
<isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:x="urn:xml-soap-oa-demo" qname="x:dateTime"
javaType="com.essc.util.DateTime"
java2XMLClassName="com.essc.xml.rpc.soap.encoding.soapenc.DateTimeSerializer"
xml2JavaClassName="com.essc.xml.rpc.soap.encoding.soapenc.DateTimeSerializer"/>
The serializer/deserializer class I am using is attached to this message.
Thanks in advance for any help you might be able to offer.
Re: Serializer probs..
Posted by James Black <jb...@ieee.org>.
"Rose, Angus H" wrote:
> Hello All,
> once again I need somebody's help - thank God for user lists.
>
> Basically, I'm trying to pass an ArrayList back from a service, and get this
> error message:
> ' Ouch, the call failed:
> Fault Code = SOAP-ENV:Server
> Fault String = java.lang.IllegalArgumentException: No Serializer found to
> serialize a 'java.util.ArrayList' using encoding style
> 'http://schemas.xmlsoap.org/soap/encoding/'.'
>
> Any suggestions?
convert it to a vector class or pass around an array of objects.
Re: Serializer probs..
Posted by Daniel Bruce Lynes <dl...@shaw.ca>.
On Thursday 15 August 2002 08:24, Rose, Angus H wrote:
> Basically, I'm trying to pass an ArrayList back from a service, and get
> this error message:
> ' Ouch, the call failed:
> Fault Code = SOAP-ENV:Server
> Fault String = java.lang.IllegalArgumentException: No Serializer found to
> serialize a 'java.util.ArrayList' using encoding style
> 'http://schemas.xmlsoap.org/soap/encoding/'.'
If it doesn't have to be an ArrayList, and it can be a Vector, I've
implemented a serializer/deserializer for a List object, which is a
downcasted Vector object.
I've posted it as a submission to the development list.
--
To unsubscribe, e-mail: <ma...@xml.apache.org>
For additional commands, e-mail: <ma...@xml.apache.org>