WShaffer
14 years agoNew Contributor
Mock Services: Specifying specific XML for a resonse message
SoapUI version: SoapUI Pro 4.0.1
Operation System: Windows Server 2008 32 bit
Problem:
I am trying to do something very simple. I have a mock service with an operation. I want the operation to return a specific set of XML when it receives a response. The operation has one response defined: "response1". Dispatch is Sequence. I have gone into the MockResponse editor and created the XML shown below. I create a request for this response and issue the request. Instead of getting the specified respons (as shown below), SoapUI builds a response from based on the schema and fills the element content with question marks.
How can I get SoapUI to return the desired XML content?
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<x:PolicyInqRs xmlns:x="http://www.ACORD.org/standards/PC_Surety/ACORD1/xml/">
<x:Requestor/><x/:TransactionResponseDt>2011-10-24</x:TransactionResponseDt>
<x:RqUID>444444</x:RqUID><x/:MsgStatus><x:MsgStatusCd>Success</x:MsgStatusCd></x:MsgStatus></x:PolicyInqRs>
</soapenv:Body>
</soapenv:Envelope>
Operation System: Windows Server 2008 32 bit
Problem:
I am trying to do something very simple. I have a mock service with an operation. I want the operation to return a specific set of XML when it receives a response. The operation has one response defined: "response1". Dispatch is Sequence. I have gone into the MockResponse editor and created the XML shown below. I create a request for this response and issue the request. Instead of getting the specified respons (as shown below), SoapUI builds a response from based on the schema and fills the element content with question marks.
How can I get SoapUI to return the desired XML content?
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<x:PolicyInqRs xmlns:x="http://www.ACORD.org/standards/PC_Surety/ACORD1/xml/">
<x:Requestor/><x/:TransactionResponseDt>2011-10-24</x:TransactionResponseDt>
<x:RqUID>444444</x:RqUID><x/:MsgStatus><x:MsgStatusCd>Success</x:MsgStatusCd></x:MsgStatus></x:PolicyInqRs>
</soapenv:Body>
</soapenv:Envelope>