Wasi Zaidi

Wasi Zaidi

  • NA
  • 48
  • 883

Can i send a SOAP response without SOAP envelop and body tag

Aug 28 2017 9:32 AM

I'm sending the response as XML document from my WCF service.

 <AnalysisResponse> 
   <AnalysisResult> 
     <Note>0Note>
     <Summary/>  
   </AnalysisResult>
 </AnalysisResponse>

But when test this using SOAP UI, I get.

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> 
 <s:Body> 
  <GetDataResponse> 
   <GetDataResult> 
    <AnalysisResponse> 
     <AnalysisResult>.
       <Note>0Note>
       <Summary/>  
      </AnalysisResult>
     </AnalysisResponse>
   </GetDataResult>
  </GetDataResponse> 
 </:Body> 
</:Envelope>

I just want the response what i'm sending from the WCF service with out SOAP auto generated tags.

<AnalysisResponse> 
  <AnalysisResult> 
    <Note>0Note>
    <Summary/> 
   </AnalysisResult> 
</AnalysisResponse>

Answers (1)