Forum Discussion

sathyaraj's avatar
sathyaraj
Occasional Contributor
8 years ago
Solved

property transfer in soapui

The below one is my SOAPUI response.i have to pass the Session ID into my request.

 

 

SOAPUI response:

 

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header xmlns="http://xml.xpath.com/ws/2009/01/ABCDE-2.0.xsd">
<Session>
<SessionId>03CU9JK9I1</SessionId>
<SequenceNumber>1</SequenceNumber>
<SecurityToken>52521125215DSFFWERWQER</SecurityToken>
</Session>
</soap:Header>
<soap:Body>
<Security_TrustedUserSignInReply xmlns="http://xml.xpath.com/ABC">
<processStatus>
<statusCode>P</statusCode>
</processStatus>
</Security_TrustedUserSignInReply>
</soap:Body>
</soap:Envelope>

 

 

I have tried the xpath as //Session/SessionId only.when i validate the xpath its giving proper session id in notepad++ xpath evaluation tool.

 

but i cant able to get the session id response in request.

 

kindly help me to solve the issue..i am new to the soapui stuffs.

 

thanks

sathya

  • nmrao's avatar
    nmrao
    8 years ago
    Please use the xpath provided as it is. You did not use as it is. It was missing ":" after "*".
  • SequenceNumber and SecurityToken these elements not working when i tried the similar thing..getting the below error

     

    Mon Jul 25 07:18:12 BST 2016 SequenceNumber [Missing match for Target XPath [//*:SequenceNumber/*:SequenceNumber]]

     

    aything to change for the next node

  • everything fine..sorrry bro:)

10 Replies

  • nmrao's avatar
    nmrao
    Champion Level 3
    Missing namespace?
    Try below
    //*:Session/*:SessionId
    • sathyaraj's avatar
      sathyaraj
      Occasional Contributor

      Thank u so much rao.kindly help me in creating namespace for the given xml response.

       

      this is the namesapce i used but i am getting error.anything wrong ?

       

      declare namespace soap='http://schemas.xmlsoap.org/soap/envelope/';

      i have to mention any other thing in the namespace. 

       

      if possible kindly help me in transferring this below fields completely from dynamic response to request.

       

      <Session>
      <SessionId>03CU9JK9I1</SessionId>
      <SequenceNumber>1</SequenceNumber>
      <SecurityToken>52521125215DSFFWERWQER</SecurityToken>
      </Session>

       

       

      thanks for your support.thank u so much

      • nmrao's avatar
        nmrao
        Champion Level 3
        You did not mention what happened to the earlier suggestion. Would you mind revert back after trying that?