You're simply going to make your .NET service be a client to your Java service:
Right-click your web service project and use "Add Service Reference"
Specify the URL to the WSDL of the Java web service in the "Address" box, then click "Go"
Specify a "Namaespace" through which the Java service will be accessed, for instance "JavaService". Click "Ok".
If everything went well, you should now have a number of classes created for you, under the "YourProjectNamespace.JavaService" namespace.
In particular, you should have one that represents the service itself. Now, a given service may implement more than one service contract (called "port types" in WSDL terms). If the service implements the JavaServiceContract port type, then you should find a class named YourProjectNamespace.JavaService.JavaServiceContractClient.
Assuming that this contract includes an operation named "JavaOperation", you should call it like this:
int returnValue = 0;
YourProjectNamespace.JavaService.JavaServiceContractClientjavaService =
null;
try {
javaService =
new
YourProjectNamespace.JavaService.JavaServiceContractClient();
returnValue = javaService.JavaOperation();
}
finally {
if (javaService != null) {
((IDisposable)javaService.)Dispose();
}
}
Hope this will help you.