opensubscriber
   Find in this group all groups
 
Unknown more information…

a : axis-user@ws.apache.org 10 September 2009 • 2:02PM -0400

DeserializationExcpetion for <xsd:list> types in the SOAP Response
by Archu04

REPLY TO AUTHOR
 
REPLY TO GROUP





Hi,
I have a SOAP Response which was sent from the WS Server:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tem="http://tempuri.org/">
  <soapenv:Header />
- <soapenv:Body>
- <tem:GetEmployeeByAccountResponse>
- <!-- Optional:
  -->
- <tem:GetEmployeeByAccountResult>
  <tem:RID>e061c6dd-d301-4c19-8735-7c2400bce536</tem:RID>
  <tem:Version>2009-08-27T00:00:19</tem:Version>
  <tem:IsDeleted>false</tem:IsDeleted>
- <!-- Optional:
  -->
  <tem:Name>e061c6dd-d301-4c19-8735-7c2400bce536</tem:Name>
  <tem:ForceSynchronization>false</tem:ForceSynchronization>
  <tem:ParentID>e061c6dd-d301-4c19-8735-7c2400bce536</tem:ParentID>
  <tem:TitleID>e061c6dd-d301-4c19-8735-7c2400bce536</tem:TitleID>
- <!-- Optional:
  -->
  <tem:CorpNumber>400</tem:CorpNumber>
- <!-- Optional:
  -->
  <tem:NTaccount>lkj</tem:NTaccount>
  <tem:Authority>None Primary</tem:Authority>
  <tem:M2kUserID>0</tem:M2kUserID>
- <!-- Optional:
  -->

<tem:ActiveBranchID>e061c6dd-d301-4c19-8735-7c2400bce536</tem:ActiveBranchID>
- <!-- Optional:
  -->
- <tem:BranchMembership>
- <!-- Zero or more repetitions:
  -->
- <tem:BranchMemberInfo>
  <tem:RID>e061c6dd-d301-4c19-8735-7c2400bce536</tem:RID>
  <tem:Version>2006-06-29T15:35:30</tem:Version>
  <tem:IsDeleted>false</tem:IsDeleted>
- <!-- Optional:
  -->
  <tem:ForceSynchronization>false</tem:ForceSynchronization>
  <tem:BranchID>e061c6dd-d301-4c19-8735-7c2400bce536</tem:BranchID>
  <tem:EmployeeID>e061c6dd-d301-4c19-8735-7c2400bce536</tem:EmployeeID>
  <tem:ParentID>e061c6dd-d301-4c19-8735-7c2400bce536</tem:ParentID>
  <tem:Role>None Normal_User</tem:Role>
  <tem:IsDefault>false</tem:IsDefault>
  </tem:BranchMemberInfo>
  </tem:BranchMembership>
- <!-- Optional:
  -->
- <tem:SecurityGroups>
- <!-- Zero or more repetitions:
  -->
  </tem:SecurityGroups>

<tem:DefaultBranchID>e061c6dd-d301-4c19-8735-7c2400bce536</tem:DefaultBranchID>
  </tem:GetEmployeeByAccountResult>
  </tem:GetEmployeeByAccountResponse>
  </soapenv:Body>
  </soapenv:Envelope>

I am getting the following StackTrace on trying to deserialize the response
using axis:

org.xml.sax.SAXException: Found character data inside an array element while
deserializing
at
org.apache.axis.encoding.ser.ArrayDeserializer.characters(ArrayDeserializer.java:502)
at
org.apache.axis.encoding.DeserializationContext.characters(DeserializationContext.java:966)
at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:177)
at
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
at org.apache.axis.client.Call.invoke(Call.java:2467)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)

We believe that Deserialization error is thrown for any <xsd:list> element
type messages in the SOAP Response.

Please help in resolving this error.

Thanks in Advance,
Archana.
--
View this message in context: http://www.nabble.com/DeserializationExcpetion-for-%3Cxsd%3Alist%3E-types-in-the-SOAP-Response-tp25377775p25377775.html
Sent from the Axis - User mailing list archive at Nabble.com.

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

opensubscriber is not affiliated with the authors of this message nor responsible for its content.