从RPC编码的WSDL生成Java客户端的最简单方法是什么? [英] What is the easiest way to generate a Java client from an RPC encoded WSDL

查看:123
本文介绍了从RPC编码的WSDL生成Java客户端的最简单方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Web服务概念的新手,我目前正在开发一个项目,我需要通过SOAP从外部应用程序中检索一些数据。

I’m new to the concept of web services and I’m currently working on a project where I need to retrieve some data from an external application via SOAP.

此应用程序提供RPC编码的WSDL。由于RPC被取代,我目前发现用Java创建这个服务的客户端非常困难。

This application provides an RPC encoded WSDL. I’m currently finding it very difficult to create a client for this service in Java due to RPC being superseded.

我到目前为止最接近的是使用JAX- RPC,但每次我尝试运行ws-compile程序时都会收到一条错误,指出错误代码为大。

The closest I’ve got so far is using JAX-RPC but every time I try to run the ws-compile programme I get an error which states "error code to large".

我研究过AXIS 2,并尝试过编译它的WSDL2JAVA但是由于RPC编码我在所有数据绑定方法上都一直有异常。

I have researched on AXIS 2, and tried to compile it’s WSDL2JAVA but due to RPC encoding I keep getting exception on all the data binding methods.

我想知道我是否可以提供一些关于生成Java的建议或指南来自RPC编码的WSDL的客户端。步骤是什么?在我尝试编写客户端之前,我应该考虑什么?

I was wondering if I can have some advice or a guide on generating Java Clients from RPC encoded WSDLs. What are the steps? What should I consider before I even try to write the client?

我目前正在使用netbeans 6.9.1

I’m currently using netbeans 6.9.1

推荐答案

如果您正尝试从wsdl网址生成客户端存根,然后关注此

If you are trying to generate the client stub from the wsdl url, then follow this

谢谢

这篇关于从RPC编码的WSDL生成Java客户端的最简单方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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