call.invoke

P

plork123

Hi all

I'm calling a method from a web service that doesn't take parameters

My code is erroring on call.invoke();

Can someone tell me what i'm doing wrong

Many thanks

URL endpoint = new
URL("http://localhost:6822/Test/services/extService");
Service service = new Service();
Call call = (Call)service.createCall();
call.setTargetEndpointAddress(endpoint);
call.setOperationName("methodName");
SOAPHeaderElement element = new SOAPHeaderElement("", "HeaderName");
element.setObjectValue(value);
call.addHeader(element);
//String result = (String)call.invoke(new Object[] {});
call.invoke()
 
R

Ross Bamford

Hi all

I'm calling a method from a web service that doesn't take parameters

My code is erroring on call.invoke();

Can someone tell me what i'm doing wrong

Someone already did - Java used typed exceptions (and they even have a
message sometimes too) ;)

Ross
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top