aspose file tools*
The moose likes Web Services and the fly likes Apache SOAP Client for .NET Web Service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Apache SOAP Client for .NET Web Service" Watch "Apache SOAP Client for .NET Web Service" New topic

Apache SOAP Client for .NET Web Service

Saravanan Viswanathan

Joined: Oct 16, 2001
Posts: 20

We have our application currently working with Apache SOAP client and calling "aspx page". We are migrating to have .NET Web Service (asmx page). I would like to know how we can invoke the .NET Web Service by using existing Apache SOAP 2.3 Client. We are successful if we use Apache Axis, but need to know if we can still work with old Apache SOAP client.

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 39547
The beauty of WS (and one of their main points) is that the client and server are decoupled, so one can change without the other being affected. If the WS is implemented in a platform-agnostic way, you should be able to use the old client without changing anything. Have you run into any problems?

Ping & DNS - updated with new look and Ping home screen widget
Saravanan Viswanathan

Joined: Oct 16, 2001
Posts: 20
Thanks for your reply.

Well, our new web service accepts XML String as Input parameter and outputs XML String as Output parameter. I get below error when I run my client code.

Call call = new Call();

// prepare parameters
Vector params = new Vector();
params.addElement(new Parameter("XmlFileName", String.class, "<xml string>", null));

URL url = new URL("");
// Invoke the call.
Response resp = call.invoke(url, "<soapActionUri>");
System.out.println("resp : " + resp);


faultString=Server was unable to process request. ---> Value cannot be null
Velayudhaperumal bhagavathikannu

Joined: Nov 27, 2005
Posts: 15
A simple way to invoke a service in .net is
1. Using Axis convert the wsdl to java(using wsdl2java)
2. It creates all the classes required.
3. you just have to call the method in the class

pls refer to :
[ June 02, 2008: Message edited by: Velayudha Perumal Bhagavathikannu ]
Saravanan Viswanathan

Joined: Oct 16, 2001
Posts: 20
Thanks for your reply. I had already mentioned in my earlier post that we were successful invoking web service through Apache Axis. We just want to know if its possible with Apache SOAP 2.3 Client.

It is sorta covered in the JavaRanch Style Guide.
subject: Apache SOAP Client for .NET Web Service
Similar Threads
How to use .Net client for a Apache SOAP service?
Web Service Access
.Net WS from Java
Axis vs. JAX-RPC vs. Apache Soap
Web Services Types