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

RE: Error Message using XML Inside IFS File (http_post_stmf)



The error is clearly stated as 
<faultstring>Error reading XMLStreamReader.</faultstring>

What that means in your situation is between you and your service provider. It could be a lot of different things. Since your service provider is inside your network, you should ask them what they see in their logs.

But, if the debug file you show is accurate, you might want to check the content-type and soapaction. Those are clearly going to give many web services a little heartburn.

Content-Type: Mozilla/5.0 (X11; U; OS400)
SOAPAction: text/xml;charset=UTF-8

Not sure where you came up with the Mozilla...thing but that is where text/xml should be and SOAPAction should be something related to what your web service is looking for (not what I put below!).

     rc = http_post_stmf(urlsa           :
     filexml                                      :
     file2                                         :
     tiempo                                     :
     HTTP_USERAGENT                 :
     'text/xml;charset=UTF-8'       :
     'http://www.w3.org/2003/05/soap-envelope');
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------