GregGLV - 2013-04-15

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">
<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" />
<complexType name="Password">
<extension base="xsd:string" />

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