1

I'm getting near completely different objects from the same WSDL file when I try to Add a Web Reference depending if I am using Express or Pro version of the vs2008 .NET IDE.

1) Why is this happening? I'd expect the WSDL's to act the same across platforms--clearly they are not! 2) How do I determine what tool/wizard the IDE is calling when I select "Add Service Reference".

Details: The VB.NET Express version is adding objects that are desired and expected. I'd like to use the IDE to add the service (not muck with wsdl.exe or svcutil.exe).

I'm using vs2008 Pro v9.0.30729.1 on Windows Server 2003. Express version 9.0.21022.8 RTM on XP.The respective Reference.vb shows the same header "This code was generated by a tool. Runtime Version:2.0.50727.3053".

The wizard UI's to add the service WSDL are visually different between the two IDEs.

Express has Strict On and Pro has Strict Off. The general IDE Strict settings seem to have no control over this.

Java/Eclipse are having no issues with these WSDLs.

4

4 回答 4

1

很抱歉,视觉工作室生成的代理非常糟糕。

现在真正的解决方案是编写自己的合约和代理。我知道,这不是什么好消息,但 30 分钟的打字可能会让你免于受伤。

查看idesign.net上的帮助类

于 2008-11-04T02:17:29.167 回答
0

I have seen in the past where wsdl.exe would produce different proxy classes than the VS IDE wizard does. This is probably the explanation.

于 2008-09-19T16:31:08.217 回答
0

Try using svcutil.exe instead.

于 2008-09-19T16:32:37.167 回答
0

当您添加 Web 引用时,VS 2005 和 2008 Pro 会生成不同的类 - 也许这很相似?如果在添加服务引用时单击高级,您将在表单底部找到添加 Web 引用。

于 2008-11-05T17:32:42.873 回答