1 package org.codehaus.ivory;
2
3
4 import org.dom4j.Document;
5
6 import com.meterware.httpunit.WebResponse;
7 import com.meterware.servletunit.ServletUnitClient;
8
9 /***
10 * Tests the DefaultAxisService.
11 *
12 * @author <a href="mailto:dan@envoisolutions.com">Dan Diephouse</a>
13 * @since Mar 9, 2003
14 */
15 public class DefaultAxisServiceTest
16 extends IvoryTestCase
17 {
18 public DefaultAxisServiceTest(String name)
19 {
20 super(name);
21 }
22
23 public void testAxisService() throws Exception
24 {
25 AxisService service = ( AxisService ) lookup( AxisService.ROLE );
26
27 assertNotNull( service.getAxisServer() );
28 }
29
30 public void testWSDLGeneration() throws Exception
31 {
32 addNamespace("wsdl", "http://schemas.xmlsoap.org/wsdl/");
33
34 Document doc = getWSDL("Version");
35
36 assertValid("/wsdl:definitions/wsdl:message[@name='getVersionResponse']", doc );
37 }
38
39 public void testExposeService() throws Exception
40 {
41 ServletUnitClient client = newClient();
42
43 WebResponse response = client.getResponse("http://localhost/services/SparePartInfo?method=getPartInfo&PartSKU=test");
44
45
46
47
48 }
49
50 public void testComplexSerialization() throws Exception
51 {
52 ServletUnitClient client = newClient();
53
54 WebResponse response = client.getResponse("http://localhost/services/SparePartInfo?method=getSparePart");
55
56
57
58 }
59 }
60