Yeah!
Thanks a lot Sven for helping me out of this ... :o)
<quote who="sven morales">
>
> The method is setOperationName(). Your code
> re-written:
>
> public class TestTheWebservice {
> public static void main(String [] args) throws
> Exception {
>
> Service cocoonService = new
> Service(new QName("Version"));
>
> Call cocoonCall =
> (Call)cocoonService.createCall();
> URL localEndpoint = new
> URL("http://localhost:8081/cocoon.orig/samples/blocks/axis/rpcrouter");
>
>
> cocoonCall.setTargetEndpointAddress(localEndpoint);
> // set SOAPAction
>
> cocoonCall.setSOAPActionURI("Version");
> //cocoonCall.setPortName(new
> QName("Version"));
> cocoonCall.setOperationName(new
> QName("Version", "getVersion"));
>
> // inserting inside {} becomes
> <args0>xxx</args0>
> String resultCocoon =
> (String)cocoonCall.invoke(new Object [] {});
> System.out.println(" result: " + resultCocoon);
>
> }
> }
>
>
>
> __________________________________
> Do you Yahoo!?
> Check out the new Yahoo! Front Page.
> www.yahoo.com
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]