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

Re: Question Using https



   Hi Craig,
   It's important to understand that when you get back a 500 error, it
   does NOT mean that the web service didn't return anything.
   Most web services will return a "200" if successful, and a "500" if an
   error occurs.  In _both_ cases, they return a response in SOAP, XML,
   JSON, or whatever the particular web service returns.   In the case of
   200, they return the output of a successful call to the service, as I'm
   sure you know...   but in the case of 500, there's still a response
   document, typically it contains an error message.
   So look at the error message in the response document (which may be in
   plain text, XML or JSON.... sometimes even HTML... depending on the web
   service.   Example: For a SOAP web service, you'll have a <soap:fault>
   tag containing the error message.)
   That should give you more info about what's wrong.

   On 12/4/2012 2:55 PM, Craig Schulstad wrote:

    [[1]cid:image001.gif@01CDD22E.01B61090]

   All,


   I have installed and tested the HTTPAPI package on my System i.  The
   http example (EXAMPLE16) that calls a web service for currency
   conversion works fine.  However, when I try out my test program that
   attempts to call Fedex for an address validation (similar to the UPS
   address validation) via an https call, I receive a generic "500" status
   code for my efforts.


   I have gone through the "readme" file and worked with the System
   administrator to make sure we have all of the prerequisite OS software
   (we do) and we have checked to make sure the "*SYSTEM" certificate
   store is in place.  Also, we have given user "*PUBLIC" authority to all
   of the IFS folders as noted in the "readme" file as well.  I have used
   the SOAPUI tool to derive the SOAP document information from the WSDL
   file, so everything looks proper.


   Since this is my first "go" at consuming a web service from an RPGLE
   program is there something still not set up or "turned on" on the
   System i (e.g. and HTTP/HTTPS daemon or such)?  Getting an HTTP status
   code of "500" seems to indicate that the program is getting out to the
   Fedex site, but I can't be sure.  That's where I am looking for a bit
   of advice.


   Thanks.


   Regards,


   Craig

   [1]Description: Description: Description: Infor

   Craig Schulstad | Sr. Technical Consultant - System21 | Infor | office
   (cell): 952.250.0223 | fax: 952.401.9360 | [[2]2]craig.schulstad@xxxxxxxxx

References

   1. [3]http://www.infor.com/
   2. [4]mailto:craig.schulstad@xxxxxxxxx


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

References

   1. cid:image001.gif@01CDD22E.01B61090
   2. mailto:2]craig.schulstad@xxxxxxxxx
   3. http://www.infor.com/
   4. mailto:craig.schulstad@xxxxxxxxx
   5. 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
-----------------------------------------------------------------------