所有的鸟儿他们都知道, 他们的巢应该筑在什么地方, 鸟儿知道自己该在什么地方筑巢, 那就意味着他们了解他们自己的使命。 我们身为万物之灵的人类, 怎么会不知道,连鸟儿都知道的道理呢?
php 调用 .net 的 web 服务
php 调用 .net 的 web 服务

php 调用 .net 的 web 服务

 sethm at uoregon dot edu 25-Mar-2008 11:05

Trying to connect to a .NET webservice using the PHP SOAP client, we ran into much strangeness. 

When using __soapCall do:
$params = array('a'=>$a, 'b'=>$b);
$result = $client->__soapCall('someFunction', array($params));

When using calling the function directly use:
$params = array('a'=>$a, 'b'=>$b);
$result = $client->someFunction($params);

If $params isn't associative, the client doesn't form the call correctly. Calling it other ways lead to having the first parameter dropped or the parameters not being displayed in the request.

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注