2013-06-05 12 views
5

以下のSOAP UI応答から。新しいSOAP UI要求へのSOAP UI応答の特定の値の使用方法

<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> 
    <ns0:HelpDesk_Submit_ServiceResponse xmlns:ns0="urn:HPD_IncidentInterface_Create_WS"> 
    <ns0:Incident_Number>**INC000000000274**</ns0:Incident_Number> 
    </ns0:HelpDesk_Submit_ServiceResponse> 
</soapenv:Body> 
</soapenv:Envelope> 

私はINC000000000274を取り出した後、以下のように新しいSOAPのUI要求内の特定の場所にそれを送りたいです。

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:HPD_IncidentInterface_WS"> 
<soapenv:Header> 
    <urn:AuthenticationInfo> 
    <urn:userName></urn:userName> 
    <urn:password></urn:password> 
    <!--Optional:--> 
    <urn:authentication></urn:authentication> 
    <!--Optional:--> 
    <urn:locale></urn:locale> 
    <!--Optional:--> 
    <urn:timeZone></urn:timeZone> 
    </urn:AuthenticationInfo> 
</soapenv:Header> 
<soapenv:Body> 
    <urn:HelpDesk_Query_Service> 
    <urn:Incident_Number>**INC000000000274**</urn:Incident_Number> 
    </urn:HelpDesk_Query_Service> 

私はそれをどのように行うことができますか? SOAP UIの無料版を使用しています。私が取り出してからフィードインする価値は、毎回レスポンスとは異なるでしょう。

答えて

11

インシデント番号をプロパティに格納するためのプロパティ転送ステップを設定する必要があります。このプロパティを使用すると、リクエストでそのプロパティを使用できます。

http://www.soapui.org/Functional-Testing/transferring-property-values.html

+0

おかげマット、助け:

これあるsoapUIのチュートリアルでは、説明のものと同じような状況をカバーしています。 – Sohaib