NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Error 'Object reference not set to an instance of an object'


Joined: 24 Jul 2007
Posts: 1
Reply with quote
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?
View user's profileFind all posts by Jens75Send private message
Error 'Object reference not set to an instance of an object'
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic