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

SV: Getting info of http/1.1 500 Internal server error



   Works perfect!

   Fungerar kanon som man skulle säga på svenska!

   --- Den mån 2010-10-11 skrev Magne Kofoed <ma-kofo@xxxxxxxxxxx>:

     Från: Magne Kofoed <ma-kofo@xxxxxxxxxxx>
     Ämne: SV: Getting info of http/1.1 500 Internal server error
     Till: "HTTPAPI and FTPAPI Projects" <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
     Datum: måndag 11 oktober 2010 15:19

   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: [1]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="[2]http://schemas.xmlsoap.org/soap/envelope/";
   xmlns:xsi="[3]http://www.w3.org/2001/XMLSchema-instance";
   xmlns:xsd="[4]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 <[5]sk@xxxxxxxxxxxxxxxx>:
   Från: Scott Klement <[6]sk@xxxxxxxxxxxxxxxx>
   Ämne: Re: Using FTPAPI with IFS stream files
   Till: "HTTPAPI and FTPAPI Projects" <[7]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:
   > [8]http://www.scottklement.com/mailman/listinfo/ftpapi
   >
   ----------------------------------------------------------------------
   -
   >
   ----------------------------------------------------------------------
   -
   This is the FTPAPI mailing list.  To unsubscribe, please go to:
   [9]http://www.scottklement.com/mailman/listinfo/ftpapi
   ----------------------------------------------------------------------
   -

     -----Infogad bilaga följer-----

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

References

   1. http://se.mc296.mail.yahoo.com/mc/compose?to=ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
   2. http://schemas.xmlsoap.org/soap/envelope/
   3. http://www.w3.org/2001/XMLSchema-instance
   4. http://www.w3.org/2001/XMLSchema
   5. http://se.mc296.mail.yahoo.com/mc/compose?to=sk@xxxxxxxxxxxxxxxx
   6. http://se.mc296.mail.yahoo.com/mc/compose?to=sk@xxxxxxxxxxxxxxxx
   7. http://se.mc296.mail.yahoo.com/mc/compose?to=ftpapi@xxxxxxxxxxxxxxxxxxxxxx
   8. http://www.scottklement.com/mailman/listinfo/ftpapi
   9. http://www.scottklement.com/mailman/listinfo/ftpapi
  10. 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
-----------------------------------------------------------------------