AnsweredAssumed Answered

Web Server SOAP Service: Is it possible to use different response profiles?

Question asked by BjarkeHansen4421 on Sep 24, 2015
Latest reply on Oct 5, 2015 by reddy.madhava
Hi,

I need to build a SOAP web service, which uses different response profiles depending on the result. Is it possible?
Note that the fault response doesn't include the operation name (CheckCoverageForServiceCode).

Normal response:
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope">
<s:Body>
<CheckCoverageForServiceCodeResponse>
<CheckCoverageForServiceCodeResult>
<Status>HasCoverage</Status>
<ReceiptToken>f091e028-fcb1-487d-bf38-524f40812af9</ReceiptToken>
</CheckCoverageForServiceCodeResult>
</CheckCoverageForServiceCodeResponse>
</s:Body>
</s:Envelope>

Fault response:
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope">
   <s:Body>
      <s:Fault>
         <s:Code>
            <s:Value>s:Receiver</s:Value>
            <s:Subcode>
               <s:Value>InternalFault</s:Value>
            </s:Subcode>
         </s:Code>
         <s:Reason>
            <s:Text>Internal error occurred. The error details have been logged service-side.</s:Text>
         </s:Reason>
         <s:Detail>
            <InternalFalckFault>
               <ServerLogId>69738674</ServerLogId>
               <Message>Internal error occurred. The error details have been logged on the service-side.</Message>
               <ServerTime>2015-07-13T12:37:23.2943901+02:00</ServerTime>
            </InternalFalckFault>
         </s:Detail>
      </s:Fault>
   </s:Body>
</s:Envelope>

Outcomes