8 月
23
23
ASP 呼叫 Web Sevice 的方式
1、先將wsdl另存為xml檔. (例如: c:\Web_Service.xml )
2、程式範例如下:
Set oWS = Server.CreateObject(“MSSOAP.SoapClient30”) oWS.ClientProperty(“ServerHTTPRequest”) = True oWS.MSSoapInit(“C:\Web_Service.xml”)
oWS.ConnectorProperty(“AuthUser”)= “domain\user” oWS.ConnectorProperty(“AuthPassword”)= “pwd” strWS = oWS.HelloWorld() Response.Write(strWS)
There are no comments.