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

Re: HTTP_Set_AUTH and WS-Security



Hi Steve,

HTTPAPI is a file transfer program.  It transfers data over a network 
for you.  It does not know anything about SOAP, or how to generate it. 
This includes WS-Security. (Which is an "add-on" to SOAP.)  HTTPAPI 
doesn't even know that SOAP exists, much less WS-Security.  It's up to 
YOU to generate data in SOAP format, and to add WS-Security elements to 
that SOAP message, if you need it.

HTTP_setAuth() is for HTTP authentication.  HTTPAPI is designed to 
know/understand the HTTP file transfer protocol, and so supports HTTP 
authentication.  This is not related to WS-Security.

Likewise, HTTPAPI understands SSL. This also is unrelated to WS-Security.

Sorry!



On 3/4/2011 8:30 AM, Steve wrote:
>     http_setAuth( HTTP_AUTH_BASIC
>              : %trim(Userid)
>              : %trim(Passwd) );
>
> Am I missing something or using the wrong statement. ??
>
> I added this into my program thinking it was what I needed to  generate the
> security string in my Soap message But I didn't get anything.
>
> This is what is required using soap:
>
> <soapenv:Header><wsse:Security soapenv:mustUnderstand="1"
> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecuri
> ty-secext-1.0.xsd"><wsse:UsernameToken wsu:Id="UsernameToken-1"
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurit
> y-utility-1.0.xsd"><wsse:Username>userid</wsse:Username><wsse:Password
> Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token
> -profile-1.0#PasswordText">passwd</wsse:Password><wsse:Nonce
> EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-m
> essage-security-1.0#Base64Binary">uY0FMEfI6dzTVHg6/DFazQ==</wsse:Nonce><wsu:
> Created>2011-02-15T22:21:24.555Z</wsu:Created></wsse:UsernameToken></wsse:Se
> curity></soapenv:Header>
>
> With WS-Security turned off everything is fine.
>
>
> -----------------------------------------------------------------------
> 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
-----------------------------------------------------------------------