Hi, usually when I get a soap fault, the return code (rc) will not be in error state. Your soap request xml should be parsed in the incoming subroutine. Test for the error xml path in incoming. if (path = '/soap:Envelope/soap:Body/soap:Fault'); if (name = 'faultstring'); faultstring = value; endif; if (name = 'faultcode'); faultcode = value; endif; endif; Best regards Magne ________________________________ Fra: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx på vegne av Johan Wigh Sendt: ma 11.10.2010 13:07 Til: HTTPAPI and FTPAPI Projects Emne: Getting info of http/1.1 500 Internal server error Hi i have an issue with webservice that respond errors as soap fault the problem is i need to be able to read xml that return over soap and not just the returncode that rc = http_post_stmf_xml gives back to get better error logging! is there a possibility to read the soap fault? See example!! this is the result of the request that the other side returns back to me as a Soap fault <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <soap:Fault> <faultcode>soap:Server</faultcode> <faultstring>Server was unable to process request. ---> [2|XXXXXXX]: Koppling till TEST-miljö saknas</faultstring> <detail/> </soap:Fault> </soap:Body> </soap:Envelope> --- Den mån 2010-10-04 skrev Scott Klement <sk@xxxxxxxxxxxxxxxx>: Från: Scott Klement <sk@xxxxxxxxxxxxxxxx> Ämne: Re: Using FTPAPI with IFS stream files Till: "HTTPAPI and FTPAPI Projects" <ftpapi@xxxxxxxxxxxxxxxxxxxxxx> Datum: måndag 4 oktober 2010 19:53 Are you sending in binary or ascii mode? If you want the hex values to be unchanged, make sure you use binary mode. On 10/4/2010 12:27 PM, Charles Wilt wrote: > All, > > Just a quick check while I continue investigations... > > We've got a existing stream file in the IFS, CCISD = 1252, that we're > trying to send to a remote FTP server using FTPAPI... > > Is there some reason this wouldn't work? > > The remote server is seeing garbage.. > x'DAD9D9' > > Instead of > x'313030' > > Using EDTF in hex mode, I've confirmed that the file on the IFS > contains x'313030' > > Thanks! > Charles > ----------------------------------------------------------------------- > This is the FTPAPI mailing list. To unsubscribe, please go to: > http://www.scottklement.com/mailman/listinfo/ftpapi > ----------------------------------------------------------------------- > ----------------------------------------------------------------------- This is the FTPAPI mailing list. To unsubscribe, please go to: http://www.scottklement.com/mailman/listinfo/ftpapi -----------------------------------------------------------------------
<<winmail.dat>>
----------------------------------------------------------------------- This is the FTPAPI mailing list. To unsubscribe, please go to: http://www.scottklement.com/mailman/listinfo/ftpapi -----------------------------------------------------------------------