Java axis webservice kald
Jeg har nogle udfordringer med at kalde en .NET Webservice. Koden fejler på denne linje:javax.xml.rpc.Service serv = servfact.createService(new QName("localhost"));
String endpoint = "http://localhost:80/Services/VideoService.asmx";
try
{
javax.xml.rpc.ServiceFactory servfact = javax.xml.rpc.ServiceFactory.newInstance();
javax.xml.rpc.Service serv = servfact.createService(new QName("localhost"));
javax.xml.rpc.Call cal = serv.createCall();
cal.setTargetEndpointAddress(endpoint);
cal.setOperationName(new QName("SaveVideo"));
Object[] arg = new Object[1];
arg[0] = (String)clientName;
cal.invoke(arg);
return true;
}
catch (Exception se)
{
return false;
}