2017-07-07 216 views
0

下面的代碼是工作在了SoapUI:SOAP請求PHP

https://webserver.domain.com/Service?server=webserver-prod&webService=WS_Create_Incident

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:WS_Create_Incident"> 
<soapenv:Header> 
    <urn:AuthenticationInfo> 
     <urn:userName>[email protected]</urn:userName> 
     <urn:password>Scrambled</urn:password> 
    </urn:AuthenticationInfo> 
</soapenv:Header> 
<soapenv:Body> 
    <urn:HelpDesk_Submit_Service> 
     <urn:Assigned_Group>GROUP</urn:Assigned_Group> 
     <urn:Assigned_Support_Company>COMPANY</urn:Assigned_Support_Company> 
     <urn:Assigned_Support_Organization>ORGANIZATION</urn:Assigned_Support_Organization> 
    </urn:HelpDesk_Submit_Service> 
</soapenv:Body> 
</soapenv:Envelope> 

我已經安裝了PHP的測試服務器上的SOAP擴展。我如何使用PHP提出這個請求?

回答