[英]WCF Service using soap1.2
I have this WCF service that works fine using soap1. 我有此WCF服务,可以使用soap1正常工作。 I'm trying to change it to run in soap1.2 but I have not been able.
我正在尝试将其更改为在soap1.2中运行,但是我却没有能力。
I have try changing different things in the webconfig. 我尝试更改webconfig中的其他内容。
First, I change the basicHttpBinding for wsHttpBinding. 首先,我将wsHttpBinding的basicHttpBinding更改为。 I also change the protocol, remove the soap1.1 and add the soap 1.2
我还更改了协议,删除了soap1.1并添加了soap 1.2
How I can make that my WCF web service run in soap1.2? 如何使WCF Web服务在soap1.2中运行?
Some code that I try in the config file: 我在配置文件中尝试的一些代码:
<webServices>
<protocols>
<add name="HttpSoap" />
<add name="HttpSoap12" />
</protocols>
</webServices>
<protocolMapping>
<remove scheme="http" />
<add scheme="http" binding="wsHttpBinding" />
</protocolMapping>
The problem was not the project. 问题不在于项目。 I was using Soap UI to call the service.
我正在使用Soap UI来调用服务。 I did know that I have to modify the Soup UI WS-Addressing setting for it to work.
我确实知道我必须修改Soup UI WS-Addressing设置才能起作用。 I set the Must understand option to true and check the add default wsa To: option.
我将“必须理解”选项设置为true,然后检查“添加默认的wsa To:”选项。 With that the service works fine using soup ui
这样,使用汤ui可以很好地服务
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.