Hi Anastia,
I have a getUser method which gets the information of the user and editUser method where i need to put the same information that getUser gave me and then trying to modify some of them.
So i need to copy all the response of this method:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns1:editUserResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://services.soap.usm.ca.com">
<editUserReturn xsi:type="ns2:User" xmlns:ns2="urn:usmUserService">
<groups soapenc:arrayType="xsd:string[2]" xsi:type="soapenc:Array" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<address soapenc:arrayType="xsd:string[6]" xsi:type="soapenc:Array" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<address xsi:type="xsd:string">address1</address>
<address xsi:type="xsd:string">address2</address>
<address xsi:type="xsd:string">address3</address>
<address xsi:type="xsd:string">address4</address>
<address xsi:type="xsd:string">address5</address>
<address xsi:type="xsd:string">address6</address>
</address>
<groups xsi:type="xsd:string">Workflow Admin</groups>
<groups xsi:type="xsd:string">Workflow SuperUser</groups>
</groups>
<firstName xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">test1</firstName>
<lastName xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">test2</lastName>
</getUserReturn>
</ns1:getUserResponse>
</soapenv:Body>
</soapenv:Envelope>
put this information into method editUser():
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://services.soap.usm.ca.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<soapenv:Header/>
<soapenv:Body>
<ser:editUser soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<sessionID xsi:type="xsd:string">94b9110a-cc38-41fd-8d9b-725deb305ebe</sessionID>
<userObj xsi:type="urn:User" xmlns:urn="urn:usmUserService">
<address xsi:type="urn:ArrayOf_xsd_string" soapenc:arrayType="xsd:string[]"/>
<firstName xsi:type="xsd:string">?</firstName>
<groups xsi:type="urn:ArrayOf_xsd_string" soapenc:arrayType="xsd:string[]"/>
<lastName xsi:type="xsd:string">?</lastName>
</userObj>
</ser:editUser>
</soapenv:Body>
</soapenv:Envelope>
The xquery for address worked but the property transfer didnt. Not sure what am i doing wrong?
Thank you,
Suada