You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by ja...@apache.org on 2005/04/19 13:58:06 UTC

cvs commit: ws-fx/sandesha/interop/org/apache/sandesha/samples/interop SyncPingClient.java

jaliya      2005/04/19 04:58:06

  Modified:    sandesha/interop/org/apache/sandesha/samples/interop
                        SyncPingClient.java
  Log:
  Added new addressing neamspace
  
  Revision  Changes    Path
  1.5       +4 -4      ws-fx/sandesha/interop/org/apache/sandesha/samples/interop/SyncPingClient.java
  
  Index: SyncPingClient.java
  ===================================================================
  RCS file: /home/cvs/ws-fx/sandesha/interop/org/apache/sandesha/samples/interop/SyncPingClient.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- SyncPingClient.java	7 Mar 2005 05:34:34 -0000	1.4
  +++ SyncPingClient.java	19 Apr 2005 11:58:06 -0000	1.5
  @@ -31,8 +31,8 @@
   
       private static String defaultServerPort = "8070";
   
  -    private static String targetURL = "http://127.0.0.1:" + defaultServerPort + "/axis/services/RMInteropService?wsdl";
  -
  +    //private static String targetURL = "http://127.0.0.1:" + defaultServerPort + "/axis/services/RMInteropService?wsdl";
  +    private static String targetURL ="http://soap.systinet.net:6060/wsrm/round1/ping";
       public static void main(String[] args) {
           System.out.println("Client started...... Synchronous ");
           try {
  @@ -43,7 +43,7 @@
               Call call = (Call) service.createCall();
   
               call.setProperty(Constants.ClientProperties.SYNC, new Boolean(true));
  -            call.setProperty(Constants.ClientProperties.ACTION, "sandesha:ping");
  +            call.setProperty(Constants.ClientProperties.ACTION, "urn:wsrm:Ping");
   
               //These two are additional
               //call.setProperty("from","http://schemas.xmlsoap.org/ws/2003/03/addressing/role/anonymous");
  @@ -51,7 +51,7 @@
               //http://schemas.xmlsoap.org/ws/2003/03/addressing/role/anonymous
   
               call.setTargetEndpointAddress(targetURL);
  -            call.setOperationName(new QName("RMInteropService", "ping"));
  +            call.setOperationName(new QName("urn:wsrm:Ping", "PingOneWay"));
               call.setTransport(new RMTransport(targetURL, ""));
   
               call.addParameter("arg1", XMLType.XSD_STRING, ParameterMode.IN);