Forum Discussion
ChristineA
13 years agoOccasional Contributor
Hi
Sorry for asking stupid questions, but I am trying to use property transfers with ResponseAsXML (from a JSON request)
I am definitely not structuring the source correctly - can anyone give me the correct format?
The XML response I get back from the JSON request is:
<Response xmlns="some.svc/doLogin">
<doLoginResult>
<Client>
<Code>BWK</Code>
<Description>Board Walk</Description>
<Fax>1231231212</Fax>
<Id>3</Id>
<Logo>iVBORw0KGgoAAAANSUhEUgAAAMgAAACMCAYAAAA5kebkAAAACXBIW</Logo>
<Max_Users>50</Max_Users>
<Phone>1231231232</Phone>
<Status>1</Status>
<Website>somesite.com</Website>
</Client>
<Code>1</Code>
<Message null="true"/>
<TimeStamp>0</TimeStamp>
<UserIdentity>
<ClientId>3</ClientId>
<Comments null="true"/>
<CreatedDate>1369215629</CreatedDate>
<Email>clientemail@hotmail.com</Email>
<Id>47</Id>
<Password>xnU4/X+MbtV5tOm9iT3kDDAfVcKzFCBgHrKbbEjkQfE=</Password>
<PasswordSalt null="true"/>
<SessionId>542269e791f8a408</SessionId>
<UserName>TomHolt</UserName>
</UserIdentity>
</doLoginResult>
</Response>
I am trying to do a property transfer on the SessionId, the Id and the ClientID
Let's just take the ClientID to start with
I've set up a property transfer, with the source as the DoLogin test case (JSON POST) and the 'Property' set to ResponseAsXML
In the Source box I have:
//Response/doLoginResult/UserIdentity/ClientId
I also tried
//Response//doLoginResult//UserIdentity//ClientId
Neither of these seem to be correct since I get an error message: Missing match for Source Xpath
Can anyone just give me an example of what the source format should be?
Thanks
Sorry for asking stupid questions, but I am trying to use property transfers with ResponseAsXML (from a JSON request)
I am definitely not structuring the source correctly - can anyone give me the correct format?
The XML response I get back from the JSON request is:
<Response xmlns="some.svc/doLogin">
<doLoginResult>
<Client>
<Code>BWK</Code>
<Description>Board Walk</Description>
<Fax>1231231212</Fax>
<Id>3</Id>
<Logo>iVBORw0KGgoAAAANSUhEUgAAAMgAAACMCAYAAAA5kebkAAAACXBIW</Logo>
<Max_Users>50</Max_Users>
<Phone>1231231232</Phone>
<Status>1</Status>
<Website>somesite.com</Website>
</Client>
<Code>1</Code>
<Message null="true"/>
<TimeStamp>0</TimeStamp>
<UserIdentity>
<ClientId>3</ClientId>
<Comments null="true"/>
<CreatedDate>1369215629</CreatedDate>
<Email>clientemail@hotmail.com</Email>
<Id>47</Id>
<Password>xnU4/X+MbtV5tOm9iT3kDDAfVcKzFCBgHrKbbEjkQfE=</Password>
<PasswordSalt null="true"/>
<SessionId>542269e791f8a408</SessionId>
<UserName>TomHolt</UserName>
</UserIdentity>
</doLoginResult>
</Response>
I am trying to do a property transfer on the SessionId, the Id and the ClientID
Let's just take the ClientID to start with
I've set up a property transfer, with the source as the DoLogin test case (JSON POST) and the 'Property' set to ResponseAsXML
In the Source box I have:
//Response/doLoginResult/UserIdentity/ClientId
I also tried
//Response//doLoginResult//UserIdentity//ClientId
Neither of these seem to be correct since I get an error message: Missing match for Source Xpath
Can anyone just give me an example of what the source format should be?
Thanks