开发者

The methods xx and yy use the same SOAPAction

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜