NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Help with NUSoap attributes

Joined: 15 Dec 2013
Posts: 3
Reply with quote
I am using Nusoap to create my soap request and get the response.

I have coded as follows:

   $client = new nusoap_client('wsdl_link', true);

The structure of the request i want to generate is:

<rootlevel att1="abc" att2="def" >

</rootlevel >

The parameters are as follows:

  'start'=>array(/*array defined here*/));

$result = $client->call('function_name', array('rootlevel' => $params));

But with the request generated is as follows:

<?xml version="1.0" encoding="ISO-8859-1"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="" xmlns:xsd="" xmlns:xsi="" xmlns:SOAP-ENC="" xmlns:ns4439="">
    <rootlevel xmlns="http://site/01">


In the wsdl, the tag rootlevel is defined as ref="tns:rootlevel" and attributes are defined under name=rootlevel which is somewhere else in the wsdl.

For some of the attributes the request is coming proper(here the tag is defined as name and the attributes are under this tag.). but some are being replaced by xmlns.. Please let me know where im going wrong.
View user's profileFind all posts by simoneSend private message
Help with NUSoap attributes
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