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 2004/05/03 14:38:53 UTC
cvs commit: ws-fx/sandesha/samples/interop EchoStringService.java PingService.java Scenario_1_1_Client.java Scenario_2_2_Client.java
jaliya 2004/05/03 05:38:53
Added: sandesha/samples/interop EchoStringService.java
PingService.java Scenario_1_1_Client.java
Scenario_2_2_Client.java
Log:
Add samples folder to sandesha to hold sample clients and services
Revision Changes Path
1.1 ws-fx/sandesha/samples/interop/EchoStringService.java
Index: EchoStringService.java
===================================================================
/*
* Created on May 3, 2004
*
* To change the template for this generated file go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
package org.apache.sandesha.samples.interop;
import java.util.HashMap;
import java.util.Map;
/**
* @author SNimalan
*
* To change the template for this generated type comment go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
public class EchoStringService {
private static Map sequences=new HashMap();
public String echoString(String text,String sequence){
if(sequences.get(sequence)!=null){
text=(String) sequences.get(sequence)+text;
sequences.put(sequence,new String(text));
}else{
sequences.put(sequence,(new String(text)));
}
return text;
}
}
1.1 ws-fx/sandesha/samples/interop/PingService.java
Index: PingService.java
===================================================================
/*
* Copyright 1999-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.apache.sandesha.samples.interop;
/**
* @author
* Amila Navarathna<br>
* Jaliya Ekanayaka<br>
* Sudar Nimalan<br>
* (Apache Sandesha Project)
*
*/
public class PingService {
public void Ping(String arg) {
System.out.println("Request from Client : " + arg);
}
}
1.1 ws-fx/sandesha/samples/interop/Scenario_1_1_Client.java
Index: Scenario_1_1_Client.java
===================================================================
/*
* Copyright 1999-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.apache.sandesha.samples.interop;
/**
* @author
* Amila Navarathna<br>
* Jaliya Ekanayaka<br>
* Sudar Nimalan<br>
* (Apache Sandesha Project)
*
*/
import javax.xml.namespace.QName;
import javax.xml.rpc.ParameterMode;
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import org.apache.axis.components.uuid.UUIDGen;
import org.apache.axis.components.uuid.UUIDGenFactory;
import org.apache.axis.encoding.XMLType;
import org.apache.sandesha.Constants;
public class Scenario_1_1_Client {
public static void main(String[] args) {
System.out.println("Client started......");
try {
Service service = new Service();
Call call = (Call) service.createCall();
if(args[0].equals("")){
System.out.println("Pass Target End Point Address as a Parametter");
throw new Exception("Target End Point Address did not Set");
}
call.setTargetEndpointAddress(args[0]);
call.setOperationName(new QName("PingService", "Ping"));
call.addParameter("Text", XMLType.XSD_STRING, ParameterMode.IN);
call.setReturnType(XMLType.AXIS_VOID);
UUIDGen uuidGen = UUIDGenFactory.getUUIDGen();
call.setProperty(Constants.CLIENT_SEQUENCE_IDENTIFIER,"uuid:" + uuidGen.nextUUID());
call.setProperty(Constants.CLIENT_ONE_WAY_INVOKE,(new Boolean(true)));
call.setProperty(Constants.CLIENT_RESPONSE_EXPECTED,(new Boolean(false)));
call.setProperty(Constants.CLIENT_CREATE_SEQUENCE,(new Boolean(false)));
call.invoke(new Object[] {"Ping 1"});
call.invoke(new Object[] {"Ping 2"});
call.setLastMessage(true);
call.invoke(new Object[] {"Ping 3"});
} catch (Exception e) {
System.err.println(e.toString());
}
}
}
1.1 ws-fx/sandesha/samples/interop/Scenario_2_2_Client.java
Index: Scenario_2_2_Client.java
===================================================================
/*
* Created on May 3, 2004
*
* To change the template for this generated file go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
package org.apache.sandesha.samples.interop;
import javax.xml.namespace.QName;
import javax.xml.rpc.ParameterMode;
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import org.apache.axis.components.uuid.UUIDGen;
import org.apache.axis.components.uuid.UUIDGenFactory;
import org.apache.axis.encoding.XMLType;
import org.apache.sandesha.Constants;
/**
* @author SNimalan
*
* To change the template for this generated type comment go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
public class Scenario_2_2_Client {
public static void main(String[] args) {
System.out.println("Client started......");
try {
Service service = new Service();
Call call = (Call) service.createCall();
if(args[0].equals("")){
System.out.println("Pass Target End Point Address as a Parametter");
throw new Exception("Target End Point Address did not Set");
}
call.setTargetEndpointAddress(args[0]);
call.setOperationName(new QName("EchoStringService", "echoString"));
call.addParameter("Text", XMLType.XSD_STRING, ParameterMode.IN);
call.addParameter("Sequence", XMLType.XSD_STRING, ParameterMode.IN);
call.setReturnType(XMLType.SOAP_STRING);
UUIDGen uuidGen = UUIDGenFactory.getUUIDGen();
call.setProperty(Constants.CLIENT_SEQUENCE_IDENTIFIER,"uuid:" + uuidGen.nextUUID());
call.setProperty(Constants.CLIENT_ONE_WAY_INVOKE,(new Boolean(true)));
call.setProperty(Constants.CLIENT_RESPONSE_EXPECTED,(new Boolean(false)));
call.setProperty(Constants.CLIENT_CREATE_SEQUENCE,(new Boolean(false)));
String seq=uuidGen.nextUUID();
System.out.println(call.invoke(new Object[] {"Hello",seq}));
System.out.println(call.invoke(new Object[] {"World",seq}));
call.setLastMessage(true);
System.out.println(call.invoke(new Object[] {"Bye",seq}));
} catch (Exception e) {
System.err.println(e.toString());
}
}
}
Sandesha and WS-RM Interoping
Posted by Aleksander Slominski <as...@cs.indiana.edu>.
Davanum Srinivas wrote:
>The WS-RM Interop workshop is next week (12-13th). Can you please help
>jaliya implement the scenario's? (see attached doc)
>
>
Dims,
sure - i have my ulterior motives too as i want to test my XSUL
implementation of WS-RM :) there should be soon another public interop
WS-RM XSUL endpoint for testing (i will have at least scenario 1
implemented with XSUL)
this could be used then to test Apache Sandesha client. and then when
Sandesha has server endpoint deployed somewhere we could test full
peer-to-peer testing.
so i think first thing would be to start implementing/deploying
Sandesha endpoint for scenario 1.
but that leads to the question: can the endpoint be hosted on one of
apache machines?
thanks,
alek
sandesha beta2
Posted by Aleksander Slominski <as...@cs.indiana.edu>.
Davanum Srinivas wrote:
>i'd say go for it in case jaliya has not gotten to it by tomorrow am for you.
>
>
Question:
i had to comment following line to compile:
call.setLastMessage(true);
where is it coming from?
was AXIS Call patched for it?
also it seems that *.wsdd and keys fiels are missing for interop sample?
alek
CHANGES
------------
moved interop out of samples to interop/ and modified acdordingly build.xml
changed verion to beta2 in build.xml
first i tried to get ant test to run - needed to do following things:
./keys (dir.keys) directory seems to be missing - i have commented it
out of interopTests and did some othe rminor edits to get ant test to work
the same for di.interop (*.jsk is suppsed to be there?!)
build.work was not created so mkdired it but (un)deploy.wsdd seems to be
missing and i am not sure where
org/apache/ws/axis/oasis/Client_deploy.wsdd comes from ...
after seein that AdminClient fails i took out interopTests out of tests
target dependincy - it does not seem interopTests can be executed with
what is currently in CVS (could not find *.wsdd anywhere ...)
added target interop that calls now interopTests
-------------
alek
--
The best way to predict the future is to invent it - Alan Kay
Re: Sandesha dirs/files [Sandesha - cleanup (3)]
Posted by Davanum Srinivas <da...@gmail.com>.
i'd say go for it in case jaliya has not gotten to it by tomorrow am for you.
thanks,
-- dims
On Mon, 03 May 2004 23:29:44 -0500, Aleksander Slominski
<as...@cs.indiana.edu> wrote:
>
> it looked like Jaliya was doing the moving/commiting.
>
> if it is fine with everybody i can do the samples/ -> inteorp migraiton
> tomorrow.
>
> thanks,
>
> alek
>
>
> Davanum Srinivas wrote:
>
> >Alek,
> >
> >Can you please review (and fix?) the rest of the code as well :) You
> >do have write privs to all ws-fx projects.
> >
> >thanks,
> >dims
> >
> >On Mon, 03 May 2004 11:26:36 -0500, Aleksander Slominski
> ><as...@cs.indiana.edu> wrote:
> >
> >
> >>jaliya@apache.org wrote:
> >>
> >>
> >>
> >>>jaliya 2004/05/03 05:38:53
> >>>
> >>> Added: sandesha/samples/interop EchoStringService.java
> >>> PingService.java Scenario_1_1_Client.java
> >>> Scenario_2_2_Client.java
> >>> Log:
> >>> Add samples folder to sandesha to hold sample clients and services
> >>>
> >>> Revision Changes Path
> >>> 1.1 ws-fx/sandesha/samples/interop/EchoStringService.java
> >>>
> >>> Index: EchoStringService.java
> >>> ===================================================================
> >>> /*
> >>> * Created on May 3, 2004
> >>> *
> >>> * To change the template for this generated file go to
> >>> * Window>Preferences>Java>Code Generation>Code and Comments
> >>> */
> >>> package org.apache.sandesha.samples.interop;
> >>>
> >>>
> >>>
> >>>
> >>if EchoStringService.java is in this package it must be located in
> >>sandesha/samples/org/apache/sandesha/samples/interop
> >>and not
> >>sandesha/samples/interop
> >>
> >>why not create a separate from samples/ directory interop/ for interop
> >>related stuff?
> >>
> >>
> >>
> >>> import java.util.HashMap;
> >>> import java.util.Map;
> >>>
> >>> /**
> >>> * @author SNimalan
> >>> *
> >>> * To change the template for this generated type comment go to
> >>> * Window>Preferences>Java>Code Generation>Code and Comments
> >>>
> >>>
> >>>
> >>>
> >>those comments hosuld be removed too (and IDE template chnaged just
> >>follow as stated in the comment:
> >>
> >>Window>Preferences>Java>Code Generation>Code and Comments
> >>
> >>...
> >>
> >>alek
> >>
> >>
> >>--
> >>The best way to predict the future is to invent it - Alan Kay
> >>
> >>
> >>
> >>
>
> --
> The best way to predict the future is to invent it - Alan Kay
>
>
Re: Sandesha dirs/files [Sandesha - cleanup (3)]
Posted by Aleksander Slominski <as...@cs.indiana.edu>.
it looked like Jaliya was doing the moving/commiting.
if it is fine with everybody i can do the samples/ -> inteorp migraiton
tomorrow.
thanks,
alek
Davanum Srinivas wrote:
>Alek,
>
>Can you please review (and fix?) the rest of the code as well :) You
>do have write privs to all ws-fx projects.
>
>thanks,
>dims
>
>On Mon, 03 May 2004 11:26:36 -0500, Aleksander Slominski
><as...@cs.indiana.edu> wrote:
>
>
>>jaliya@apache.org wrote:
>>
>>
>>
>>>jaliya 2004/05/03 05:38:53
>>>
>>> Added: sandesha/samples/interop EchoStringService.java
>>> PingService.java Scenario_1_1_Client.java
>>> Scenario_2_2_Client.java
>>> Log:
>>> Add samples folder to sandesha to hold sample clients and services
>>>
>>> Revision Changes Path
>>> 1.1 ws-fx/sandesha/samples/interop/EchoStringService.java
>>>
>>> Index: EchoStringService.java
>>> ===================================================================
>>> /*
>>> * Created on May 3, 2004
>>> *
>>> * To change the template for this generated file go to
>>> * Window>Preferences>Java>Code Generation>Code and Comments
>>> */
>>> package org.apache.sandesha.samples.interop;
>>>
>>>
>>>
>>>
>>if EchoStringService.java is in this package it must be located in
>>sandesha/samples/org/apache/sandesha/samples/interop
>>and not
>>sandesha/samples/interop
>>
>>why not create a separate from samples/ directory interop/ for interop
>>related stuff?
>>
>>
>>
>>> import java.util.HashMap;
>>> import java.util.Map;
>>>
>>> /**
>>> * @author SNimalan
>>> *
>>> * To change the template for this generated type comment go to
>>> * Window>Preferences>Java>Code Generation>Code and Comments
>>>
>>>
>>>
>>>
>>those comments hosuld be removed too (and IDE template chnaged just
>>follow as stated in the comment:
>>
>>Window>Preferences>Java>Code Generation>Code and Comments
>>
>>...
>>
>>alek
>>
>>
>>--
>>The best way to predict the future is to invent it - Alan Kay
>>
>>
>>
>>
--
The best way to predict the future is to invent it - Alan Kay
Re: nsufficient Karma (aslom|ws-fx/sandesha) [Re: Sandesha dirs/files
[Sandesha - cleanup (3)]
Posted by Aleksander Slominski <as...@cs.indiana.edu>.
wow!
that was fast :)
alek
Re: nsufficient Karma (aslom|ws-fx/sandesha) [Re: Sandesha dirs/files [Sandesha - cleanup (3)]
Posted by Davanum Srinivas <da...@gmail.com>.
pls try now.
On Tue, 04 May 2004 18:54:43 -0500, Aleksander Slominski
<as...@cs.indiana.edu> wrote:
>
> well i did try but ...
>
> **** Access denied: Insufficient Karma (aslom|ws-fx/sandesha)
> cvs server: Pre-commit check failed
> cvs [server aborted]: correct above errors first!
>
> Error, CVS operation failed
>
> how ot get this fixed?
>
> thanks,
>
> alek
>
> Davanum Srinivas wrote:
>
> >Alek,
> >
> >Can you please review (and fix?) the rest of the code as well :) You
> >do have write privs to all ws-fx projects.
> >
> >thanks,
> >dims
> >
> >On Mon, 03 May 2004 11:26:36 -0500, Aleksander Slominski
> ><as...@cs.indiana.edu> wrote:
> >
> >
> >>jaliya@apache.org wrote:
> >>
> >>
> >>
> >>>jaliya 2004/05/03 05:38:53
> >>>
> >>> Added: sandesha/samples/interop EchoStringService.java
> >>> PingService.java Scenario_1_1_Client.java
> >>> Scenario_2_2_Client.java
> >>> Log:
> >>> Add samples folder to sandesha to hold sample clients and services
> >>>
> >>> Revision Changes Path
> >>> 1.1 ws-fx/sandesha/samples/interop/EchoStringService.java
> >>>
> >>> Index: EchoStringService.java
> >>> ===================================================================
> >>> /*
> >>> * Created on May 3, 2004
> >>> *
> >>> * To change the template for this generated file go to
> >>> * Window>Preferences>Java>Code Generation>Code and Comments
> >>> */
> >>> package org.apache.sandesha.samples.interop;
> >>>
> >>>
> >>>
> >>>
> >>if EchoStringService.java is in this package it must be located in
> >>sandesha/samples/org/apache/sandesha/samples/interop
> >>and not
> >>sandesha/samples/interop
> >>
> >>why not create a separate from samples/ directory interop/ for interop
> >>related stuff?
> >>
> >>
> >>
> >>> import java.util.HashMap;
> >>> import java.util.Map;
> >>>
> >>> /**
> >>> * @author SNimalan
> >>> *
> >>> * To change the template for this generated type comment go to
> >>> * Window>Preferences>Java>Code Generation>Code and Comments
> >>>
> >>>
> >>>
> >>>
> >>those comments hosuld be removed too (and IDE template chnaged just
> >>follow as stated in the comment:
> >>
> >>Window>Preferences>Java>Code Generation>Code and Comments
> >>
> >>...
> >>
> >>alek
> >>
> >>
> >>--
> >>The best way to predict the future is to invent it - Alan Kay
> >>
> >>
> >>
> >>
>
>
> --
> The best way to predict the future is to invent it - Alan Kay
>
>
nsufficient Karma (aslom|ws-fx/sandesha) [Re: Sandesha dirs/files
[Sandesha - cleanup (3)]
Posted by Aleksander Slominski <as...@cs.indiana.edu>.
well i did try but ...
**** Access denied: Insufficient Karma (aslom|ws-fx/sandesha)
cvs server: Pre-commit check failed
cvs [server aborted]: correct above errors first!
Error, CVS operation failed
how ot get this fixed?
thanks,
alek
Davanum Srinivas wrote:
>Alek,
>
>Can you please review (and fix?) the rest of the code as well :) You
>do have write privs to all ws-fx projects.
>
>thanks,
>dims
>
>On Mon, 03 May 2004 11:26:36 -0500, Aleksander Slominski
><as...@cs.indiana.edu> wrote:
>
>
>>jaliya@apache.org wrote:
>>
>>
>>
>>>jaliya 2004/05/03 05:38:53
>>>
>>> Added: sandesha/samples/interop EchoStringService.java
>>> PingService.java Scenario_1_1_Client.java
>>> Scenario_2_2_Client.java
>>> Log:
>>> Add samples folder to sandesha to hold sample clients and services
>>>
>>> Revision Changes Path
>>> 1.1 ws-fx/sandesha/samples/interop/EchoStringService.java
>>>
>>> Index: EchoStringService.java
>>> ===================================================================
>>> /*
>>> * Created on May 3, 2004
>>> *
>>> * To change the template for this generated file go to
>>> * Window>Preferences>Java>Code Generation>Code and Comments
>>> */
>>> package org.apache.sandesha.samples.interop;
>>>
>>>
>>>
>>>
>>if EchoStringService.java is in this package it must be located in
>>sandesha/samples/org/apache/sandesha/samples/interop
>>and not
>>sandesha/samples/interop
>>
>>why not create a separate from samples/ directory interop/ for interop
>>related stuff?
>>
>>
>>
>>> import java.util.HashMap;
>>> import java.util.Map;
>>>
>>> /**
>>> * @author SNimalan
>>> *
>>> * To change the template for this generated type comment go to
>>> * Window>Preferences>Java>Code Generation>Code and Comments
>>>
>>>
>>>
>>>
>>those comments hosuld be removed too (and IDE template chnaged just
>>follow as stated in the comment:
>>
>>Window>Preferences>Java>Code Generation>Code and Comments
>>
>>...
>>
>>alek
>>
>>
>>--
>>The best way to predict the future is to invent it - Alan Kay
>>
>>
>>
>>
--
The best way to predict the future is to invent it - Alan Kay
Re: Sandesha dirs/files [Sandesha - cleanup (3)]
Posted by Davanum Srinivas <da...@gmail.com>.
Alek,
Can you please review (and fix?) the rest of the code as well :) You
do have write privs to all ws-fx projects.
thanks,
dims
On Mon, 03 May 2004 11:26:36 -0500, Aleksander Slominski
<as...@cs.indiana.edu> wrote:
>
> jaliya@apache.org wrote:
>
> >jaliya 2004/05/03 05:38:53
> >
> > Added: sandesha/samples/interop EchoStringService.java
> > PingService.java Scenario_1_1_Client.java
> > Scenario_2_2_Client.java
> > Log:
> > Add samples folder to sandesha to hold sample clients and services
> >
> > Revision Changes Path
> > 1.1 ws-fx/sandesha/samples/interop/EchoStringService.java
> >
> > Index: EchoStringService.java
> > ===================================================================
> > /*
> > * Created on May 3, 2004
> > *
> > * To change the template for this generated file go to
> > * Window>Preferences>Java>Code Generation>Code and Comments
> > */
> > package org.apache.sandesha.samples.interop;
> >
> >
> if EchoStringService.java is in this package it must be located in
> sandesha/samples/org/apache/sandesha/samples/interop
> and not
> sandesha/samples/interop
>
> why not create a separate from samples/ directory interop/ for interop
> related stuff?
>
> >
> > import java.util.HashMap;
> > import java.util.Map;
> >
> > /**
> > * @author SNimalan
> > *
> > * To change the template for this generated type comment go to
> > * Window>Preferences>Java>Code Generation>Code and Comments
> >
> >
> those comments hosuld be removed too (and IDE template chnaged just
> follow as stated in the comment:
>
> Window>Preferences>Java>Code Generation>Code and Comments
>
> ...
>
> alek
>
>
> --
> The best way to predict the future is to invent it - Alan Kay
>
>
Sandesha dirs/files [Sandesha - cleanup (3)]
Posted by Aleksander Slominski <as...@cs.indiana.edu>.
jaliya@apache.org wrote:
>jaliya 2004/05/03 05:38:53
>
> Added: sandesha/samples/interop EchoStringService.java
> PingService.java Scenario_1_1_Client.java
> Scenario_2_2_Client.java
> Log:
> Add samples folder to sandesha to hold sample clients and services
>
> Revision Changes Path
> 1.1 ws-fx/sandesha/samples/interop/EchoStringService.java
>
> Index: EchoStringService.java
> ===================================================================
> /*
> * Created on May 3, 2004
> *
> * To change the template for this generated file go to
> * Window>Preferences>Java>Code Generation>Code and Comments
> */
> package org.apache.sandesha.samples.interop;
>
>
if EchoStringService.java is in this package it must be located in
sandesha/samples/org/apache/sandesha/samples/interop
and not
sandesha/samples/interop
why not create a separate from samples/ directory interop/ for interop
related stuff?
>
> import java.util.HashMap;
> import java.util.Map;
>
> /**
> * @author SNimalan
> *
> * To change the template for this generated type comment go to
> * Window>Preferences>Java>Code Generation>Code and Comments
>
>
those comments hosuld be removed too (and IDE template chnaged just
follow as stated in the comment:
Window>Preferences>Java>Code Generation>Code and Comments
...
alek
--
The best way to predict the future is to invent it - Alan Kay