• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
Sheriffs:
  • Devaka Cooray
  • paul wheaton
  • Mark Herschberg
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
  • Jj Roberts
Bartenders:
  • Carey Brown
  • salvin francis
  • Piet Souris

Apache SOAP Client for .NET Web Service

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

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.

Thanks.
 
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Saravanan Viswanathan
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

Code:
Call call = new Call();
call.setTargetObjectURI("xxxx");
call.setMethodName("OrderSubmit");
call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);

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

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

Error:

faultString=Server was unable to process request. ---> Value cannot be null
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 : http://www.codeproject.com/KB/dotnet/NET_WS_with_AXIS.aspx
[ June 02, 2008: Message edited by: Velayudha Perumal Bhagavathikannu ]
 
Saravanan Viswanathan
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

Thanks.
 
I don't always make ads but when I do they're tiny
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic