PHP Web Service: nusoap

Keys to access .Net web service:

  1. Datetime formate: 1961-12-21T00:00:00
  2. If passing a null parameter, "xsi:nil=true" attribute must be added. e.g. <deduct xsi:nil="true" />
  3. Use "soapval" to add data type attributes of a parameter.
    e.g. 'assuredBirth' => new soapval('assuredBirth', 'dateTime', '1961-12-21T00:00:00', false, '')
  4. Null DateTime: 0001-01-01T00:00:00
  5. Conclusion: .Net web services don't like nusoap!! Try to use native soap functions of PHP.

Useful tool to test web services:

  1. wizdl: Amazing tool to test .Net web services:
  2. SOAP Client:

Web Service Example:



Complete successful SOAP request: