axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jayachandra <jayachan...@gmail.com>
Subject Re: calling web service method errors on call.invoke
Date Wed, 11 May 2005 14:29:37 GMT
Post the full error trace, we can help

Bye
Jaya

On 5/11/05, Plorks mail <plork123@hotmail.com> wrote:
> 
> 
> 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/
> 
> 


-- 
-- Jaya

Mime
View raw message