PHP에서 Classic ASP 웹 서비스를 호출하려고합니다.PHP에서 Classic ASP 웹 서비스 호출
<%
Response.Buffer = True
Response.ContentType = "text/xml"
Set xmldom = Server.CreateObject("Microsoft.XMLDOM")
Set xmlhttp = Server.CreateObject("MSXML2.ServerXMLHTTP")
Sub Test()
returnXML = ""
returnXML = returnXML & "<SOAP:Envelope xmlns:SOAP=""urn:schemas-xmlsoap-org:soap.v1"">"
returnXML = returnXML & "<SOAP:Body>"
returnXML = returnXML & "<message>"
returnXML = returnXML & "<theword>Hello</theword>"
returnXML = returnXML & "</message>"
returnXML = returnXML & "</SOAP:Body>"
returnXML = returnXML & "</SOAP:Envelope>"
Response.Write(returnXML)
End Sub
Set xmldom = Nothing
Set xmlhttp = Nothing
%>
내가 비 WSDL 모드에서 PHP에서이 서비스를 호출 할 : 여기
는 서비스입니다. 어떻게해야합니까? 서비스 내에서 특정 기능을 호출하려면 어떻게해야합니까?<?php
$client = new SoapClient(
null, array(
'location' => "http://server/folder/server.asp",
'uri' => "http://test-uri/",
'style' => SOAP_DOCUMENT,
'use' => SOAP_LITERAL,
'trace'=>1
)
);
$result = $client->Test();
$client->__getLastResponse();
?>
감사합니다 ...
서버와 클라이언트를 제어 할 수 있고 ASP와 PHP 인 경우 SOAP 대신 자신의 통신 API를 사용하는 것이 가장 좋은 이유는 무엇입니까? 또한 고전적인 ASP SOAP 웹 서비스를위한 라이브러리가 있습니다. – mellamokb