2
雖然從我的Web應用程序,WCF響應我得到調用是:在WCF響應更改前綴
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header />
<s:Body>
<getSOAPDataResponse xmlns="http://localhost/WebServices">
<getSOAPDataResult> INFORMATION </getSOAPDataResult>
</getSOAPDataResponse>
</s:Body>
</s:Envelope>
Web應用程序是很舊,有一些硬編碼的東西,看起來爲「肥皂」作爲前綴作爲迴應。 以前使用過Web服務,但現在Web服務已被遷移到WCF服務。
從WCF預期的反應是這樣的:
<Soap:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<Soap:Header />
<Soap:Body>
<getSOAPDataResponse xmlns="http://localhost/WebServices">
<getSOAPDataResult> INFORMATION </getSOAPDataResult>
</getSOAPDataResponse>
</Soap:Body>
</Soap:Envelope>
所以我需要改變WCF迴應前綴「S」爲「肥皂」。如何做呢。任何幫助將不勝感激。
在此先感謝。