NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
beginner question


Joined: 14 Dec 2005
Posts: 3
Reply with quote
Hi guys.

I'm a little stuck:

Im obviously using PHP and nuSOAP to consume a webservice:

I've got the following:

$serverpath ='http://www.XXXDomain.com/Webservices/Member/wsMember.asmx';
$client = new soapclient($serverpath);

i build up my array for which to send to the webservice

$param = array('AgencyInfo' => $AgencyInfo, 'BasicInfo'=>$BasicInfo, 'ArtistAddress'=>$ArtistAddress, 'ArtistProfile'=>$ArtistProfile, 'ArtistPhotos'=>$ArtistPhotos);

After I build up the array for which to send to the web service I have the following code:


$result = $client->call('AgencyCreateArtist', $param );

then I check if there was a fault (in my case there is)

if ($client->fault) {
echo '<p><b>Fault: ';
print_r($result);
echo '</b></p>';
}

I get the following error:

Fault: Array ( [faultcode] => soap:Client [faultstring] => System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: . at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest() at System.Web.Services.Protocols.SoapServerProtocol.Initialize() at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing) [detail] => )

Im not sure what this error means, I read that it has something to do with namespaces?

Also I've in many examples that people define the wsdl but in some cases not, when is it applicable to define it and when not, and should I be defining it?

thanks in advance


--

Angelo
View user's profileFind all posts by bebilSend private message
beginner question
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