[prev in list] [next in list] [prev in thread] [next in thread] 

List:       castor-dev
Subject:    [castor-dev] unmarshalling a SOAP message
From:       "David Mullens" <dmullen5 () hotmail ! com>
Date:       2002-12-28 5:07:22
[Download RAW message or body]

Hi,

I'm trying to unmarshal a soap message.  I've been able to work with a 
subset of the message, but when I try to unmarshal all of it, I start 
getting errors about the "body" element.

org.xml.sax.SAXException: unable to find FieldDescriptor for 'Body' in 
ClassDescriptor of section-svo

I'm new to castor/unmarshalling/soap/namespaces etc.  I was wondering if 
anyone on this list is already successfully unmarshalling a soap message and 
if there are some resources that would help get me up to speed on this.

I've been able to successfully use a mapping file, but again, I'm having 
trouble  with the body element now.

Any suggestions are appreciated - Dave.

BTW, here is what I'm trying to unmarshall:

<?xml version="1.0" encoding="utf-16"?>
<SOAP-ENV:Envelope 
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" 
xmlns:si="http://soapinterop.org/xsd" xmlns:tns="tns">
  <SOAP-ENV:Body>
    <getSectionsResponse>
      <output xsi:type="SOAP-ENC:Array" 
SOAP-ENC:arrayType="tns:SectionSvo[2]">
        <item xsi:type="tns:SectionSvo">
          <_courseId xsi:type="xsd:string">BIL210</_courseId>
          <_catalogId xsi:type="xsd:string">SP0103</_catalogId>
          <_courseKey xsi:type="xsd:string">BIL210WS</_courseKey>
          <_sectionId xsi:type="xsd:string">SEC01</_sectionId>
          <_meetingInfoSvos xsd:type="SOAP-ENC:Array" 
SOAP-ENC:arrayType="SOAP-ENC:Array[3]">
            <item>
              <_meetingBeginTime 
xsi:type="xsd:string">1200</_meetingBeginTime>
              <_meetingEndTime xsi:type="xsd:string">1300</_meetingEndTime>
              <_instMethodCode xsi:type="xsd:string">OL</_instMethodCode>
              <_room xsi:type="xsd:string">V323m</_room>
              </item>
            <item>
              <_meetingBeginTime 
xsi:type="xsd:string">1400</_meetingBeginTime>
              <_meetingEndTime xsi:type="xsd:string">1500</_meetingEndTime>
              <_instMethodCode xsi:type="xsd:string">OL</_instMethodCode>
              <_room xsi:type="xsd:string">V323m</_room>
              </item>
            <item>
              <_meetingBeginTime 
xsi:type="xsd:string">1100</_meetingBeginTime>
              <_meetingEndTime xsi:type="xsd:string">1200</_meetingEndTime>
              <_instMethodCode xsi:type="xsd:string">OL</_instMethodCode>
              <_room xsi:type="xsd:string">V323m</_room>
              </item>
            </_meetingInfoSvos>
          </item>
        </output>
      </getSectionsResponse>
    </SOAP-ENV:Body>
  </SOAP-ENV:Envelope>







_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail&xAPID=42&PS=47575&PI=7324&DI=7474&SU= 
http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_addphotos_3mf

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
minimalist@exolab.org with a subject of:
	unsubscribe castor-dev

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic