cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sven morales <aka_ser...@yahoo.com>
Subject re:cocoon and axisblock
Date Thu, 11 Nov 2004 23:13:29 GMT

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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message