1   /*
2    * $Id: AbstractSoapResourceEndpointFunctionalTestCase.java 7963 2007-08-21 08:53:15Z dirk.olmes $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  
11  package org.mule.tck.providers.soap;
12  
13  public abstract class AbstractSoapResourceEndpointFunctionalTestCase extends AbstractSoapFunctionalTestCase
14  {
15  
16      public String getConfigResources()
17      {
18          return "axis-" + getTransportProtocol() + "-mule-config.xml";
19      }
20  
21      protected abstract String getTransportProtocol();
22  
23      protected abstract String getSoapProvider();
24  
25      protected String getRequestResponseEndpoint()
26      {
27          return getSoapProvider() + ":" + getTransportProtocol() + "://mycomponent?method=echo";
28      }
29  
30      protected String getReceiveEndpoint()
31      {
32          return getSoapProvider() + ":" + getTransportProtocol() + "://mycomponent2?method=getDate";
33      }
34  
35      protected String getReceiveComplexEndpoint()
36      {
37          return getSoapProvider() + ":" + getTransportProtocol()
38                 + "://mycomponent3?method=getPerson&param=Fred";
39      }
40  
41      protected String getSendReceiveComplexEndpoint1()
42      {
43          return getSoapProvider() + ":" + getTransportProtocol() + "://mycomponent3?method=addPerson";
44      }
45  
46      protected String getSendReceiveComplexEndpoint2()
47      {
48          return getSoapProvider() + ":" + getTransportProtocol()
49                 + "://mycomponent3?method=getPerson&param=Dino";
50      }
51  
52      protected String getReceiveComplexCollectionEndpoint()
53      {
54          return getSoapProvider() + ":" + getTransportProtocol() + "://mycomponent3?method=getPeople";
55      }
56  
57      protected String getDispatchAsyncComplexEndpoint1()
58      {
59          return getSoapProvider() + ":" + getTransportProtocol() + "://mycomponent3?method=addPerson";
60      }
61  
62      protected String getDispatchAsyncComplexEndpoint2()
63      {
64          return getSoapProvider() + ":" + getTransportProtocol()
65                 + "://mycomponent3?method=getPerson&param=Betty";
66      }
67  
68      protected String getTestExceptionEndpoint()
69      {
70          return getSoapProvider() + ":" + getTransportProtocol() + "://mycomponent3?method=addPerson";
71      }
72  
73      protected String getWsdlEndpoint()
74      {
75          return getSoapProvider() + ":" + getTransportProtocol() + "://mycomponent?wsdl";
76      }
77  
78      public void testLocationUrlInWSDL() throws Exception
79      {
80          // Only works with socket based protocols
81      }
82  
83  }