开发者

Getting the actual response from Soap WebService

im Consuming a Soap w开发者_开发知识库ebservice and im calling a method , i want to get the actual xml response is there is any way to get that ?


Warning: This suggestion works, but since WSE 3.0 is not supported anymore, you might wanna look WCF.

By using WSE 3.0 you can manage xml's that are being sent through web service client and server. To do this you need to change your web.config file, add these lines to the beginning of the file under "configuration" tag

<configSections>
    <section name="microsoft.web.services3" type="Microsoft.Web.Services3.Configuration.WebServicesConfiguration, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</configSections>

Then after "/system.web" add these lines:

<microsoft.web.services3>
    <diagnostics>
        <trace enabled="true" input="InputTrace.webinfo" output="OutputTrace.webinfo"/>
    </diagnostics>
</microsoft.web.services3>

By doing these you will have InputTrace.webinfo and OutputTrace.webinfo files which containt input and ouput SOAP messages in xml.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜