1
Answer

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

Wasi Zaidi

Wasi Zaidi

7y
279
1

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)