Joined: 14 Dec 2005 |
Posts: 3 |
|
|
|
Posted: Tue Dec 13, 2005 8:51 am |
|
|
|
|
|
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
|
|