Forum Discussion

funk1982's avatar
14 years ago

NOt able to fecth the value from response

Hi,

I am tryong to fetch the JobID value from the below response:
</soap:Header>
<soap:Body>
<SendRequestResponse xmlns="http://www.newgensoft.com/">
<SendRequestResult><![CDATA[<Response JobID="REQ_LKDR3627tk" Type="AUTHENTICATION"><Status Value="SUCCESS" Message="" /><UploadInfo ChunkSize="4094" ProxyChunkSize="300" /><DriverInfo BuildNumber="1.23.0" BuildType="Major" UpdateVirtualDriver="true" UpdateUpdater="true" Site="NPCNoidaSezLocation" InterLocSupport="True" /><GroupInfo ENFREV="False" COLSUP="False" /><Result /></Response>]]></SendRequestResult>
</SendRequestResponse>
</soap:Body>


I used the property transfer way, was able to fetch the CDATA and store it in temporary variable. But need some help to fetch the Response JobID="REQ_LKDR3627tk".
Please help.

Thanx in advance

Sandeep Dahiya

2 Replies

  • deepesh_jain's avatar
    deepesh_jain
    Frequent Contributor
    Hi Sandeep,

    The easiest way if you already have the complete value of CDATA is by using groovy script. Just use the substring function to get the value within quotes and you should be good to go.

    Let me know if this works.

    Regards,
    Deepesh Jain