Dear All

I'm tring to call a method from a web service that doesn't accept parameters

So i have this, but it errors on this line String result = (String)call.invoke(new Object[]{});

Please can someone tell me where i'm going wrong

Many Thanks

try
{
URL endpoint = new URL("http://localhost:6822/Test/services/extService";);
Service service = new Service();
Call call = (Call)service.createCall();
call.setTargetEndpointAddress(endpoint);
call.setOperationName("myMethod");

SOAPHeaderElement element = new SOAPHeaderElement("", "HeaderName");
element.setObjectValue(value);
call.addHeader(element);
String result = (String)call.invoke(new Object[]{});
//call.invoke();

System.out.println("result is " +result);
}

_________________________________________________________________
Want to block unwanted pop-ups? Download the free MSN Toolbar now! http://toolbar.msn.co.uk/




Reply via email to