2012-02-14 52 views
0

我试图使用WSDL链接说https://somewhere.com/somesetofservice?wsdl消耗WSDL链接在C#中的WCF服务,refernce VS2008

这WSDL链接,我intendeding通过添加它来消耗相关联的web方法作为C#VS2008中的WCF服务引用。我正在C#类库中进行此操作。现在一切正常......含义:

[a]当我创建clientProxy的一个实例 - 它被识别。

并[b]的clientProxy.somemethodname可用

并[c]的 'somemethodnameresponse'(方法的响应)也可用

[d] BUT ... 'somemethodnamerequest'(方法的请求)不会被识别 - 会导致编译时错误。

错误消息是“无法找到类型或名称空间名称 - 您是否缺少using-directive或程序集引用?”

怎么回事?

回答

0

它可以是一个或两个以下:

  1. 你的C#类库不引用包含引用“somemethodnamerequest” somemethodnamerequest“
  2. C#文件的dll没有使用语句引用包含'somemethodnamerequest'的名称空间
+0

感谢您获得设拉子......但我已经检查了您提到的所有内容,并且它们都已正确实施。 – MukeshAnAlsoRan 2012-03-20 06:15:43