PHP: SOAP remarks for a .NET web service

We can recognise an ASP.NET service looking at the de URL which has an .ASMX extension (ASP.NET Webservices Source file).

Coding Peculiarities:

  • .NET appends “Result” to the results returned by methods. In other words, if the method name is GetNames, the results you want will be found in $client->GetNames->GetNamesResult. This is a non-intuitive by-product of .NET-produced WSDL files.
  • Any parameter passed to a method must be contained in an array. Additionally, the element names in the array must match the names of the parameter in the web service.

Leave a Reply