Creating a web service client

I'm trying out a web service client for this web service: http://ws.strikeiron.com/relauto/iplookup?WSDL

I have downloaded Apache Axis 2-1.2 version. What are the steps that I need to follow to create the sample client?

I'm assuming:

1) Use the wsdl2java program to generate the Java classes for this WSDL document.

2) Code the client class

Can anyone guide me?

[400 byte] By [sri1025a] at [2007-11-27 7:10:25]
# 1

I can't tell you how to use Axis, but if you download JAX-WS (http://jax-ws.dev.java.net) you can do the following.

Use wsimport on the wsdl:

1) wsimport http://ws.strikeiron.com/relauto/iplookup?WSDL -keep

The -keep option keeps the sources of the generated classes so you can look at the methods etc.

2) Write a client class something like the following

public class MyClient {

public static void main(String[] args) {

// Create an Service instance

DNS dns = new DNS();

// get a DNSSoap port

DNSSoap port = dns.getDNSSoap();

DNSInfo info = port.dnsLookup("java.sun.com");

}

}

dkohlerta at 2007-7-12 19:01:56 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...