NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Server was unable to process request...


Joined: 29 Jun 2007
Posts: 2
Reply with quote
Hi,

I'm trying to connect to a webService server which is installed by a third party company.
I have written a client SOAP PHP code using nusoap.php.

I'm getting the following Error from the Server...

Fault
Array
(
[faultcode] => soap:Server
[faultstring] => Server was unable to process request. --> Value cannot be null.
Parameter name: ServerName
[detail] =>
)

This is a part of my SOAP php code...

<?php
// include the SOAP classes
require_once('lib/nusoap.php');

// define path to server application
$serverpath ='http://virtualxxx.tau.ac.il/BksService/portal.asmx?wsdl';

// define parameter array
$param = array(
'Domain' => 'virtual2002.tau.ac.il',
'language' => '972',
'username' => 'xxx',
'span' => '2'
);

// create client object
$client = new soapclient($serverpath, true);

$err = $client->getError();
if ($err) echo '<h2>Constructor error</h2><pre>' . $err . '</pre>';

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

...
...
...

?>

(I've altered a bit of the parameters...)

Since the server side is not under my supervison, I'm unable to change anything on the server side.

Any idea what is this ServerName parameter?

Thanks,

Chezy Gal
[/quote]
View user's profileFind all posts by ChezySend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
please try $result = $client->call('GetAssignments', array($param));

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 29 Jun 2007
Posts: 2
Reply with quote
Thanks,

This is correct...

When working with asp.net you need tp pack the param array into an array.

Thanks for the help.

Chezy Gal
View user's profileFind all posts by ChezySend private message
Server was unable to process request...
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