axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "TULK, Daniel, FM" <Daniel.T...@rbos.com>
Subject Enum deserialization problem
Date Wed, 16 Apr 2003 15:28:45 GMT
Hi,

I'm getting SAXException thrown when axis tries to deserialize the value of
an enumerated type. Can anyone tell me how I get this to deserialize
properly? I'm reasonably certain my service isn't totally stupid because I
can call it from .Net without any errors

The SOAP message looks like this (there could be typos as I can't paste from
SOAPMonitor):

<soapenv:Body>
	<ns2:testing
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding"
xmlns:ns2="urn:myservice">
		<in0 href="#id0"/>
	</ns2:testing>
	<multiRef
		id="id0" 
		soapenc:root="0"
	
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
		xsi:type="ns3:MyEnumeratedType"
		xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
		xmlns:ns3="http://etc.mydomain.com">
	Enumerated value
	</multiRef>
</soapenv:Body>

Stack trace follows. Thanks in advance for any help

Dan


Exception caught. message=org.xml.sax.SAXException
----------------------------------------------
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: org.xml.sax.SAXException
 faultActor: 
 faultNode: 
 faultDetail: 
	{http://xml.apache.org/axis/}stackTrace: AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: org.xml.sax.SAXException
 faultActor: 
 faultNode: 
 faultDetail: 

org.xml.sax.SAXException
	at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:2
51)
	at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:16
8)
	at
org.apache.axis.encoding.DeserializationContextImpl.endElement(Deserializati
onContextImpl.java:1001)
	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:393)
	at
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationCon
textImpl.java:242)
	at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
	at org.apache.axis.Message.getSOAPEnvelope(Message.java:377)
	at org.apache.axis.client.Call.invokeEngine(Call.java:2545)
	at org.apache.axis.client.Call.invoke(Call.java:2515)
	at org.apache.axis.client.Call.invoke(Call.java:2210)
	at org.apache.axis.client.Call.invoke(Call.java:2133)
	at org.apache.axis.client.Call.invoke(Call.java:1656)
	at
com.rbos.sabre.creditcheck.soap.CreditcheckSoapBindingStub.testing(Creditche
ckSoapBindingStub.java:194)
	at trash.TestCreditCheck.main(TestCreditCheck.java:76)


org.xml.sax.SAXException
	at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:2
51)
	at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:16
8)
	at
org.apache.axis.encoding.DeserializationContextImpl.endElement(Deserializati
onContextImpl.java:1001)
	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:393)
	at
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationCon
textImpl.java:242)
	at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
	at org.apache.axis.Message.getSOAPEnvelope(Message.java:377)
	at org.apache.axis.client.Call.invokeEngine(Call.java:2545)
	at org.apache.axis.client.Call.invoke(Call.java:2515)
	at org.apache.axis.client.Call.invoke(Call.java:2210)
	at org.apache.axis.client.Call.invoke(Call.java:2133)
	at org.apache.axis.client.Call.invoke(Call.java:1656)
	at
com.rbos.sabre.creditcheck.soap.CreditcheckSoapBindingStub.testing(Creditche
ckSoapBindingStub.java:194)
	at trash.TestCreditCheck.main(TestCreditCheck.java:76)


********************************************************************
      Visit our Internet site at http://www.rbsmarkets.com

This e-mail is intended only for the addressee named above.
As this e-mail may contain confidential or privileged information,
if you are not the named addressee, you are not authorised to
retain, read, copy or disseminate this message or any part of it.
The Royal Bank of Scotland plc is registered in Scotland No 90312
Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB
Regulated by the Financial Services Authority
********************************************************************

Mime
View raw message