.net调用java写的webservice

lyb_abiandbel 2005-11-23 09:39:56
有没有哪位兄弟在用.net调用java写的webservice?

我现在想在.net下调用pdf 7.0的api,但是这些阿api都是j2ee的,

pdf 7.0的开发文档告诉我先创建一个.net client:

1. From the Microsoft .NET Visual Studio development environment, reference the SoapClient.dll file.
2. Add the following import statement to your Microsoft .NET project:
using SoapClient ; // C# syntax
3. Use the FSSoapClient constructor to create a FSSoapClient object:
FSSoapClient formServer = new FSSoapClient(); // C# syntax
4. Set the SOAPClient object’s SOAP end point by calling the setSoapEndPoint method:
formServer.setSoapEndPoint("http://<AppServer>:<AppPort>/FormServerWS/
services/AdobeFSService"); //C# syntax 这里是不是就是引用java写的webservice的地址?

1、2、3已经知道是怎么回事了,4不知道是怎么回事!
http://<AppServer>:<AppPort>/FormServerWS/services/AdobeFSService 这个地址不知道怎么写!
我想应该是的吧!java的包已经有了,但是我不知道哪个才是上面的要引用的webservice,怎么才能找到呢?

这个文档是写给java人看的,我想问一下,假如我已经可以调用它的webservice了,下面的开发方法应该可以参照java的代码了吧!
...全文
2099 37 打赏 收藏 转发到动态 举报
写回复
用AI写文章
37 条回复
切换为时间正序
请发表友善的回复…
发表回复
zfb312 2010-05-31
  • 打赏
  • 举报
回复
最近在搞这个,完全摸不着头脑。
wtk 2005-11-25
  • 打赏
  • 举报
回复
可惜,这么好的帖子没有留个名
xxuu503 2005-11-24
  • 打赏
  • 举报
回复
回复人: cugo(cugo) ( ) 信誉:100 2005-11-24 09:41:00 得分: 0


webservice服务应该是一种标准,只要建立好了,不管用什么建立的.
引用都是一样的啊


是啊,我也记得MS的讲座是如此说的!
xxuu503 2005-11-24
  • 打赏
  • 举报
回复
坦白的告诉你:不知道!嗬嗬!
shoutor 2005-11-24
  • 打赏
  • 举报
回复
没研究过,不过我觉得 主要跟wsdl有关
shoutor 2005-11-24
  • 打赏
  • 举报
回复
还真没研究过
lyb_abiandbel 2005-11-24
  • 打赏
  • 举报
回复
学习一下啊!
反正java也是要学的。

必须要提供用j2ee写的服务,才能到.net里面调用啊!
xtxk_917 2005-11-24
  • 打赏
  • 举报
回复
学习。
cugo 2005-11-24
  • 打赏
  • 举报
回复
webservice服务应该是一种标准,只要建立好了,不管用什么建立的.
引用都是一样的啊
jjlook 2005-11-24
  • 打赏
  • 举报
回复
这两天刚做过,我们是这样做的:
1。首先拿到给我们的JAVA写的WEB SERVICE
2。装WEBLOGIC8.1.4(运行JAVA程序的环境)
3。建立数据库
4。新建一个domain
5.新建一个JDBC数据库连接,
6。部署JAVA 的WEB SERVICE
7。配置成功后可以在IE中访问JAVA的WEB SERVICE
8。在VS.NET中添加WEB应用生成.NET代理类
adandelion 2005-11-24
  • 打赏
  • 举报
回复
抱歉,帮不上忙,只记得以前有人问过这样的问题,搜索一下.
cen123 2005-11-24
  • 打赏
  • 举报
回复
sorry!是Web应用!
cen123 2005-11-24
  • 打赏
  • 举报
回复
找到WebService,添加WebService不就得了吗?
henryfan1 2005-11-24
  • 打赏
  • 举报
回复
.NET可以直接引用java写的WebService的,引用后就会生成相应的代理类.
我只是引用过值类型参数的WebService,如果参数是一些对象是否能直接引用就不太清楚.
charles_y 2005-11-23
  • 打赏
  • 举报
回复
对方的webservice服务已经可以使用了吗?
最简单的方法:
在vs2003中添加web引用,然后在url 中直接输入webservice地址,添加引用就可以了
JzeroBiao 2005-11-23
  • 打赏
  • 举报
回复
入来也没用。。没用过呀~
lyb_abiandbel 2005-11-23
  • 打赏
  • 举报
回复
up
lyb_abiandbel 2005-11-23
  • 打赏
  • 举报
回复
然后就是创建client

Creating a Microsoft .NET client object
You use the Form Server SOAP client for Microsoft .NET to create Form Server applications in the Microsoft
.NET development environment. This client API consists of a file named SoapClient.dll and is located in the
Form Server library directory. For information about this directory, see “Including Form Server library files”
on page 11.
The Microsoft .NET SOAP client consists of two classes. The first class is FSSoapClient and is used to
create a Form Server object and is equivalent to the SOAPClient class used in the Java implementation.
The second class is named OutputContext and is equivalent to the IOutputContext interface used in
the Java implementation. For information about these classes, see the API Reference.
Invoking the Form Server service by using the Microsoft .NET SOAP client API is a four-step process:
1. From the Microsoft .NET Visual Studio development environment, reference the SoapClient.dll file. For
information, see “Referencing the Form Server SOAP client” on page 14.

2. Add the following import statement to your Microsoft .NET project:
using SoapClient ; // C# syntax

3. Use the FSSoapClient constructor to create a FSSoapClient object:
FSSoapClient formServer = new FSSoapClient(); // C# syntax

4. Set the SOAPClient object’s SOAP end point by calling the setSoapEndPoint method:
formServer.setSoapEndPoint("http://<AppServer>:<AppPort>/FormServerWS/
services/AdobeFSService"); //C# syntax
注意:要引用SoapClient.dll:
Referencing the Form Server SOAP client
You create a reference to the SoapClient.dll assembly within the Microsoft .NET Visual Studio development
environment. Before doing so, ensure that Form Server is installed on your development computer.
Getting the ICSharp utility
The Form Server SOAP client is dependent on an ICSharp utility, that consists of a single file named
ICSharpCode.SharpZipLib.dll. You must reference this file from your Microsoft .NET Visual Studio project.
You can download this utility from the following web site:
http://prdownloads.sourceforge.net/sharpdevelop/050SharpZipLib.zip?download.
➤ To reference the Form Server SOAP client within Microsoft .NET Visual Studio
1. From the Project menu, click Add Reference.
2. Click the .NET tab.
3. Click Search and navigate to the Form Server library directory located at
C:\Program Files\Adobe\idp\lib.
4. Select SoapClient.dll.
Once you create a Form Server object, you can perform tasks such as rendering a form. For information,
see “Rendering forms” on page 25.
lyb_abiandbel 2005-11-23
  • 打赏
  • 举报
回复
就是说我必须要拿到那个j2ee产生的wsdl文件吗?
------------------------------

这个理解还是不对的,我又看了一下资料,必须在.net中创建一个webservice和j2ee的进行交互,然后产生一个asmx文件,这个才是我需要的文件!

The only exception is the client API for Microsoft.net.
Using this client API,you can create applications such as web services in a Microsoft.net development enviroment that interact with the Form Server Module.

Form Server has integrated the Simple Object Access Protocol (SOAP) service. Using the SOAP and .NET client libraries, you can create applications that access the Form Server Module remotely from any platform.


zeusvenus 2005-11-23
  • 打赏
  • 举报
回复
一般.net调用java服务分两步:
添加webservice的web引用,然后用vs.net创建的代理类来调用它里面的方法。参见
http://fineboy.cnblogs.com/archive/2005/08/10/211403.html

Web Services between .NET, Java and MS SOAP Toolkit
http://www.c-sharpcorner.com/SOAP/WSBNJNCT.asp
加载更多回复(17)

62,046

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧