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

RE: Re: Receving data past back from a webservice



Sender: "Calabro, Buck" <Buck.Calabro@xxxxxxxxxxxx>

> I am still unable to get the post to work.  

I think you may be making this more complex than necessary.

> This is what the user who wrote the 
> webservice gave me as a guide to follow.  

Excellent!  

> HTTP POST
> The following is a sample HTTP POST request and response. The 
> placeholders shown need to be replaced with actual values.

This is what you must send:

> POST /billingtest/service1.asmx/BillingTest HTTP/1.1
> Host: rtidev
> Content-Type: application/x-www-form-urlencoded
> Content-Length: length
> 
> orderNumber=string


This is what comes back

> HTTP/1.1 200 OK
> Content-Type: text/xml; charset=utf-8
> Content-Length: length
> 
> <?xml version="1.0" encoding="utf-8"?>
> <string xmlns="http://roehl.com/webservices/";>string</string>

This contains exactly what he expects to hear, and what he will return to you.  I would advise you to hard-code these into a copy of an HTTPAPI2 and try it.  Don't think about anything else except sending an accurate POST and listening for the answer.

> If I were to read from the IFS, how would I go about doing that?

What exactly are you trying to read from the IFS?  The basic flow runs from your program to the web server and back to your program.  There isn't any IFS involved.  I'd forget that for the moment and hard-code the above and run it.
  --buck


The information contained in this electronic mail transmission is intended by Communications Software Consultants, Inc. for the use of the named individual or entity to which it is directed
and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please notify the sender immediately and delete this
message from your system without copying or forwarding it.

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------