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

Re: [Ftpapi] Fwd: HTTP API Question



Hi, 

Thanks for response. Even though i set HTTP_AUTH_BASIC, still i am getting below error.

"This page requires a user-id & password" . Is there anything else i am missing? 

Thanks.

On Tue, May 22, 2018 at 2:31 AM, Alasdair Macdonald <alasdairgmacdonald@xxxxxxxxx> wrote:
Authentication :

Callp     http_setauth(HTTP_AUTH_BASIC
                      : %trim ( User )
                      : %trim ( Pass ) )

Send data from file; receive response into file :

Eval      ErrorCodeHttp = http_url_post_stmf (
                            %trim ( URL )
                          : PostFile
                          : ResponseFile
                          : HTTP_TIMEOUT
                          : HTTP_USERAGENT
                          : 'application/xml'
                          : SOAPaction     )

Scan HTTP_API_H for "http_url_post_stmf" and read the comments. You
might need to use text/xml instead of application/xml.

With a robust program, and a system that you are familiar with, you
might find some advantages to sending data from, and receiving the
response into memory (as opposed to IFS files). But this can make
troubleshooting harder, and I would recommend starting with file
transfers.







On 21 May 2018 at 18:38, Vino <vinomails@xxxxxxxxx> wrote:
> Hi Team,
>
> I need to send SOAP request as a XML file to another server with basic
> authentication. I am little confused which procedures to use for
> authentication and send xml file.
--
_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi

-- 
_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi