Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

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.

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”.

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.

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?

I’m currently using netbeans 6.9.1

like image 485
BOWS Avatar asked Nov 24 '11 12:11

BOWS


People also ask

How do you generate the client code from a WSDL?

Generate the client code as follows: In the Project Explorer, right-click your client project's WSDL file, and then select WebLogic Web Services > Generate Web Service Client from the drop-down menu, as Figure 1 shows. This will open the New Web Service Client dialog that Figure 2 shows.

What is the equivalent of JAX RPC service endpoint interface in a WSDL file?

JAX-RPC Web Services Using a WSDL You can create a JAX-RPC Web service using an existing WSDL document. In this method, the wscompile tool generates the service definition interface for the Web service using the WSDL. The WSDL portType is mapped to the Java service definition interface.


1 Answers

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

Thank you

like image 65
Anuj Balan Avatar answered Oct 12 '22 23:10

Anuj Balan