axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dee...@apache.org
Subject svn commit: r293562 - in /webservices/axis2/trunk/java/modules/codegen: test-resources/XMLBeanSchemaUtilityRepo/ test-resources/XMLBeanSchemaUtilityRepo/services/ test/org/apache/axis2/databinding/
Date Tue, 04 Oct 2005 07:41:41 GMT
Author: deepal
Date: Tue Oct  4 00:41:11 2005
New Revision: 293562

URL: http://svn.apache.org/viewcvs?rev=293562&view=rev
Log:
adding utility method in XMLBeansSchemaUtilityTest.java

I added service archive file , we have to make it to create using a maven rather than using
jar file
(I will fix that soon)

Added:
    webservices/axis2/trunk/java/modules/codegen/test-resources/XMLBeanSchemaUtilityRepo/
    webservices/axis2/trunk/java/modules/codegen/test-resources/XMLBeanSchemaUtilityRepo/axis2.xml
    webservices/axis2/trunk/java/modules/codegen/test-resources/XMLBeanSchemaUtilityRepo/services/
    webservices/axis2/trunk/java/modules/codegen/test-resources/XMLBeanSchemaUtilityRepo/services/databindingService.jar
  (with props)
Modified:
    webservices/axis2/trunk/java/modules/codegen/test/org/apache/axis2/databinding/XMLBeansSchemaUtilityTest.java

Added: webservices/axis2/trunk/java/modules/codegen/test-resources/XMLBeanSchemaUtilityRepo/axis2.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/codegen/test-resources/XMLBeanSchemaUtilityRepo/axis2.xml?rev=293562&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/test-resources/XMLBeanSchemaUtilityRepo/axis2.xml
(added)
+++ webservices/axis2/trunk/java/modules/codegen/test-resources/XMLBeanSchemaUtilityRepo/axis2.xml
Tue Oct  4 00:41:11 2005
@@ -0,0 +1,125 @@
+<axisconfig name="AxisJava2.0">
+    <!-- ================================================= -->
+    <!-- Parameters -->
+    <!-- ================================================= -->
+    <parameter name="hotdeployment" locked="false">true</parameter>
+    <parameter name="hotupdate" locked="false">false</parameter>
+    <parameter name="enableMTOM" locked="false">true</parameter>
+    <!-- Uncomment this to enable REST support -->
+    <!--    <parameter name="enableREST" locked="false">true</parameter>-->
+
+
+    <parameter name="userName" locked="false">admin</parameter>
+    <parameter name="password" locked="false">axis2</parameter>
+
+    <parameter name="seralizeLocation" locked="false">.</parameter>
+
+
+
+    <!--if you want to extract the service archive file and work with that please uncomment
this-->
+    <!--else , it wont extract archive file or does not take into consideration if someone
drop-->
+    <!--exploded directory into /service directory-->
+    <!--<parameter name="extractServiceArchive" locked="false">true</parameter>-->
+
+
+<!--    The way of adding listener to the system-->
+<!--    <listener class="org.apache.axis2.ObserverIMPL">-->
+<!--        <parameter name="RSS_URL" locked="false">http://127.0.0.1/rss</parameter>-->
+<!--    </listener>-->
+
+    <!--Registering Axis Storage Class if you comment this default one will -->
+    <!--does the job (org.apache.axis2.storage.impl.AxisMemoryStorage) , if you-->
+    <!--want to register new one write a class by extanding AbastractStorage-->
+    <!--and put that name here-->
+    <axisStorage class="org.apache.axis2.storage.impl.AxisMemoryStorage">
+        <parameter name="StoreLocation" locked="false">N:S</parameter>
+    </axisStorage>
+
+
+
+    <!-- ================================================= -->
+    <!-- Message Receivers -->
+    <!-- ================================================= -->
+    <!-- This is the Deafult Message Receiver for the Request Response style Operations
-->
+    <messageReceiver mep="INOUT" class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
+
+    <!-- ================================================= -->
+    <!-- Transport Ins -->
+    <!-- ================================================= -->
+    <transportReceiver name="http" class="org.apache.axis2.transport.http.SimpleHTTPServer">
+        <parameter name="port" locked="false">6060</parameter>
+    </transportReceiver>
+
+    <!-- Uncomment this one with the appropriate papameters to enable the SMTP transport
Receiver
+    <transportReceiver name="mail" class="org.apache.axis2.transport.mail.SimpleMailListener">
+          <parameter name="transport.mail.pop3.host" locked="false">127.0.0.1</parameter>
+          <parameter name="transport.mail.pop3.user" locked="false">axis2</parameter>
+          <parameter name="transport.mail.pop3.password" locked="false">axis2</parameter>
+          <parameter name="transport.mail.pop3.port" locked="false">110</parameter>
+          <parameter name="transport.mail.replyToAddress" locked="false">axis2@127.0.0.1</parameter>
+      </transportReceiver> -->
+
+    <transportReceiver name="tcp" class="org.apache.axis2.transport.tcp.TCPServer">
+        <parameter name="port" locked="false">6060</parameter>
+    </transportReceiver>
+
+    <!-- ================================================= -->
+    <!-- Transport Outs -->
+    <!-- ================================================= -->
+
+    <transportSender name="tcp" class="org.apache.axis2.transport.tcp.TCPTransportSender"/>
+    <transportSender name="local" class="org.apache.axis2.transport.local.LocalTransportSender"/>
+    <transportSender name="http" class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
+        <parameter name="PROTOCOL" locked="false">HTTP/1.1</parameter>
+    </transportSender>
+    <transportSender name="https" class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
+        <parameter name="PROTOCOL" locked="false">HTTP/1.1</parameter>
+    </transportSender>
+
+    <!-- Uncomment this one with the appropriate papameters to enable the SMTP transport
Receiver
+   <transportSender name="mail" class="org.apache.axis2.transport.mail.MailTransportSender">
+       <parameter name="transport.mail.smtp.host" locked="false">127.0.0.1</parameter>
+       <parameter name="transport.mail.smtp.user" locked="false">axis2</parameter>
+       <parameter name="transport.mail.smtp.password" locked="false">axis2</parameter>
+       <parameter name="transport.mail.smtp.port" locked="false">25</parameter>
+   </transportSender>
+   -->
+
+    <!-- ================================================= -->
+    <!-- Global Modules  -->
+    <!-- ================================================= -->
+    <!-- Comment this to disable Addressing -->
+   
+
+
+    <!--Configuring module , providing paramters for modules whether they refer or not-->
+    <!--<moduleConfig name="addressing">-->
+         <!--<parameter name="addressingPara" locked="false">N/A</parameter>-->
+    <!--</moduleConfig>-->
+    
+    <!-- ================================================= -->
+    <!-- Phases  -->
+    <!-- ================================================= -->
+    <phaseOrder type="inflow">
+        <!--  System pre defined phases       -->
+        <phase name="TransportIn"/>
+        <phase name="PreDispatch"/>
+        <phase name="Dispatch"/>
+        <phase name="PostDispatch"/>
+        <!--  System pre defined phases       -->
+        <!--   After Postdispatch phase module author or or service author can add any
phase he want      -->
+        <phase name="userphase1"/>
+    </phaseOrder>
+    <phaseOrder type="outflow">
+        <!--      user can add his own phases to this area  -->
+        <phase name="userphase1"/>
+    </phaseOrder>
+    <phaseOrder type="INfaultflow">
+        <!--      user can add his own phases to this area  -->
+        <phase name="userphase1"/>
+    </phaseOrder>
+    <phaseOrder type="Outfaultflow">
+        <!--      user can add his own phases to this area  -->
+        <phase name="userphase1"/>
+    </phaseOrder>
+</axisconfig>

Added: webservices/axis2/trunk/java/modules/codegen/test-resources/XMLBeanSchemaUtilityRepo/services/databindingService.jar
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/codegen/test-resources/XMLBeanSchemaUtilityRepo/services/databindingService.jar?rev=293562&view=auto
==============================================================================
Binary file - no diff available.

Propchange: webservices/axis2/trunk/java/modules/codegen/test-resources/XMLBeanSchemaUtilityRepo/services/databindingService.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: webservices/axis2/trunk/java/modules/codegen/test/org/apache/axis2/databinding/XMLBeansSchemaUtilityTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/codegen/test/org/apache/axis2/databinding/XMLBeansSchemaUtilityTest.java?rev=293562&r1=293561&r2=293562&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/test/org/apache/axis2/databinding/XMLBeansSchemaUtilityTest.java
(original)
+++ webservices/axis2/trunk/java/modules/codegen/test/org/apache/axis2/databinding/XMLBeansSchemaUtilityTest.java
Tue Oct  4 00:41:11 2005
@@ -2,6 +2,11 @@
 
 import junit.framework.TestCase;
 import org.apache.axis2.description.ServiceDescription;
+import org.apache.axis2.description.ServiceGroupDescription;
+import org.apache.axis2.engine.AxisConfiguration;
+import org.apache.axis2.context.ConfigurationContextFactory;
+import org.apache.axis2.AxisFault;
+import org.apache.axis2.deployment.DeploymentException;
 
 /*
  * Copyright 2001-2004 The Apache Software Foundation.
@@ -23,8 +28,14 @@
 
 public class XMLBeansSchemaUtilityTest extends TestCase {
 
-    public ServiceDescription getDummyServiceDescription(){
-        // TODO : Deepal Fix me.
+    AxisConfiguration ar;
+    String repo ="./test-resources/XMLBeanSchemaUtilityRepo";
+
+    public ServiceDescription getDummyServiceDescription() throws AxisFault {
+        ConfigurationContextFactory builder = new ConfigurationContextFactory();
+        ar = builder.buildConfigurationContext(repo).getAxisConfiguration();
+        ServiceDescription service = ar.getService("databindingService");
+        assertNotNull(service);
         return null;
     }
 



Mime
View raw message