在ASP.NET C中使用JDeveloper Web服务# [英] Consuming JDeveloper Web Service in ASP.NET C#

查看:62
本文介绍了在ASP.NET C中使用JDeveloper Web服务#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用由Oracle JDeveloper为Visual Studio 2005中的ASP.NET站点生成的Web服务。我使用了Add Web Reference接口,一切似乎工作正常,但是当我尝试引用时Web服务中的方法,它们不存在。取而代之的是一般的Web服务功能和属性(如CreateObjRef,Discover,SoapVersion等)。


我在添加Web引用时使用的URL是:
< a rel =nofollowhref =https://site.org/update/update?WSDL\"target =_ blank> https://site.org/update/update?WSDL


它显示了我想要引用的函数,但在单击Add Reference按钮后,它只创建了一个带有discomap和wsdl文件的子文件夹。有人请告诉我,我做错了什么?此外,如果您需要任何其他信息,请随时询问。


谢谢,

Steve

I''m trying to consume a web service that was generated by Oracle JDeveloper for a ASP.NET site in Visual Studio 2005. I used the Add Web Reference interface and everything seemed to work fine, but when I tried to reference the methods in the web service, they weren''t there. In their stead were general web service functions and properties(like CreateObjRef, Discover, SoapVersion, etc).

The url I used when adding the web reference was this:
https://site.org/update/update?WSDL

It showed the functions that I wanted reference, but after clicking the Add Reference button, it only created a subfolder with a discomap and a wsdl file. Would someone please tell me what I''m doing wrong? Also, if you need any other information, feel free to ask.

Thanks,
Steve

推荐答案


我正在尝试使用由Oracle JDeveloper为Visual Studio 2005中的ASP.NET站点生成的Web服务。我使用了Add Web Reference接口一切似乎都很好,但是当我试图引用Web服务中的方法时,它们并不存在。取而代之的是一般的Web服务功能和属性(如CreateObjRef,Discover,SoapVersion等)。


我在添加Web引用时使用的URL是:
< a rel =nofollowhref =https://site.org/update/update?WSDL\"target =_ blank> https://site.org/update/update?WSDL


它显示了我想要引用的函数,但在单击Add Reference按钮后,它只创建了一个带有discomap和wsdl文件的子文件夹。有人请告诉我,我做错了什么?此外,如果您需要任何其他信息,请随时询问。


谢谢,

Steve
I''m trying to consume a web service that was generated by Oracle JDeveloper for a ASP.NET site in Visual Studio 2005. I used the Add Web Reference interface and everything seemed to work fine, but when I tried to reference the methods in the web service, they weren''t there. In their stead were general web service functions and properties(like CreateObjRef, Discover, SoapVersion, etc).

The url I used when adding the web reference was this:
https://site.org/update/update?WSDL

It showed the functions that I wanted reference, but after clicking the Add Reference button, it only created a subfolder with a discomap and a wsdl file. Would someone please tell me what I''m doing wrong? Also, if you need any other information, feel free to ask.

Thanks,
Steve



你有没有得到在Webservice参考文件夹下创建的Reference.cs代理文件?

Have you not gotten Reference.cs proxy file created under the Webservice reference folder?



你有没有得到Reference.cs代理在Webservice引用文件夹下创建的文件?
Have you not gotten Reference.cs proxy file created under the Webservice reference folder?



不,添加Web引用后创建的唯一文件夹名为SiteUpdate(我的命名空间)以及文件夹中的discomap和wsdl文件。这是在App_WebReferences文件夹下添加的。

No, the only folder that was created after the web reference was added was called SiteUpdate(my namespace) and the discomap and wsdl files inside the folder. This was added under the App_WebReferences folder.



否,添加Web引用后创建的唯一文件夹名为SiteUpdate(my命名空间)以及文件夹中的discomap和wsdl文件。这是在App_WebReferences文件夹下添加的。
No, the only folder that was created after the web reference was added was called SiteUpdate(my namespace) and the discomap and wsdl files inside the folder. This was added under the App_WebReferences folder.



这是一个非常常见的废话,MS客户端将使用非Microsoft Web服务。我不久前在基于Java的Web服务中遇到了类似的问题(他们的数据类型在.NET中无法正确反序列化)。例如,如果您通过MS引用TerraService(WSDL http://terraservice.net/TerraService2.asmx),那么您根本不会遇到麻烦。

This is a pretty common crap with non-Microsoft web services to be consumed by MS clients. I had a similar problem with Java-based web services some time ago (their datatype wouldn''t be deserialized correctly in .NET). For instance, if you reference the TerraService by MS (WSDL http://terraservice.net/TerraService2.asmx), you won''t have a trouble at all.


这篇关于在ASP.NET C中使用JDeveloper Web服务#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆