将.net SOAP调用转换为PHP


Converting .NET SOAP call to PHP

我正在尝试创建一个脚本,该脚本可以拉下由供应商使用SOAP创建的XML文件。他们唯一的文档是用VB编写的。. NET,但我试图在PHP中使用它-到目前为止无济于事。下面是。net示例:

Private Sub GetData()
‘ Proxy is an arbitrary name I used to point to the City of Virginia Beach Web Reference URL.  
‘ You may call it something else in your code.
        Dim soapHeader As Proxy.UserCredentials = New Proxy.UserCredentials
        soapHeader.Email = "YourEmailAddress@Domain.com"
        soapHeader.Password = "password"
        Dim ws As Proxy.Service = New Proxy.Service
        ws.UserCredentialsValue = soapHeader
        Dim forDate As DateTime = "1/1/2011"
        Dim result As String = ws.GetIncidentData(forDate)
    End Sub

如果有任何帮助,我将不胜感激

我将从这里开始:http://php.net/manual/en/book.soap.php
Curl还可以用于以下内容:http://php.net/manual/en/book.curl.php