[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SOAPAction and Unmarshal Exception



   I have a couple questions regarding SOAPAction and an Unmarshal
   Exception I'm receiving in calling my web service.  I've attached the
   complete debug log, source code for my program, and can provide the
   WSDL if needed.
   SOAPAction:
   How do I know what needs to go in the SOAPAction parameter for the
   http_url_post_xml and what is it really?
   In the WSDL for my web service, I see this: <soap:operation
   soapAction=""/>, so that's what I put in the parameter because it
   coincides with Examples 18 and 19.  However, in debug log, I'm
   noticing this:
   ...
   User-Agent: http-api/1.23

   Content-Type: text/xml; charset=utf-8

   SOAPAction:
   http://sandbox.ad.churchmutual.com:35100/RPGAccessRefApp/RPGTest
   Expect: 100-continue

   Content-Length: 330

   ...
   The SOAPAction value if anything should be
   http://sandbox.ad.churchmutual.com:35100/RPGAccessRefApp/RPGTestServic
   e/TestMethodForRPG
   but is too long for the parameter (parm is only set to be 64 alpha and
   this is 88), hence why it's cut off in the log.  How do I know which
   value is correct?  And if the latter is correct, do I change all the
   definitions in the HTTPAPI to be longer than 64 or is there another
   way?
   Unmarshal Exception - unexpected element:
   I've attached the debug log so you can see the exception.  Is this
   being caused by the SOAPAction thing or is this something else?  Any
   ideas?

   Erin L Strobel
   Information Services - Programmer
   Church Mutual Insurance
   1-800-554-2642 Ext. 4947
HTTPAPI Ver 1.23 released 2008-04-24
OS/400 Ver V5R4M0

New iconv() objects set, PostRem=1208. PostLoc=0. ProtRem=819. ProtLoc=0
http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 1
DNS resolver retry  : 1
DNS resolver options: x'00000136'
DNS default domain: CHURCHMUTUAL.COM
DNS server found: 172.16.3.131
DNS server found: 172.16.3.132
http_persist_post(): entered
http_long_ParseURL(): entered
do_post(): entered
POST /RPGAccessRefApp/RPGTestService HTTP/1.1
Host: sandbox.ad.churchmutual.com:35100
User-Agent: http-api/1.23
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Expect: 100-continue
Content-Length: 331


recvresp(): entered
HTTP/1.1 100 Continue
Content-Length: 0
Date: Wed, 31 Dec 2008 20:04:00 GMT
Server: WebSphere Application Server/6.1


SetError() #13: HTTP/1.1 100 Continue
senddoc(): entered
<?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:q0="http://service.rpgaccessrefapp.churchmutual.com";> xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><soap:Body>  <q0:TestMethodForRPG /></soap:Body></soap:Envelope>
recvresp(): entered
HTTP/1.1 500 Internal Server Error
Date: Wed, 31 Dec 2008 20:04:00 GMT
Server: WebSphere Application Server/6.1
Content-Type: text/xml; charset=utf-8
Content-Language: en-US
Content-Length: 654
Connection: Close


SetError() #13: HTTP/1.1 500 Internal Server Error
recvdoc parms: identity 654
header_load_cookies() entered
recvdoc(): entered
SetError() #0:
<?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>javax.xml.bind.UnmarshalException
 - with linked exception:
[javax.xml.bind.UnmarshalException: unexpected element (uri:"http://service.rpgaccessrefapp.churchmutual.com";, local:"TestMethodForRPG"). Expected elements are &lt;{http://service.rpgaccessrefapp.churchmutual.com/}TestMethodForRPG&gt;,&lt;{http://service.rpgaccessrefapp.churchmutual.com/}TestMethodForRPGResponse&gt;]</faultstring><detail></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
SetError() #13: HTTP/1.1 500 Internal Server Error
http_close(): entered

Attachment: RPG2JAVA.RPGLE
Description: Binary data

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------