Can anyone explain how to access .NET web service from
java?
Please check the below code....is this the cirrect way?
import org.apache.axis.client.Service;
import javax.xml.namespace.QName;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.NodeList;
import org.xml.sax.InputSource;
import javax.xml.rpc.Call;
public class web
{
public static void main(
String args[])
{
try
{
String endPoint ="http://ip/Service.asmx";
Service service = new Service();
Call call2 = (Call)service.createCall();
call2.setTargetEndpointAddress(endPoint);
call2.setOperationName(new QName ("op","HelloWorld"));
}
}catch(Exception pe){
pe.printStackTrace();
}
}
}