English 中文(简体)
j式桌面应用网络服务
原标题:Web-service from a java Desktop-application

我试图利用一个台式应用程序的网络服务,在here上使用该图语,并使该代码与网络服务服务器项目链接。

public static void main(String[] args) {

    float f1 = 60.5F;
    float c1 = 0;
    ConverterProxy s = new ConverterProxy();

    try {
        c1 = s.farenheitToCelsius(f1);
    } catch (RemoteException e) {
        e.printStackTrace();
    }

    System.out.println("Output: " + c1);

}

确实,我需要一些解释其他客户班子做些什么的地方。

一) 需要知道课堂是什么

Converter,ConverterProxy,Converterservice,ConverterserviceLocator,ConverterSoapBileStub

Do and what we need them for ?

预 收

最佳回答

It s a bit of a guess, as I m not using your tutorial, but a lot of these classes follow a similar pattern.

Converter is likely an interface, which defines what methods the service will offer.

Converter 输氧可能与客户方接触。 该公司实际上没有做这项工作,而是采取变相方法,为网络运输提供包装。

转换器服务可能是电离器接口的服务器方接触。 该系统接收来自ConverterProxy电话的网络包件,不包装这些电话,进行转换,并在网络连接的另一端将答复退回到ConverterProxy。 然后,电离层会把网络信息排出,得出结果,并将之作为答案。

中间商服务公司很可能是一个涉及自己制定必要守则的班子,以找到变体服务。 有时为了保持一定程度的灵活性,在汇编时间没有具体规定电离层的位置,电离层服务公司在中央登记处(通常称为UDDI)开立时。 然后,电离层电离层电离层电离层电离层(因为你试图对电离层电离层电离层电离层电离层电离层电离层电离层电离层进行电离层电离层电离层电离层电离层电离层电离层电离层)电离层(如果你试图对电离层的电离层进行电离层电离层电离层电离层电离层电离层电离层电离层电离层电离层)。

变相机织是一种提供(其他隐蔽)的行业。 Java to SOAP XML marshalling / demarshalling necessary for the translation of ConverterProxy demand to have contributed into XML request and ConverterProxy Responses to go into XML Responses.

Again, I don t have access to your source code or your tutorial (and I don t have time to look over it at the moment); but, these are educated guesses based on very common naming conventions.

问题回答

You can look through the code but it s a bit cryptic. The main thing is that you are generated a class that wraps the web service as a Java object. The operations of the service then become methods in this class. You can use that to interact with the web service as you have found.

其他班级处理 Java班和网络服务之间的管道。 它们将你提供的参数转换为SOAP(XML 方言),将其发送到网络服务处,并且还收到SOAP的回复,并转回数据 Java方案。

如同第一组生成的方法/业务总结网络服务行为一样,其他课程则总结了用于称为网络服务的管道/通信协议。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签