Jump to content

Nusoap And Xml Format


Recommended Posts

I'm having a problem putting together a XML file with the right format required by the webservice I want to use. I'm using the nusoap class to do it.

The error I'm getting:



[Reservation_Data] => Array


[Reservation_Value] => 0

[status] => ERROR_Create_Internacional_Reservation: Object reference not set to an instance of an object. - 0



My request is:

POST /Rentway_Internacional_Reservations_WS/Create_Reservation.asmx HTTP/1.0


User-Agent: NuSOAP/0.9.5 (1.123)

Content-Type: text/xml; charset=UTF-8


Content-Length: 714

<?xml version="1.0" encoding="UTF-8"?>

<SOAP-ENV:Envelope xmlns:SOAP-ENV="

<SOAP-ENV:Body><Create_Internacional_Reservation xmlns="










My code is:



$client = new nusoap_client('http://www.xxxxxxxxxx.pt/Rentway_Internacional_Reservations_WS/Create_Reservation.asmx?wsdl', true);

$param = array('Username'=>'xxx','Password'=>'xxx','MessageType'=>'N','Group'=>'01');

$result = $client->call('Create_Internacional_Reservation', array('Reservation_Request' => $param));


When getting information about the request on the webservice's manual which I was advised to use, the only difference I can find is:


Code (XML):






Should be:

<Reservation_Request xmlns="





How can I send (xmlns="http://www.xxxxxx.pt/Rentway_Internacional_Reservations_WS/Reservation_Request.xsd" ) inside Reservation_Request ?

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.

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.