Author: dkulp
Date: Fri Nov  2 08:35:38 2007
New Revision: 591366

URL: http://svn.apache.org/viewvc?rev=591366&view=rev
Log:
[CXF-1145] Testcase for CXF-1145

Modified:
    
incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/aegis/AegisClientServerTest.java
    incubator/cxf/trunk/systests/src/test/resources/webapp/WEB-INF/beans.xml

Modified: 
incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/aegis/AegisClientServerTest.java
URL: 
http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/aegis/AegisClientServerTest.java?rev=591366&r1=591365&r2=591366&view=diff
==============================================================================
--- 
incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/aegis/AegisClientServerTest.java
 (original)
+++ 
incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/aegis/AegisClientServerTest.java
 Fri Nov  2 08:35:38 2007
@@ -126,5 +126,10 @@
                            + "xsd:[EMAIL PROTECTED]'getRolesAsArrayResponse']/"
                            + "xsd:sequence/xsd:[EMAIL PROTECTED]'true']",
                            dom);
+        
+        url = new URL("http://localhost:9002/serviceWithCustomNS?wsdl";);
+        dom = XMLUtils.parse(url.openStream());
+        util.assertValid("//wsdl:[EMAIL PROTECTED]'http://foo.bar.com']",
+                         dom);
     }
 }

Modified: 
incubator/cxf/trunk/systests/src/test/resources/webapp/WEB-INF/beans.xml
URL: 
http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/resources/webapp/WEB-INF/beans.xml?rev=591366&r1=591365&r2=591366&view=diff
==============================================================================
--- incubator/cxf/trunk/systests/src/test/resources/webapp/WEB-INF/beans.xml 
(original)
+++ incubator/cxf/trunk/systests/src/test/resources/webapp/WEB-INF/beans.xml 
Fri Nov  2 08:35:38 2007
@@ -50,6 +50,29 @@
     </simple:serviceBean>
   </simple:server>
   
+  <simple:server address="/serviceWithCustomNS"
+    serviceClass="org.apache.cxf.authservice.AuthService">
+    <simple:dataBinding>
+       <bean class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
+    </simple:dataBinding>
+    <simple:serviceBean>
+      <bean class="org.apache.cxf.authservice.AuthServiceImpl" />
+    </simple:serviceBean>
+    <simple:serviceFactory>
+       <bean 
class="org.apache.cxf.service.factory.ReflectionServiceFactoryBean">
+               <property name="serviceConfigurations">
+                       <list>
+                               <bean 
class="org.apache.cxf.aegis.databinding.AegisServiceConfiguration">
+                                       <property name="serviceNamespace" 
value="http://foo.bar.com"/>
+                               </bean>
+                               <bean 
class="org.apache.cxf.service.factory.DefaultServiceConfiguration"/>
+                       </list>
+               </property>
+       </bean>
+    </simple:serviceFactory>
+  </simple:server>
+  
+  
   <jaxws:server address="/jaxwsAndAegis"
     serviceClass="org.apache.cxf.authservice.AuthService">
     <jaxws:dataBinding>


Reply via email to