Joined: 24 Jul 2007 |
Posts: 1 |
|
|
|
Posted: Mon Jul 23, 2007 2:52 pm |
|
|
|
|
|
Hello,
I'm using NuSoap to call an .NET webservice.
Regardless of what I try, every time I get an error returned from the webservice: 'Object reference not set to an instance of an object' . It look likes the webservice receives an empty soap message.
When I call the same webservice from Asp.net code, it works correct.
Here's the code I use:
<?php
require_once 'lib/nusoap.php' ;
$wsdlurl = 'http://www.webservice.com/MYWebservice.asmx?WSDL';
$client = new soapclient($wsdlurl, true,false,false,false,false,60,120);
$client->call('SendXML','<MYData><![CDATA[<?xml version="1.0" encoding="UTF-8"?><Aanvraagbericht><Header></Header></Aanvraagbericht>]]></MYData>');
?>
Can someone tell me what I do wrong?
|
|