|
Re: Problem consuming dot net webservice usign nusoap: msg#00046php.nusoap.general
Hi Scott,
Thanks for finding time and replying.
I am still facing the same problem.
I am getting the message
Array ( [faultcode] => soap:Client [faultstring] => The request element <GetMsg xmlns='http://tempuri.org'> was not recognized. [detail] => )
Can u plz go through my code (its a small one) and tell me exactly where I'm going wrong and also the soln to it.
require_once("nusoap.php"); $wsdl="http://localhost/GreetingService/Service1.asmx?wsdl"; $param=array( $resp=$client->call('GetMsg',$param); I also tried making the call as : $resp =$client->call('GetMsg', array('parameters' => $param)); But still getting the same error message
Regards
Amol Dalvi
You are not passing parameters correctly from your PHP code. First, parameters to
$client->call must be in an array. As such, a more typical call would be $params = array("abc" => "Test"); $resp = $client->call("GetMsg", $params); However, unless you explicitly specify otherwise, a .NET method will use document/literal instead of rpc/encoded SOAP. For document/literal, the method parameters are wrapped in an additional element that .NET names "parameters". Your could would look like $params = array("abc" => "Test"); $resp = $client->call("GetMsg", array("parameters" => $params)); Scott Nichol Do not send e-mail directly to this e-mail address, because it is filtered to accept only mail from specific mail lists. ----- Original Message ----- From: "Amol Dalvi" < amol.007@xxxxx> To: <nusoap-general@xxxxx> Sent: Tuesday, April 12, 2005 1:46 AM Subject: [Nusoap-general] Problem consuming dot net webservice usign nusoap. |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Howto make "nested" arrays?: 00046, Lars Lystrup Christensen |
|---|---|
| Next by Date: | Re: Howto make "nested" arrays?: 00046, Scott Nichol |
| Previous by Thread: | Howto make "nested" arrays?i: 00046, Lars Lystrup Christensen |
| Next by Thread: | Re: Problem consuming dot net webservice usign nusoap: 00046, Amol Dalvi |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |