简体   繁体   English

从RPC编码的WSDL生成Java客户端的最简单方法是什么?

[英]What is the easiest way to generate a Java client from an RPC encoded WSDL

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

This application provides an RPC encoded WSDL. 此应用程序提供RPC编码的WSDL。 I'm currently finding it very difficult to create a client for this service in Java due to RPC being superseded. 我目前发现由于RPC被取代,很难在Java中为这项服务创建客户端。

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

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. 我已经研究过AXIS 2,并尝试编译它的WSDL2JAVA,但由于RPC编码,我不断在所有数据绑定方法上获得异常。

I was wondering if I can have some advice or a guide on generating Java Clients from RPC encoded WSDLs. 我想知道我是否可以从RPC编码的WSDL中获得一些关于生成Java客户端的建议或指南。 What are the steps? 步骤是什么? What should I consider before I even try to write the client? 在我尝试编写客户端之前,我应该考虑什么?

I'm currently using netbeans 6.9.1 我目前正在使用netbeans 6.9.1

If you are trying to generate the client stub from the wsdl url, then follow this 如果您尝试从wsdl url生成客户端存根,请按照此操作

Thank you 谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM