Hello,

I have to use the Basic authentication in every request to a webservice.
I know about the function
conn.SetBasicAuthentication (string domain, string userID, string password)

But that doesn't add any authentication header.
I used the Fiddler to find out.

What can be the reason for?
What can i do?????

In the webservice forum I found the "web service authentication header
question" There lucy.liu says that .....

It seems that your problem is that some default values of SoapHeader
members
are wrong.
You can see there are those members in the soapheader nvo structure:
EncodedMustUnderstand
EncodedMustUnderstand12
EncodedRelay

You can re_set the default values of those members in the constructor:
EncodedMustUnderstand="0"
EncodedMustUnderstand12="0"
EncodedRelay="0"

But I Cannot access the SoapHeader-NVO

Here is my source code:
If it is nessesary I can give you the address to the wsdl too and the
rest of the code.


SoapConnection iConn
NonVisualObject ipxy_proxy
iConn = CREATE SoapConnection

ll_rc = iConn.removeAuthentication ( )
ll_rc = iConn.UseIntegratedWindowsAuthentication ( FALSE )

ll_rc = iConn.SetBasicAuthentication (is_url,ls_proxyKennung,
ls_proxyPasswort)
IF ll_rc > 0 THEN
ll_rc = -1
END IF


TRY
IF is_url <> "" THEN
ll_rc = iConn.CreateInstance ( ipxy_proxy, is_proxyType, is_url )
ELSE
ll_rc = iConn.CreateInstance ( ipxy_proxy, is_proxyType )
END IF

IF ll_rc <> 0 THEN
messagebox ( "error1", ll_rc )
END IF
CATCH ( SoapException ex )
ll_rc = -1
messagebox ( "error2", ex.text )

END TRY