NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
complex parameters


Joined: 03 Nov 2011
Posts: 2
Reply with quote
Hi All

I have been bashing my head for hours now and I just cannot get this right.
Let me lay it out for you.

I have to pass parameters to a soap service. The wsdl portion looks like this.

<complexType name="PCRUser">
<sequence>
<element name="groupName" nillable="false" type="xsd:string" />
<element name="password" nillable="false" type="impl:Password" />
<element name="Agent" nillable="false" type="xsd:string" />
<element name="network" nillable="false" type="xsd:string" />
<element name="operatorID" nillable="false" type="xsd:string" />
</sequence>
</complexType>
<complexType name="Password">
<simpleContent>
<extension base="xsd:string" />
</simpleContent>
</complexType>

As you can see the password portion is an implementation of another structure.

My php array would obviously look something like
'user' => array(
"Agent" => "Agent",
"groupName" => "Group",
"operatorID" => "Op1",
"network" => "Network2",
"password"=> ???????
)
My question is this.
How on earth can I code the password portion. If I put it as a normal string it comes back with the following error:
"wsdl error: phpType is struct, but value is not an array: see debug output for details
"
This tells me its looking for a structure of some kind.
If I try pass it as an array it comes back and tells me the username and password are incorrect and the password portion of the request xml is blank.

Any help would be greatly apprecaited
View user's profileFind all posts by ClingerGLVSend private message


Joined: 27 Apr 2013
Posts: 1
Location: 2550 Broadway St Eureka, CA 95501
Reply with quote
These is really frustrating as i am just new to it and jut learning the programs and it s really tough.

View user's profileFind all posts by emperaivanSend private message


Joined: 01 May 2013
Posts: 1
Location: 500 E Spruce St Ste B, Missoula, MT 59802
Reply with quote
I totally agree with your. I am also new to it and have not learnt much. I am really finding it difficult. Any help on this will be appreciated.
View user's profileFind all posts by esmeduckSend private message
complex parameters
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