2017-09-17 8 views
0

Gatling에서 웹 서비스 스크립트를 만들려고 시도하고 있지만 XML 비누를 스크립트에 전달하는 방법을 잘 모르겠습니다. 개틀링 문서는 우리가 .body (StringBody()하지만, 형식의 확인 MOT를 통해 XML을 보낼 필요가있다.Gatling 스크립트에서 SOAP XML을 전달하는 방법

이 내가 필요로하는 XML, 나는 '

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
    <soapenv:Header/> 
    <soapenv:Body> 
     <p359:DeleteSellSeqReq xmlns:p977="http:xxxxx.com" xmlns:p619="http://xxxxx.com" xmlns:p359="http://xxxxx.com/2006/11/15/MaintainSellSequence_1"> 
      <p977:RequestContextBean xmlns:p357="http://xxxxxx.com"> 
       <p357:RequestTransactionID>xxxxxxxxx</p357:RequestTransactionID> 
       <p357:FlowSeqNum>1</p357:FlowSeqNum> 
       <p357:ContextFrames> 
        <p357:Name>xxx</p357:Name> 
        <p357:Type>xxx</p357:Type> 
        <p357:ServiceInterface>com.sxxxxxxxxxxx</p357:ServiceInterface> 
        <p357:Operation>buildRequestContext</p357:Operation> 
        <p357:IPAddress>xxxxxxx</p357:IPAddress> 
       <p357:LocalContextParameters>CTX_UTC=1493024853726</p357:LocalContextParameters> 
        <p357:LocalContextParameters>VERSION=Unknown Version</p357:LocalContextParameters> 
       </p357:ContextFrames> 
       <p357:ContextFrames> 
        <p357:Name>NodeName</p357:Name> 
        <p357:Type>NodeType</p357:Type> 
        <p357:ServiceInterface>xxxxxxxxxxxxx.businessServices.SellSequenceService.SellSequencePort</p357:ServiceInterface> 
        <p357:Operation>deleteSellSequence</p357:Operation> 
        <p357:IPAddress>localhost</p357:IPAddress> 
        <p357:LocalContextParameters>CTX_UTC=1493024853728</p357:LocalContextParameters> 
        <p357:LocalContextParameters>VERSION=1</p357:LocalContextParameters> 
       </p357:ContextFrames> 
      </p977:RequestContextBean> 
      <p619:Channel>xxx</p619:Channel> 
      <p619:Division>xxx</p619:Division> 
      <p619:RateCode>xxx</p619:RateCode> 
      <p619:ChainCode>xxx</p619:ChainCode> 
      <p619:AfflCd>xxx</p619:AfflCd> 
     </p359:DeleteSellSeqReq> 
    </soapenv:Body> 
</soapenv:Envelope> 

답변

0

전달하는 것입니다 배웠다에서 m이 그것을 할 수있는 가장 좋은 방법입니다 말하고 있지,하지만 간단한 예제로 :이 답변으로 문제가 해결되지 않는 경우

val someBody = "<soapenv:Env..." 
val someRequest = http("some name") 
         .post("some route") 
         .body(StringBody(someBody)) 
val sc = scenario("some scenario") 
      .exec(someRequest) 

는 다음에 문제가 정확히 무엇인지에 대한 구체적

.