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, 'http://www.w3.org/2001/XMLSchema')
  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.
    http://tw1.php.net/soap
     

Useful tool to test web services:

  1. wizdl: Amazing tool to test .Net web services:
    http://wizdl.codeplex.com/
  2. SOAP Client:
    http://www.soapclient.com/soapclient

Web Service Example:

Reference:

Tools:

Complete successful SOAP request: