Xml Powerbuilder使用基本身份验证调用Web服务

Xml Powerbuilder使用基本身份验证调用Web服务,xml,web-services,basic-authentication,powerbuilder,Xml,Web Services,Basic Authentication,Powerbuilder,我使用的是PB11.5.1(经典版),我想将XML传递给使用BasicAuth的Web服务 我找不到如何实施基本原则 我搜索过论坛/博客,但如果可能的话,我没有找到明确的答案 感谢您提供的任何帮助也许您可以使用oleobject,它使用MSXML.ServerXMLHTTP: // args: as_username, as_password, as_basicauthstring oleobject lole_http string ls_response lole_http = creat

我使用的是PB11.5.1(经典版),我想将XML传递给使用BasicAuth的Web服务

我找不到如何实施基本原则

我搜索过论坛/博客,但如果可能的话,我没有找到明确的答案


感谢您提供的任何帮助

也许您可以使用
oleobject
,它使用
MSXML.ServerXMLHTTP

// args: as_username, as_password, as_basicauthstring
oleobject lole_http
string ls_response

lole_http = create oleobject

lole_http.ConnectToNewObject("msxml2.ServerXMLHTTP")

lole_http.Open("POST", ls_theurl, FALSE, as_username, as_password)
lole_http.setTimeouts 5000, 5000, 10000, 10000 //ms - resolve, connect, send, receive
lole_http.setRequestHeader("Authorization", "Basic " + as_basicauthstring)  // set your basic auth string here

lole_http.Send(xmlToSend)

ls_response = lole_http.responseText

lole_http.DisconnectObject()