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 Bo...@putnam.com on 2002/07/03 16:53:28 UTC
No Deserializer found to deserialize a string????????????
Hi Soapers,
I encountered the most bizarre of an error, when I'm making a SOAP RPC
passing string as parameter.
What could possibly be the reason. I'm using Java to create the call and
the Soap service is on Tomcat 4
(also written in java). It is simple service that compares strings.
The error:
No Deserializer found to deserialize a
'http://schemas.xmlsoap.org/soap/encoding/:string' using encoding style
'http://schemas.xmlsoap.org/soap/encoding/'.
at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:134)
at
org.apache.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:875)
at
org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403)
at
org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1550)
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1204)
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:202)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:428)
at org.apache.axis.client.Call.invoke(Call.java:1919)
Please let me know where this problem comes from and how I can fix it.
Thanks, Boris
RE: No Deserializer found to deserialize a string????????????
Posted by Sunil Tripathy <st...@companyfinance.com>.
you can try this
[Client]
SOAPMappingRegistry smr = new SOAPMappingRegistry ();
StringDeserializer sd = new StringDeserializer ();
smr.mapTypes (Constants.NS_URI_SOAP_ENC,
new QName ("", "Result"), null, null, sd);
[Server]
<isd:mappings>
<isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:x="" qname="x:stringName"
xml2JavaClassName="org.apache.soap.encoding.soapenc.StringDeserializer"/>
</isd:mappings>
Hope this helps.
Thanks
Sunil
-----Original Message-----
From: Boris_Paskalev@putnam.com [mailto:Boris_Paskalev@putnam.com]
Sent: Wednesday, July 03, 2002 7:53 AM
To: soap-user@xml.apache.org
Subject: No Deserializer found to deserialize a string????????????
Hi Soapers,
I encountered the most bizarre of an error, when I'm making a SOAP RPC
passing string as parameter.
What could possibly be the reason. I'm using Java to create the call and
the Soap service is on Tomcat 4
(also written in java). It is simple service that compares strings.
The error:
No Deserializer found to deserialize a
'http://schemas.xmlsoap.org/soap/encoding/:string' using encoding style
'http://schemas.xmlsoap.org/soap/encoding/'.
at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:13
4)
at
org.apache.axis.encoding.DeserializationContextImpl.endElement(Deserializati
onContextImpl.java:875)
at
org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403)
at
org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator
java:1550)
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
LDocumentScanner.java:1204)
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationCon
textImpl.java:202)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:428)
at org.apache.axis.client.Call.invoke(Call.java:1919)
Please let me know where this problem comes from and how I can fix it.
Thanks, Boris
--
To unsubscribe, e-mail: <ma...@xml.apache.org>
For additional commands, e-mail: <ma...@xml.apache.org>
RE: No Deserializer found to deserialize a string????????????
Posted by Sunil Tripathy <st...@companyfinance.com>.
you can try this
[Client]
SOAPMappingRegistry smr = new SOAPMappingRegistry ();
StringDeserializer sd = new StringDeserializer ();
smr.mapTypes (Constants.NS_URI_SOAP_ENC,
new QName ("", "Result"), null, null, sd);
[Server]
<isd:mappings>
<isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:x="" qname="x:stringName"
xml2JavaClassName="org.apache.soap.encoding.soapenc.StringDeserializer"/>
</isd:mappings>
Hope this helps.
Thanks
Sunil
-----Original Message-----
From: Boris_Paskalev@putnam.com [mailto:Boris_Paskalev@putnam.com]
Sent: Wednesday, July 03, 2002 7:53 AM
To: soap-user@xml.apache.org
Subject: No Deserializer found to deserialize a string????????????
Hi Soapers,
I encountered the most bizarre of an error, when I'm making a SOAP RPC
passing string as parameter.
What could possibly be the reason. I'm using Java to create the call and
the Soap service is on Tomcat 4
(also written in java). It is simple service that compares strings.
The error:
No Deserializer found to deserialize a
'http://schemas.xmlsoap.org/soap/encoding/:string' using encoding style
'http://schemas.xmlsoap.org/soap/encoding/'.
at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:13
4)
at
org.apache.axis.encoding.DeserializationContextImpl.endElement(Deserializati
onContextImpl.java:875)
at
org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403)
at
org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator
java:1550)
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
LDocumentScanner.java:1204)
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationCon
textImpl.java:202)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:428)
at org.apache.axis.client.Call.invoke(Call.java:1919)
Please let me know where this problem comes from and how I can fix it.
Thanks, Boris
--
To unsubscribe, e-mail: <ma...@xml.apache.org>
For additional commands, e-mail: <ma...@xml.apache.org>
--
To unsubscribe, e-mail: <ma...@xml.apache.org>
For additional commands, e-mail: <ma...@xml.apache.org>