I begin here, with Java, several demos about how to consume a .NET web service. For each language - and library - covered, you will find a SOAP client for a .NET web service. I will use the Infobel web service, because I know it very well ;-). And because it's a relatively advanced interface: taking object as param and returning objects containing collection of objects, containing... and so on. See this service on-line: Infobel web service. Go to the Section called Tip: a way to solve interoperability problem with a NuSoap client (for document/literal web service). in Chapter 2 for a description of this service. While constructing our client, we will see that if you have a tool like WSDL2Java, life can be so simple.
![]() | Caution |
|---|---|
The data exposed by this web service are obsolete, are from a few years ago, and can only be used for demo and testing purpose. |
Let's start to create our stub and wrapper classes with AXIS.
[your_prompt]$ java org.apache.axis.wsdl.WSDL2Java http://hal.kapitol.com/infobelservices/service1.asmx?WSDL -W
Copy the structure of directories created, under your working directory in your favorite IDE.
![]() | ![]() | ![]() |
| Send or Post a SOAP message using SAAJ (document/literal) | ![]() My home page Index RSS | JAX-RPC client-side handler |