Re: [SOAP] SOAP client connecting to .net webservice

From: Date: Wed, 29 Aug 2007 00:53:48 +0000
Subject: Re: [SOAP] SOAP client connecting to .net webservice
References: 1  Groups: php.soap 
Request: Send a blank email to php-soap+get-2620@lists.php.net to get a copy of this message
$ini = ini_set("soap.wsdl_cache_enabled","0"); $client = new SoapClient("http://10.0.0.56:81/wssoilution/wsSoilution.asmx?WSDL", array('location' => 'http://10.0.0.56:81/wssoilution/wsSoilution.asmx', 'uri' => 'itw', 'trace' => 1)); The error I am recieving is: Fatal error SoapHeader:SoapHeader(): Invalid parameters. Invalid namespace in soaptest.php on line 20 Basically the namespace you are giving to the client with 'uri' option is invalid.
Because you are using the WSDL mode of the client, I think you can safely remove the 'uri' option form the SoapClient constructor. HTH. Samisa... -- Samisa Abeysinghe - Apche Axis2/C "http://ws.apache.org/axis2/c/?Apache Axis2/C The Web Services Engine"

« previous php.soap (#2620) next »