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)

by mhchen15 on 23 8 月, 2012 in ASP, 程式 - Tags: ,
Tags: ,

There are no comments.

Name*: Website: E-Mail*:
XHTML: You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>