NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Help Needed with Paramter Array


Joined: 19 May 2010
Posts: 1
Location: Australia
Reply with quote
Hi! I need some help in translating an XML request string into the matching PHP array.

I have been told the request I need to send should look like the below XML:

Code:
<?xml version="1.0" ?>
<VehLocDetail>
<Action />
<Message>
<POS>
<Source>
<RequestorID Type="000" ID="000" />
<BookingChannel Type="0" Primary="false" />
</Source>
</POS>
<Location LocationCode="000000" />
</Message>
</VehLocDetail>



But no matter what I seem to try when creating the array the request has nothing in it.

Code:

$client = new nusoap_client('http://....?WSDL', TRUE);
$params = Array(
    'POS'   => Array(
        'Source' => Array(
            'RequestorID'    => Array('Type' => '000', 'ID' => '000'),
            'BookingChannel'    => Array('Type' => '0', 'Primary' => 'false'))),
    'Location'    => Array('LocationCode' => '000000'));

$thisloc = $client->call('VehLocDetail', $params);



The created request string:

Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2967="http://tempuri.org">
<SOAP-ENV:Body>
<VehLocDetail xmlns="http://..."/>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>



Can someone help please?!
View user's profileFind all posts by disc_rentalsSend private message


Joined: 15 Dec 2013
Posts: 3
Reply with quote
Hi, i have a similar problem posted at http://forum.nusphere.com/help-with-nusoap-attributes-t9741.html#33015#33015 Struggling with this for long.. did u find a solution for it?
View user's profileFind all posts by simoneSend private message
Help Needed with Paramter Array
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