CVS: ivory/src/test/org/codehaus/ivory/axis/list ListService.java,1.1,1.2 DefaultListService.java,1.1,1.2 ListServiceTest.java,1.1,1.2
[email protected] Mon, 5 May 2003 09:19:12 -0500
| Newsgroups | gmane.comp.java.plexus.devel |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/plexus/ivory/src/test/org/codehaus/ivory/axis/list
In directory eng.werken.com:/tmp/cvs-serv1379/src/test/org/codehaus/ivory/axis/list
Modified Files:
ListService.java DefaultListService.java ListServiceTest.java
Log Message:
Ivory is really coming along now...
There is now an IvoryProvider which loads the IvoryServiceDesc
instead of Axis's ServiceDesc. The IvoryServiceDesc has
metadata capabilities. Currently you can specify to not expose
certain methods as a web service and also specify what type of
array a List should be serialized to (hooray!).
NOTE: You now need commons-attributes installed in your maven
repo! This is only available from apache CVS currently. See:
http://jakarta.apache.org/commons/sandbox/attributes
Also, there are a bunch of documentation improvements, with
more coming.
Index: ListService.java
===================================================================
RCS file: /cvsroot/plexus/ivory/src/test/org/codehaus/ivory/axis/list/ListService.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- ListService.java 4 May 2003 20:25:56 -0000 1.1
+++ ListService.java 5 May 2003 14:19:09 -0000 1.2
@@ -12,5 +12,13 @@
{
final public static String ROLE = ListService.class.getName();
+ /**
+ * @axis.serialize.out [Ljava.lang.String;
+ */
public List getDevelopers();
+
+ /**
+ * @axis.hidemethod
+ */
+ public void secretMethod();
}
Index: DefaultListService.java
===================================================================
RCS file: /cvsroot/plexus/ivory/src/test/org/codehaus/ivory/axis/list/DefaultListService.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- DefaultListService.java 4 May 2003 20:25:56 -0000 1.1
+++ DefaultListService.java 5 May 2003 14:19:09 -0000 1.2
@@ -13,6 +13,7 @@
/**
* @see org.codehaus.ivory.axis.list.ListService#getDevelopers()
+ * @axis.serialize.out [java.lang.String;
*/
public List getDevelopers()
{
@@ -23,4 +24,10 @@
return list;
}
+ /**
+ * @see org.codehaus.ivory.axis.list.ListService#secretMethod()
+ */
+ public void secretMethod()
+ {
+ }
}
Index: ListServiceTest.java
===================================================================
RCS file: /cvsroot/plexus/ivory/src/test/org/codehaus/ivory/axis/list/ListServiceTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- ListServiceTest.java 4 May 2003 20:25:56 -0000 1.1
+++ ListServiceTest.java 5 May 2003 14:19:09 -0000 1.2
@@ -17,8 +17,18 @@
public void testListSerialization() throws Exception
{
- // Doesn't work yet.
- // assertValidWSDL( "List", "getDevelopers" );
- }
+ assertValidWSDL( "List", "getDevelopers" );
+
+ String wsdl = getWSDL( "List" );
+ assertStringNotInBody( "wsdl", "secretMethod" );
+/*
+ WebResponse response =
+ newClient().getResponse("http://localhost/services/List?method=getDevelopers");
+
+ assertIsXml( response.getText() );
+ assertStringInBody( response, "Dan Diephouse" );
+ assertStringInBody( response, "Jason van Zyl" );
+*/
+ }
}