开发者

The methods xx and yy use the same SOAPAction

开发者 https://www.devze.com 2022-12-08 23:12 出处:网络
We are trying to create a mock service for a web service for tes开发者_运维技巧ting purposes. To do this we run wsdl.exe to create an interface and then create an asmx web service based on that inter

We are trying to create a mock service for a web service for tes开发者_运维技巧ting purposes.

To do this we run wsdl.exe to create an interface and then create an asmx web service based on that interface. We have done this several times over the last years without any problems.

This time we get an error:

The methods xx and yy use the same SOAPAction

When we call the web service. Have done some searching on google, it says that this is a bug with wsdl.exe. But says nothing about what to do about it.

Is there a way to fix this? Should I just delete parts of references.cs?

Thanks

Shiraz


Found the solution. Added the following line as an attribute to the web service class:

[SoapDocumentService(RoutingStyle=SoapServiceRoutingStyle.RequestElement)]

After a clean solution and a rebuild, everything worked.

0

精彩评论

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