揭露.NET的WebService到其他平台(JAVA) [英] Exposing .NET WebService to Other Platform (Java)

查看:133
本文介绍了揭露.NET的WebService到其他平台(JAVA)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开发的.NET Web服务,并希望此Web服务是消耗品在Java中。什么是我需要遵循的步骤。我已经写了几个Web服务,但客户端的所有是.NET。请让我知道,我应该遵循的步骤。

I wanted to develop a Web Service in .NET and wanted this Web Service to be consumable in Java. What are the steps I need to follow. I have written couple of web service but client for all was .Net. Please let me know the Steps that I should follow.

也是我的网络服务是要采取一个二进制文件的输入,请让我知道我怎么做到这一点?

Also My web Service is going to take a Binary File as the Input, please let me know how do I achieve this ?

推荐答案

我不认为你需要做任何额外的东西来实现这一点。 Web服务的主要目的是,他们可以从任何平台来访问,这是因为在其上web服务所基于的底层XML格式的

I dont think that you need to do anything extra to accomplish this. The primary purpose of web services is that they can be accessed from any platform and this is because of the underlying XML format on which webservices are based.

所以,你只需要通过一个Java客户端,你有一个Java的WebService连接来连接到NET Web服务以相同的方式。

So, you just need to connect to a .NET Webservice through a Java client in the same way as you connect with a Java WebService.

至于二进制文件输入而言,这可能是一个问题,因为在Java和.NET二进制文件序列可以是不同的。也就是说,只有在情况下,如果要创建在运行时二进制文件。我没有记错,但我认为我读的地方,还有在.NET和Java底层的字节顺序机制的差异。其中之一是小端和另一种是高端,并且由于此两个平台的序列二进制代码可以是不同的,尽管他们可能序列相同的数据。 (我不是100%肯定该如此,如果有人知道这一点,请大家指正)

As far as Binary file input is concerned, this can be a problem because binary file serialization in Java and .NET can be different. i.e., only in the case if you are creating binary file on the runtime. I don't recall correctly but I think that I have read somewhere that there is a difference in the underlying byte-ordering mechanism in .NET and Java. One of them is little-endian and the other one is high-endian and due to this the serialized binaries of both platforms may be different although they might be serializing same data. (I am not 100% sure about this so if someone knows this, please correct me)

这篇关于揭露.NET的WebService到其他平台(JAVA)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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