Jump to content

wierdness with NuSOAP when acting as a SOAP server


filmo

Recommended Posts

So I'm setting up a web service using NuSOAP to perform a task and return a result. The problem I'm having is that if the elment of the array being returned is a path with "/" in it, the returned result is NULL;

In the listing below, the soap client calling the service listed below with via:
$result = $SOAP_client->call('move_file',$SOAP_params);

Ends up with $result = NULL;

Listing for SOAP server:
[code=php:0]
$server = new soap_server;
$server->register('move_file');

function move_file($from_file, $to_file) {
  blah blah blah

  $result_ary['path/to/file/here/file.ext'] = array ('result'=>'pass','desc'=>'blah blah');
  return $result_ary;
}
remaining code here <snip>
[/code]


if I change the SOAP server so that the first element of the array is something like:

  $result_ary['notApath'] = array ('result'=>'pass','desc'=>'blah blah');

Then I get a result from the soap client as expected ($result contains the array of info).

Is there some reason I can't pass "/"s as part of an array element when using NuSOAP. We used to have this same webservice running as a Perl SOAP::Lite service, (which was able to pass file_paths just fine to the PHP soap client), so I don't think it's something to do with the SOAP specification????

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.