You can choose between the following approaches, as far as I know:
1) A command line tool called svcutil.
2) In VisualStudio 2008, go to the Project menu and locate the Add Service Reference menu item.
Both the above alternatives work with WSIT web services developed in Java (Metro web service stack), but I don't know if it works with Axis 2.
Joined: Sep 17, 2007
HI , Thank you for your reply. I am able to consuming normal JAVA web service(which is not using any authentication mechanism) in .NET application.
But I am not able to consuming JAVA AXIS2 WEB SERVICE which is implemented using authentication in .net, it is giving error that "required security header is not in the request"
Please any link or procedure to consume axis2 web service in .Net
Joined: Oct 04, 2006
Sorry, I don't know anything about Axis. Perhaps someone else has some experience to share or you may also want to contemplate switching web service stack: https://wsit.dev.java.net/ Best wishes!
This looks like an issue with the client, so switching to a different server stack (like WSIT) won't do much good.
I'd start by using a tool like SOAPUI or tcpmon to examine what does get sent to the service. Does the SOAP include the same (or functionally equivalent) WS-Security information as the one sent by the Java client? That should provide a starting point for further investigation.
My thought was that if you switch to Metro, for the client, you get:
- Tooling support in NetBeans which simplifies development.
- A web service stack that has been tested to be compatible with .NET web services.
Of course, you can hand-tweek the client requests, as mr Dittmer suggests, but I'd rather learn something that I can use and rely on in the future.
My 5 cents.
Joined: Sep 17, 2007
Thank you for your reply.
Ya, I have some idea about SOAPUI tool, I am using this tool with netbeans to analyse how the soap request and soap response 'es are coming through SOAPUI request feature.
I am able to view the soap request and responses of a simple webservice with out implementing security.
For my axis2 secured web service secured through rampart, I am getting the response using SOAPUI tool through request option is: