axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wood...@apache.org
Subject svn commit: r633234 [23/24] - in /webservices/axis2/trunk/java: ./ modules/jaxws-integration/ modules/jaxws-integration/test/ modules/jaxws-integration/test/client/ modules/jaxws-integration/test/org/ modules/jaxws-integration/test/org/apache/ modules/...
Date Mon, 03 Mar 2008 18:48:24 GMT
Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/clientTests/dispatch/datasource/DispatchXMessageDataSource.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/clientTests/dispatch/datasource/DispatchXMessageDataSource.java?rev=633234&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/clientTests/dispatch/datasource/DispatchXMessageDataSource.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/clientTests/dispatch/datasource/DispatchXMessageDataSource.java Mon Mar  3 10:47:38 2008
@@ -0,0 +1,79 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axis2.jaxws.xmlhttp.clientTests.dispatch.datasource;
+
+import java.awt.Image;
+import java.io.File;
+
+import javax.activation.DataSource;
+import javax.imageio.ImageIO;
+import javax.imageio.stream.FileImageInputStream;
+import javax.imageio.stream.ImageInputStream;
+import javax.xml.namespace.QName;
+import javax.xml.ws.Dispatch;
+import javax.xml.ws.Service;
+import javax.xml.ws.http.HTTPBinding;
+
+import org.apache.axis2.jaxws.provider.DataSourceImpl;
+
+import junit.framework.TestCase;
+
+public class DispatchXMessageDataSource extends TestCase {
+
+    public String HOSTPORT = "http://localhost:6060";
+        
+    private String ENDPOINT_URL = HOSTPORT + "/axis2/services/XMessageDataSourceProvider.XMessageDataSourceProviderPort";
+    private QName SERVICE_NAME  = new QName("http://ws.apache.org/axis2", "XMessageDataSourceProvider");
+    private QName PORT_NAME  = new QName("http://ws.apache.org/axis2", "XMessageDataSourceProviderPort");
+ 
+    
+    private DataSource imageDS;
+    
+    public void setUp() throws Exception {
+        String imageResourceDir = System.getProperty("basedir",".")+"/"+"test-resources"+File.separator+"image";
+        
+        //Create a DataSource from an image 
+        File file = new File(imageResourceDir+File.separator+"test.jpg");
+        ImageInputStream fiis = new FileImageInputStream(file);
+        Image image = ImageIO.read(fiis);
+        imageDS = new DataSourceImpl("image/jpeg","test.jpg",image);
+    }
+    
+    public Dispatch<DataSource> getDispatch() {
+       Service service = Service.create(SERVICE_NAME);
+       service.addPort(PORT_NAME, HTTPBinding.HTTP_BINDING,ENDPOINT_URL);
+       Dispatch<DataSource> dispatch = service.createDispatch(PORT_NAME, DataSource.class, Service.Mode.MESSAGE);
+       return dispatch;
+    }
+    
+    /**
+     * Simple XML/HTTP Message Test
+     * @throws Exception
+     */
+    public void testSimple() throws Exception {
+        Dispatch<DataSource> dispatch = getDispatch();
+        DataSource request = imageDS;
+        
+        // TODO NOT IMPLEMENTED
+        
+        //DataSource response = dispatch.invoke(request);
+        //assertTrue(response != null);
+        //assertTrue(request.equals(response));
+    }
+}

Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/clientTests/dispatch/jaxb/DispatchXPayloadJAXB.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/clientTests/dispatch/jaxb/DispatchXPayloadJAXB.java?rev=633234&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/clientTests/dispatch/jaxb/DispatchXPayloadJAXB.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/clientTests/dispatch/jaxb/DispatchXPayloadJAXB.java Mon Mar  3 10:47:38 2008
@@ -0,0 +1,86 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axis2.jaxws.xmlhttp.clientTests.dispatch.jaxb;
+
+import java.io.ByteArrayInputStream;
+
+import javax.xml.bind.JAXBContext;
+import javax.xml.bind.JAXBException;
+import javax.xml.namespace.QName;
+import javax.xml.stream.XMLInputFactory;
+import javax.xml.stream.XMLStreamReader;
+import javax.xml.transform.Source;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.ws.Dispatch;
+import javax.xml.ws.Service;
+import javax.xml.ws.http.HTTPBinding;
+
+import org.apache.axis2.jaxws.message.util.Reader2Writer;
+import org.apache.axis2.jaxws.TestLogger;
+
+import test.EchoString;
+import test.EchoStringResponse;
+import test.ObjectFactory;
+
+import junit.framework.TestCase;
+
+public class DispatchXPayloadJAXB extends TestCase {
+    
+    private static XMLInputFactory inputFactory = XMLInputFactory.newInstance();
+
+    public String HOSTPORT = "http://localhost:6060";
+        
+    private String ENDPOINT_URL = HOSTPORT + "/axis2/services/XPayloadSourceProvider.XPayloadSourceProviderPort";
+    private QName SERVICE_NAME  = new QName("http://ws.apache.org/axis2", "XPayloadSourceProvider");
+    private QName PORT_NAME  = new QName("http://ws.apache.org/axis2", "XPayloadSourceProviderPort");
+
+    String XML_TEXT = "<p:echo xmlns:p=\"http://sample\">hello world</p:echo>";
+    public Dispatch<Object> getDispatch() throws JAXBException {
+        Service service = Service.create(SERVICE_NAME);
+        service.addPort(PORT_NAME, HTTPBinding.HTTP_BINDING,ENDPOINT_URL);
+        JAXBContext jbc = JAXBContext.newInstance("test");
+        Dispatch<Object> dispatch = service.createDispatch(PORT_NAME, jbc, Service.Mode.PAYLOAD);
+        return dispatch;
+     }
+    
+    /**
+    * Simple XML/HTTP Message Test
+    * @throws Exception
+    */
+   public void testSimple() throws Exception {
+       Dispatch<Object> dispatch = getDispatch();
+       ObjectFactory factory = new ObjectFactory();
+       EchoString request = factory.createEchoString();         
+       request.setInput("SYNC JAXB XML PAYLOAD TEST");
+       
+       // Invoke the Dispatch<Object>
+        TestLogger.logger.debug(">> Invoking sync Dispatch with JAX-B Parameter");
+       EchoString response = (EchoString) dispatch.invoke(request);
+       
+       assertNotNull(response);
+
+        TestLogger.logger.debug(">> Response content: " + response.getInput());
+       
+       assertTrue("[ERROR] - Response object was null", response != null);
+       assertTrue("[ERROR] - No content in response object", response.getInput() != null);
+       assertTrue("[ERROR] - Zero length content in response", response.getInput().length() > 0);
+       assertTrue(response.getInput().equals(request.getInput()));
+
+   }
+}

Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/clientTests/dispatch/source/DispatchXMessageSource.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/clientTests/dispatch/source/DispatchXMessageSource.java?rev=633234&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/clientTests/dispatch/source/DispatchXMessageSource.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/clientTests/dispatch/source/DispatchXMessageSource.java Mon Mar  3 10:47:38 2008
@@ -0,0 +1,80 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axis2.jaxws.xmlhttp.clientTests.dispatch.source;
+
+import java.io.ByteArrayInputStream;
+import java.io.InputStream;
+
+import javax.xml.namespace.QName;
+import javax.xml.stream.XMLInputFactory;
+import javax.xml.stream.XMLStreamReader;
+import javax.xml.transform.Source;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.ws.Dispatch;
+import javax.xml.ws.Service;
+import javax.xml.ws.http.HTTPBinding;
+
+import org.apache.axis2.jaxws.message.util.Reader2Writer;
+
+import junit.framework.TestCase;
+
+public class DispatchXMessageSource extends TestCase {
+
+    private static XMLInputFactory inputFactory = XMLInputFactory.newInstance();
+
+    public String HOSTPORT = "http://localhost:6060";
+        
+    private String ENDPOINT_URL = HOSTPORT + "/axis2/services/XMessageSourceProvider.XMessageSourceProviderPort";
+    private QName SERVICE_NAME  = new QName("http://ws.apache.org/axis2", "XMessageSourceProvider");
+    private QName PORT_NAME  = new QName("http://ws.apache.org/axis2", "XMessageSourceProviderPort");
+ 
+    private static String XML_TEXT = "<p:echo xmlns:p=\"http://sample\">hello world</p:echo>";
+    private static String XML_TEXT_NPE = "<p:echo xmlns:p=\"http://sample\">NPE</p:echo>";
+    
+    public Dispatch<Source> getDispatch() {
+       Service service = Service.create(SERVICE_NAME);
+       service.addPort(PORT_NAME, HTTPBinding.HTTP_BINDING,ENDPOINT_URL);
+       Dispatch<Source> dispatch = service.createDispatch(PORT_NAME, Source.class, Service.Mode.MESSAGE);
+       return dispatch;
+    }
+    
+    /**
+     * Simple XML/HTTP Message Test
+     * @throws Exception
+     */
+    public void testSimple() throws Exception {
+        Dispatch<Source> dispatch = getDispatch();
+        String request = XML_TEXT;
+        ByteArrayInputStream stream = new ByteArrayInputStream(request.getBytes());
+        Source inSource = new StreamSource((InputStream) stream);
+        
+        Source outSource = dispatch.invoke(inSource);
+        
+        // Prepare the response content for checking
+        XMLStreamReader reader = inputFactory.createXMLStreamReader(outSource);
+        Reader2Writer r2w = new Reader2Writer(reader);
+        String response = r2w.getAsString();
+        
+        assertTrue(response != null);
+        assertTrue(request.equals(response));
+    }
+    
+   
+}
+

Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/clientTests/dispatch/source/DispatchXPayloadSource.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/clientTests/dispatch/source/DispatchXPayloadSource.java?rev=633234&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/clientTests/dispatch/source/DispatchXPayloadSource.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/clientTests/dispatch/source/DispatchXPayloadSource.java Mon Mar  3 10:47:38 2008
@@ -0,0 +1,80 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axis2.jaxws.xmlhttp.clientTests.dispatch.source;
+
+import java.io.ByteArrayInputStream;
+import java.io.InputStream;
+
+import javax.xml.namespace.QName;
+import javax.xml.stream.XMLInputFactory;
+import javax.xml.stream.XMLStreamReader;
+import javax.xml.transform.Source;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.ws.Dispatch;
+import javax.xml.ws.Service;
+import javax.xml.ws.http.HTTPBinding;
+
+import org.apache.axis2.jaxws.message.util.Reader2Writer;
+
+import junit.framework.TestCase;
+
+public class DispatchXPayloadSource extends TestCase {
+
+    private static XMLInputFactory inputFactory = XMLInputFactory.newInstance();
+
+    public String HOSTPORT = "http://localhost:6060";
+        
+    private String ENDPOINT_URL = HOSTPORT + "/axis2/services/XMessageSourceProvider.XMessageSourceProviderPort";
+    private QName SERVICE_NAME  = new QName("http://ws.apache.org/axis2", "XPayloadSourceProvider");
+    private QName PORT_NAME  = new QName("http://ws.apache.org/axis2", "XPayloadSourceProviderPort");
+ 
+    private static String XML_TEXT = "<p:echo xmlns:p=\"http://sample\">hello world</p:echo>";
+    private static String XML_TEXT_NPE = "<p:echo xmlns:p=\"http://sample\">NPE</p:echo>";
+    
+    public Dispatch<Source> getDispatch() {
+       Service service = Service.create(SERVICE_NAME);
+       service.addPort(PORT_NAME, HTTPBinding.HTTP_BINDING,ENDPOINT_URL);
+       Dispatch<Source> dispatch = service.createDispatch(PORT_NAME, Source.class, Service.Mode.PAYLOAD);
+       return dispatch;
+    }
+    
+    /**
+     * Simple XML/HTTP Payload Test
+     * @throws Exception
+     */
+    public void testSimple() throws Exception {
+        Dispatch<Source> dispatch = getDispatch();
+        String request = XML_TEXT;
+        ByteArrayInputStream stream = new ByteArrayInputStream(request.getBytes());
+        Source inSource = new StreamSource((InputStream) stream);
+        
+        Source outSource = dispatch.invoke(inSource);
+        
+        // Prepare the response content for checking
+        XMLStreamReader reader = inputFactory.createXMLStreamReader(outSource);
+        Reader2Writer r2w = new Reader2Writer(reader);
+        String response = r2w.getAsString();
+        
+        assertTrue(response != null);
+        assertTrue(request.equals(response));
+    }
+    
+   
+}
+

Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/clientTests/dispatch/string/DispatchXMessageString.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/clientTests/dispatch/string/DispatchXMessageString.java?rev=633234&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/clientTests/dispatch/string/DispatchXMessageString.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/clientTests/dispatch/string/DispatchXMessageString.java Mon Mar  3 10:47:38 2008
@@ -0,0 +1,103 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axis2.jaxws.xmlhttp.clientTests.dispatch.string;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Dispatch;
+import javax.xml.ws.Service;
+import javax.xml.ws.http.HTTPBinding;
+
+import junit.framework.TestCase;
+import org.apache.axis2.jaxws.TestLogger;
+
+public class DispatchXMessageString extends TestCase {
+
+    public String HOSTPORT = "http://localhost:6060";
+        
+    private String ENDPOINT_URL = HOSTPORT + "/axis2/services/XMessageStringProvider.XMessageStringProviderPort";
+    private QName SERVICE_NAME  = new QName("http://ws.apache.org/axis2", "XMessageStringProvider");
+    private QName PORT_NAME  = new QName("http://ws.apache.org/axis2", "XMessageStringProviderPort");
+ 
+    private static String XML_TEXT = "<p:echo xmlns:p=\"http://sample\">hello world</p:echo>";
+    private static String XML_TEXT_NPE = "<p:echo xmlns:p=\"http://sample\">NPE</p:echo>";
+    
+    public Dispatch<String> getDispatch() {
+       Service service = Service.create(SERVICE_NAME);
+       service.addPort(PORT_NAME, HTTPBinding.HTTP_BINDING,ENDPOINT_URL);
+       Dispatch<String> dispatch = service.createDispatch(PORT_NAME, String.class, Service.Mode.MESSAGE);
+       return dispatch;
+    }
+    
+    /**
+     * Simple XML/HTTP Message Test
+     * @throws Exception
+     */
+    public void testSimple() throws Exception {
+        Dispatch<String> dispatch = getDispatch();
+        String request = XML_TEXT;
+        TestLogger.logger.debug("Request  = " + request);
+        String response = dispatch.invoke(request);
+        TestLogger.logger.debug("Response = " + response);
+        assertTrue(response != null);
+        assertTrue(request.equals(response));
+    }
+    
+    /**
+     * TODO Need to fix the implementation and test
+     * @throws Exception
+     */
+    public void _testEmpty() throws Exception {
+        Dispatch<String> dispatch = getDispatch();
+        String request = "";
+        TestLogger.logger.debug("Request  = " + request);
+        String response = dispatch.invoke(request);
+        TestLogger.logger.debug("Response = " + response);
+        assertTrue(response != null);
+        assertTrue(request.equals(response));
+    }
+    
+    /**
+     * TODO Need to fix the implementation and test
+     * @throws Exception
+     */
+    public void _testNull() throws Exception {
+        Dispatch<String> dispatch = getDispatch();
+        String request = null;
+        TestLogger.logger.debug("Request  = " + request);
+        String response = dispatch.invoke(request);
+        TestLogger.logger.debug("Response = " + response);
+        assertTrue(response != null);
+        assertTrue(request.equals(response));
+    }
+    
+    /**
+     * TODO Need to fix the implementation and test
+     * @throws Exception
+     */
+    public void _testException() throws Exception {
+        Dispatch<String> dispatch = getDispatch();
+        String request = XML_TEXT_NPE;
+        TestLogger.logger.debug("Request  = " + request);
+        String response = dispatch.invoke(request);
+        TestLogger.logger.debug("Response = " + response);
+        assertTrue(response != null);
+        assertTrue(request.equals(response));
+    }
+}
+

Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/clientTests/dispatch/string/DispatchXPayloadString.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/clientTests/dispatch/string/DispatchXPayloadString.java?rev=633234&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/clientTests/dispatch/string/DispatchXPayloadString.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/clientTests/dispatch/string/DispatchXPayloadString.java Mon Mar  3 10:47:38 2008
@@ -0,0 +1,102 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axis2.jaxws.xmlhttp.clientTests.dispatch.string;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Dispatch;
+import javax.xml.ws.Service;
+import javax.xml.ws.http.HTTPBinding;
+
+import junit.framework.TestCase;
+import org.apache.axis2.jaxws.TestLogger;
+
+public class DispatchXPayloadString extends TestCase {
+
+    public String HOSTPORT = "http://localhost:6060";
+        
+    private String ENDPOINT_URL = HOSTPORT + "/axis2/services/XPayloadStringProvider.XPayloadStringProviderPort";
+    private QName SERVICE_NAME  = new QName("http://ws.apache.org/axis2", "XPayloadStringProvider");
+    private QName PORT_NAME  = new QName("http://ws.apache.org/axis2", "XPayloadStringProviderPort");
+ 
+    private static String XML_TEXT = "<p:echo xmlns:p=\"http://sample\">hello world</p:echo>";
+    private static String XML_TEXT_NPE = "<p:echo xmlns:p=\"http://sample\">NPE</p:echo>";
+    
+    public Dispatch<String> getDispatch() {
+       Service service = Service.create(SERVICE_NAME);
+       service.addPort(PORT_NAME, HTTPBinding.HTTP_BINDING,ENDPOINT_URL);
+       Dispatch<String> dispatch = service.createDispatch(PORT_NAME, String.class, Service.Mode.PAYLOAD);
+       return dispatch;
+    }
+    
+    /**
+     * Simple XML/HTTP Payload Test
+     * @throws Exception
+     */
+    public void testSimple() throws Exception {
+        Dispatch<String> dispatch = getDispatch();
+        String request = XML_TEXT;
+        TestLogger.logger.debug("Request  = " + request);
+        String response = dispatch.invoke(request);
+        TestLogger.logger.debug("Response = " + response);
+        assertTrue(response != null);
+        assertTrue(request.equals(response));
+    }
+    
+    /**
+     * TODO Need to fix the implementation and test
+     * @throws Exception
+     */
+    public void _testEmpty() throws Exception {
+        Dispatch<String> dispatch = getDispatch();
+        String request = "";
+        TestLogger.logger.debug("Request  = " + request);
+        String response = dispatch.invoke(request);
+        TestLogger.logger.debug("Response = " + response);
+        assertTrue(response != null);
+        assertTrue(request.equals(response));
+    }
+    
+    /**
+     * TODO Need to fix the implementation and test
+     * @throws Exception
+     */
+    public void _testNull() throws Exception {
+        Dispatch<String> dispatch = getDispatch();
+        String request = null;
+        TestLogger.logger.debug("Request  = " + request);
+        String response = dispatch.invoke(request);
+        TestLogger.logger.debug("Response = " + response);
+        assertTrue(response != null);
+        assertTrue(request.equals(response));
+    }
+    
+    /**
+     * TODO Need to fix the implementation and test
+     * @throws Exception
+     */
+    public void _testException() throws Exception {
+        Dispatch<String> dispatch = getDispatch();
+        String request = XML_TEXT_NPE;
+        TestLogger.logger.debug("Request  = " + request);
+        String response = dispatch.invoke(request);
+        TestLogger.logger.debug("Response = " + response);
+        assertTrue(response != null);
+        assertTrue(request.equals(response));
+    }
+}

Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/provider/message/datasource/XMessageDataSourceProvider.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/provider/message/datasource/XMessageDataSourceProvider.java?rev=633234&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/provider/message/datasource/XMessageDataSourceProvider.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/provider/message/datasource/XMessageDataSourceProvider.java Mon Mar  3 10:47:38 2008
@@ -0,0 +1,41 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axis2.jaxws.xmlhttp.provider.message.datasource;
+
+import javax.activation.DataSource;
+import javax.xml.ws.BindingType;
+import javax.xml.ws.Provider;
+import javax.xml.ws.Service;
+import javax.xml.ws.ServiceMode;
+import javax.xml.ws.WebServiceProvider;
+import javax.xml.ws.http.HTTPBinding;
+
+/**
+ * Sample XML/HTTP DataSource Provider 
+ */
+@WebServiceProvider(serviceName="XMessageDataSourceProvider")
+@BindingType(HTTPBinding.HTTP_BINDING)
+@ServiceMode(value=Service.Mode.MESSAGE)
+public class XMessageDataSourceProvider implements Provider<DataSource> {
+
+    public DataSource invoke(DataSource input) {
+        return input;
+    }
+
+}

Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/provider/message/source/XMessageSourceProvider.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/provider/message/source/XMessageSourceProvider.java?rev=633234&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/provider/message/source/XMessageSourceProvider.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/provider/message/source/XMessageSourceProvider.java Mon Mar  3 10:47:38 2008
@@ -0,0 +1,41 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axis2.jaxws.xmlhttp.provider.message.source;
+
+import javax.xml.transform.Source;
+import javax.xml.ws.BindingType;
+import javax.xml.ws.Provider;
+import javax.xml.ws.Service;
+import javax.xml.ws.ServiceMode;
+import javax.xml.ws.WebServiceProvider;
+import javax.xml.ws.http.HTTPBinding;
+
+/**
+ * Sample XML/HTTP String Provider 
+ */
+@WebServiceProvider(serviceName="XMessageSourceProvider")
+@BindingType(HTTPBinding.HTTP_BINDING)
+@ServiceMode(value=Service.Mode.MESSAGE)
+public class XMessageSourceProvider implements Provider<Source> {
+
+    public Source invoke(Source input) {
+        return input;
+    }
+
+}

Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/provider/message/string/XMessageStringProvider.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/provider/message/string/XMessageStringProvider.java?rev=633234&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/provider/message/string/XMessageStringProvider.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/provider/message/string/XMessageStringProvider.java Mon Mar  3 10:47:38 2008
@@ -0,0 +1,43 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axis2.jaxws.xmlhttp.provider.message.string;
+
+import javax.xml.ws.BindingType;
+import javax.xml.ws.Provider;
+import javax.xml.ws.Service;
+import javax.xml.ws.ServiceMode;
+import javax.xml.ws.WebServiceProvider;
+import javax.xml.ws.http.HTTPBinding;
+
+/**
+ * Sample XML/HTTP String Provider 
+ */
+@WebServiceProvider(serviceName="XMessageStringProvider")
+@BindingType(HTTPBinding.HTTP_BINDING)
+@ServiceMode(value=Service.Mode.MESSAGE)
+public class XMessageStringProvider implements Provider<String> {
+
+    public String invoke(String input) {
+        if (input.contains("NPE")) {
+            throw new NullPointerException("NPE Thrown!");
+        }
+        return input;
+    }
+
+}

Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/provider/payload/source/XPayloadSourceProvider.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/provider/payload/source/XPayloadSourceProvider.java?rev=633234&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/provider/payload/source/XPayloadSourceProvider.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/provider/payload/source/XPayloadSourceProvider.java Mon Mar  3 10:47:38 2008
@@ -0,0 +1,38 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axis2.jaxws.xmlhttp.provider.payload.source;
+
+import javax.xml.transform.Source;
+import javax.xml.ws.BindingType;
+import javax.xml.ws.Provider;
+import javax.xml.ws.WebServiceProvider;
+import javax.xml.ws.http.HTTPBinding;
+
+/**
+ * Sample XML/HTTP String Provider 
+ */
+@WebServiceProvider(serviceName="XPayloadSourceProvider")
+@BindingType(HTTPBinding.HTTP_BINDING)
+public class XPayloadSourceProvider implements Provider<Source> {
+
+    public Source invoke(Source input) {
+        return input;
+    }
+
+}

Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/provider/payload/string/XPayloadStringProvider.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/provider/payload/string/XPayloadStringProvider.java?rev=633234&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/provider/payload/string/XPayloadStringProvider.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/xmlhttp/provider/payload/string/XPayloadStringProvider.java Mon Mar  3 10:47:38 2008
@@ -0,0 +1,40 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axis2.jaxws.xmlhttp.provider.payload.string;
+
+import javax.xml.ws.BindingType;
+import javax.xml.ws.Provider;
+import javax.xml.ws.WebServiceProvider;
+import javax.xml.ws.http.HTTPBinding;
+
+/**
+ * Sample XML/HTTP String Provider 
+ */
+@WebServiceProvider(serviceName="XPayloadStringProvider")
+@BindingType(HTTPBinding.HTTP_BINDING)
+public class XPayloadStringProvider implements Provider<String> {
+
+    public String invoke(String input) {
+        if (input.contains("NPE")) {
+            throw new NullPointerException("NPE Thrown!");
+        }
+        return input;
+    }
+
+}

Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/ws/axis2/tests/Echo.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/ws/axis2/tests/Echo.java?rev=633234&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/ws/axis2/tests/Echo.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/ws/axis2/tests/Echo.java Mon Mar  3 10:47:38 2008
@@ -0,0 +1,80 @@
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.ws.axis2.tests;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for echo complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="echo">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="text" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "echo", propOrder = {
+    "text"
+})
+public class Echo {
+
+    @XmlElement(required = true, nillable = true)
+    protected String text;
+
+    /**
+     * Gets the value of the text property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getText() {
+        return text;
+    }
+
+    /**
+     * Sets the value of the text property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setText(String value) {
+        this.text = value;
+    }
+
+}

Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/ws/axis2/tests/EchoPort.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/ws/axis2/tests/EchoPort.java?rev=633234&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/ws/axis2/tests/EchoPort.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/ws/axis2/tests/EchoPort.java Mon Mar  3 10:47:38 2008
@@ -0,0 +1,52 @@
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.ws.axis2.tests;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebParam.Mode;
+import javax.jws.WebService;
+import javax.xml.ws.Holder;
+import javax.xml.ws.RequestWrapper;
+import javax.xml.ws.ResponseWrapper;
+
+
+/**
+ * This class was generated by the JAXWS SI.
+ * JAX-WS RI 2.0-b26-ea3
+ * Generated source version: 2.0
+ * 
+ */
+@WebService(name = "EchoPort", targetNamespace = "http://ws.apache.org/axis2/tests", wsdlLocation = "\\work\\apps\\eclipse\\workspace\\axis2-live\\modules\\jaxws\\test-resources\\wsdl\\WSDLTests.wsdl")
+public interface EchoPort {
+
+
+    /**
+     * 
+     * @param text
+     */
+    @WebMethod(operationName = "Echo", action = "http://ws.apache.org/axis2/tests/echo")
+    @RequestWrapper(localName = "Echo", targetNamespace = "http://ws.apache.org/axis2/tests", className = "org.apache.ws.axis2.tests.Echo")
+    @ResponseWrapper(localName = "EchoResponse", targetNamespace = "http://ws.apache.org/axis2/tests", className = "org.apache.ws.axis2.tests.EchoResponse")
+    public void echo(
+        @WebParam(name = "text", targetNamespace = "", mode = Mode.INOUT)
+        Holder<String> text);
+
+}

Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/ws/axis2/tests/EchoResponse.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/ws/axis2/tests/EchoResponse.java?rev=633234&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/ws/axis2/tests/EchoResponse.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/ws/axis2/tests/EchoResponse.java Mon Mar  3 10:47:38 2008
@@ -0,0 +1,80 @@
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.ws.axis2.tests;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for echoResponse complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="echoResponse">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="text" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "echoResponse", propOrder = {
+    "text"
+})
+public class EchoResponse {
+
+    @XmlElement(required = true, nillable = true)
+    protected String text;
+
+    /**
+     * Gets the value of the text property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getText() {
+        return text;
+    }
+
+    /**
+     * Sets the value of the text property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setText(String value) {
+        this.text = value;
+    }
+
+}

Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/ws/axis2/tests/EchoService.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/ws/axis2/tests/EchoService.java?rev=633234&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/ws/axis2/tests/EchoService.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/ws/axis2/tests/EchoService.java Mon Mar  3 10:47:38 2008
@@ -0,0 +1,73 @@
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.ws.axis2.tests;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebEndpoint;
+import javax.xml.ws.WebServiceClient;
+
+/**
+ * This class was generated by the JAXWS SI.
+ * JAX-WS RI 2.0-b26-ea3
+ * Generated source version: 2.0
+ * 
+ */
+@WebServiceClient(name = "EchoService", targetNamespace = "http://ws.apache.org/axis2/tests", wsdlLocation = "\\work\\apps\\eclipse\\workspace\\axis2-live\\modules\\jaxws\\test-resources\\wsdl\\WSDLTests.wsdl")
+public class EchoService
+    extends Service
+{
+
+    private final static URL WSDL_LOCATION;
+    private final static QName ECHOSERVICE = new QName("http://ws.apache.org/axis2/tests", "EchoService");
+    private final static QName ECHOPORT = new QName("http://ws.apache.org/axis2/tests", "EchoPort");
+
+    static {
+        URL url = null;
+        try {
+            url = new URL("file:/C:/work/apps/eclipse/workspace/axis2-live/modules/jaxws/test-resources/wsdl/WSDLTests.wsdl");
+        } catch (MalformedURLException e) {
+            e.printStackTrace();
+        }
+        WSDL_LOCATION = url;
+    }
+
+    public EchoService(URL wsdlLocation, QName serviceName) {
+        super(wsdlLocation, serviceName);
+    }
+
+    public EchoService() {
+        super(WSDL_LOCATION, ECHOSERVICE);
+    }
+
+    /**
+     * 
+     * @return
+     *     returns EchoPort
+     */
+    @WebEndpoint(name = "EchoPort")
+    public EchoPort getEchoPort() {
+        return (EchoPort)super.getPort(ECHOPORT, EchoPort.class);
+    }
+
+}

Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/ws/axis2/tests/EchoServiceImplWithSEI.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/ws/axis2/tests/EchoServiceImplWithSEI.java?rev=633234&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/ws/axis2/tests/EchoServiceImplWithSEI.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/ws/axis2/tests/EchoServiceImplWithSEI.java Mon Mar  3 10:47:38 2008
@@ -0,0 +1,36 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+
+package org.apache.ws.axis2.tests;
+
+import javax.jws.WebService;
+import javax.xml.ws.Holder;
+
+/**
+ * 
+ */
+@WebService(serviceName = "EchoService", endpointInterface="org.apache.ws.axis2.tests.EchoPort")
+public class EchoServiceImplWithSEI {
+    // TODO: Test all conditions in JSR-181 spec Sec 3.1 p13
+    public void echo(Holder<String> text) {
+        text.value = "Echo " + text.value;
+    }
+
+}

Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/ws/axis2/tests/ObjectFactory.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/ws/axis2/tests/ObjectFactory.java?rev=633234&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/ws/axis2/tests/ObjectFactory.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/ws/axis2/tests/ObjectFactory.java Mon Mar  3 10:47:38 2008
@@ -0,0 +1,89 @@
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.ws.axis2.tests;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlElementDecl;
+import javax.xml.bind.annotation.XmlRegistry;
+import javax.xml.namespace.QName;
+
+
+/**
+ * This object contains factory methods for each 
+ * Java content interface and Java element interface 
+ * generated in the org.apache.ws.axis2.tests package. 
+ * <p>An ObjectFactory allows you to programatically 
+ * construct new instances of the Java representation 
+ * for XML content. The Java representation of XML 
+ * content can consist of schema derived interfaces 
+ * and classes representing the binding of schema 
+ * type definitions, element declarations and model 
+ * groups.  Factory methods for each of these are 
+ * provided in this class.
+ * 
+ */
+@XmlRegistry
+public class ObjectFactory {
+
+    private final static QName _EchoResponse_QNAME = new QName("http://ws.apache.org/axis2/tests", "EchoResponse");
+    private final static QName _Echo_QNAME = new QName("http://ws.apache.org/axis2/tests", "Echo");
+
+    /**
+     * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.apache.ws.axis2.tests
+     * 
+     */
+    public ObjectFactory() {
+    }
+
+    /**
+     * Create an instance of {@link EchoResponse }
+     * 
+     */
+    public EchoResponse createEchoResponse() {
+        return new EchoResponse();
+    }
+
+    /**
+     * Create an instance of {@link Echo }
+     * 
+     */
+    public Echo createEcho() {
+        return new Echo();
+    }
+
+    /**
+     * Create an instance of {@link JAXBElement }{@code <}{@link EchoResponse }{@code >}}
+     * 
+     */
+    @XmlElementDecl(namespace = "http://ws.apache.org/axis2/tests", name = "EchoResponse")
+    public JAXBElement<EchoResponse> createEchoResponse(EchoResponse value) {
+        return new JAXBElement<EchoResponse>(_EchoResponse_QNAME, EchoResponse.class, null, value);
+    }
+
+    /**
+     * Create an instance of {@link JAXBElement }{@code <}{@link Echo }{@code >}}
+     * 
+     */
+    @XmlElementDecl(namespace = "http://ws.apache.org/axis2/tests", name = "Echo")
+    public JAXBElement<Echo> createEcho(Echo value) {
+        return new JAXBElement<Echo>(_Echo_QNAME, Echo.class, null, value);
+    }
+
+}

Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/ws/axis2/tests/package-info.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/ws/axis2/tests/package-info.java?rev=633234&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/ws/axis2/tests/package-info.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/ws/axis2/tests/package-info.java Mon Mar  3 10:47:38 2008
@@ -0,0 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+@javax.xml.bind.annotation.XmlSchema(namespace = "http://ws.apache.org/axis2/tests")
+package org.apache.ws.axis2.tests;

Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/server/EchoServiceMessageReceiverInOut.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/server/EchoServiceMessageReceiverInOut.java?rev=633234&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/server/EchoServiceMessageReceiverInOut.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/server/EchoServiceMessageReceiverInOut.java Mon Mar  3 10:47:38 2008
@@ -0,0 +1,180 @@
+
+
+        /*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+        /**
+         * EchoServiceMessageReceiverInOut.java
+         *
+         * This file was auto-generated from WSDL
+         * by the Apache Axis2 version: SNAPSHOT Apr 09, 2006 (10:20:36 CDT)
+         */
+        package server;
+
+        /**
+         *  EchoServiceMessageReceiverInOut message receiver
+         */
+
+        public class EchoServiceMessageReceiverInOut extends org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver{
+
+
+        public void invokeBusinessLogic(org.apache.axis2.context.MessageContext msgContext, org.apache.axis2.context.MessageContext newMsgContext)
+        throws org.apache.axis2.AxisFault{
+
+        try {
+
+        // get the implementation class for the Web Service
+        Object obj = getTheImplementationObject(msgContext);
+
+        //Inject the Message Context if it is asked for
+        //org.apache.axis2.engine.DependencyManager.configureBusinessLogicProvider(obj, msgContext.getOperationContext());
+
+        EchoServiceSkeleton skel = (EchoServiceSkeleton)obj;
+        //Out Envelop
+        org.apache.axiom.soap.SOAPEnvelope envelope = null;
+        //Find the axisOperation that has been set by the Dispatch phase.
+        org.apache.axis2.description.AxisOperation op = msgContext.getOperationContext().getAxisOperation();
+        if (op == null) {
+        throw new org.apache.axis2.AxisFault("Operation is not located, if this is doclit style the SOAP-ACTION should specified via the SOAP Action to use the RawXMLProvider");
+        }
+
+        String methodName;
+        if(op.getName() != null & (methodName = op.getName().getLocalPart()) != null){
+
+        
+
+
+            if("echoString".equals(methodName)){
+
+
+            server.EchoStringResponse param3 = null;
+            
+                    //doc style
+                    param3 =skel.echoString(
+                            (server.EchoString)fromOM(msgContext.getEnvelope().getBody().getFirstElement(), server.EchoString.class));
+                        
+                        envelope = toEnvelope(getSOAPFactory(msgContext), param3, false);
+                      
+
+            }
+        
+
+        newMsgContext.setEnvelope(envelope);
+       }
+        
+                    
+                    }
+            
+            catch (Exception e) {
+              throw org.apache.axis2.AxisFault.makeFault(e);
+            }
+        }
+         
+        //
+                    private  org.apache.axiom.om.OMElement  toOM(server.EchoString param, boolean optimizeContent){
+                        if (param instanceof org.apache.axis2.databinding.ADBBean){
+                            org.apache.axiom.om.impl.builder.StAXOMBuilder builder
+                                       = new org.apache.axiom.om.impl.builder.StAXOMBuilder
+                            (org.apache.axiom.om.OMAbstractFactory.getOMFactory(),
+                               new org.apache.axis2.util.StreamWrapper(param.getPullParser(server.EchoString.MY_QNAME)));
+                            org.apache.axiom.om.OMElement documentElement = builder.getDocumentElement();
+                            ((org.apache.axiom.om.impl.OMNodeEx) documentElement).setParent(null); // remove the parent link
+                            return documentElement;
+                        }else{
+                           
+                           //todo finish this onece the bean serializer has the necessary methods
+                            return null;
+                        }
+                    }
+
+                    private  org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, server.EchoString param, boolean optimizeContent){
+                        if (param instanceof org.apache.axis2.databinding.ADBBean){
+                            org.apache.axis2.databinding.ADBSOAPModelBuilder builder = new
+                                    org.apache.axis2.databinding.ADBSOAPModelBuilder(param.getPullParser(server.EchoString.MY_QNAME),
+                                                                                     factory);
+                            return builder.getEnvelope();
+                        }else{
+                           
+                           //todo finish this onece the bean serializer has the necessary methods
+                            return null;
+                        }
+                    }
+                
+                    private  org.apache.axiom.om.OMElement  toOM(server.EchoStringResponse param, boolean optimizeContent){
+                        if (param instanceof org.apache.axis2.databinding.ADBBean){
+                            org.apache.axiom.om.impl.builder.StAXOMBuilder builder
+                                       = new org.apache.axiom.om.impl.builder.StAXOMBuilder
+                            (org.apache.axiom.om.OMAbstractFactory.getOMFactory(),
+                               new org.apache.axis2.util.StreamWrapper(param.getPullParser(server.EchoStringResponse.MY_QNAME)));
+                            org.apache.axiom.om.OMElement documentElement = builder.getDocumentElement();
+                            ((org.apache.axiom.om.impl.OMNodeEx) documentElement).setParent(null); // remove the parent link
+                            return documentElement;
+                        }else{
+                           
+                           //todo finish this onece the bean serializer has the necessary methods
+                            return null;
+                        }
+                    }
+
+                    private  org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, server.EchoStringResponse param, boolean optimizeContent){
+                        if (param instanceof org.apache.axis2.databinding.ADBBean){
+                            org.apache.axis2.databinding.ADBSOAPModelBuilder builder = new
+                                    org.apache.axis2.databinding.ADBSOAPModelBuilder(param.getPullParser(server.EchoStringResponse.MY_QNAME),
+                                                                                     factory);
+                            return builder.getEnvelope();
+                        }else{
+                           
+                           //todo finish this onece the bean serializer has the necessary methods
+                            return null;
+                        }
+                    }
+                
+
+           /**
+           *  get the default envelope
+           */
+           private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory){
+                return factory.getDefaultEnvelope();
+           }
+
+
+            private  java.lang.Object fromOM(org.apache.axiom.om.OMElement param,
+            java.lang.Class type){
+
+                try {
+                       
+                      if (server.EchoString.class.equals(type)){
+                           return server.EchoString.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                      }
+                              
+                      if (server.EchoStringResponse.class.equals(type)){
+                           return server.EchoStringResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                      }
+                              
+                } catch (Exception e) {
+                     throw new RuntimeException(e);
+                }
+
+                return null;
+            }
+
+        
+
+        }
+    
\ No newline at end of file

Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/server/EchoServiceSkeleton.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/server/EchoServiceSkeleton.java?rev=633234&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/server/EchoServiceSkeleton.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/server/EchoServiceSkeleton.java Mon Mar  3 10:47:38 2008
@@ -0,0 +1,51 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/**
+ * EchoServiceSkeleton.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis2 version: SNAPSHOT Apr 09, 2006 (10:20:36 CDT)
+ */
+package server;
+
+import org.apache.axis2.jaxws.TestLogger;
+
+/**
+ *  EchoServiceSkeleton java skeleton for the axisService
+ */
+public class EchoServiceSkeleton {
+
+    /**
+     * Auto generated method signature
+     * @param param0
+     */
+    public  server.EchoStringResponse echoString(server.EchoString input) {
+        TestLogger.logger
+                .debug(">> Entering method [EchoStringResponse EchoServiceSkeleton.echoString(EchoString)]");
+        TestLogger.logger.debug(">> Endpoint received input [" + input.getInput() + "]");
+        TestLogger.logger.debug(">> Returning string [ECHO:" + input.getInput() + "]");
+        TestLogger.logger
+                .debug("<< Done with method [EchoStringResponse EchoServiceSkeleton.echoString(EchoString)]");
+        EchoStringResponse output = new EchoStringResponse();
+        output.setEchoStringReturn("ECHO:" + input.getInput());
+        return output;
+    }
+}
+    
\ No newline at end of file

Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/server/EchoString.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/server/EchoString.java?rev=633234&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/server/EchoString.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/server/EchoString.java Mon Mar  3 10:47:38 2008
@@ -0,0 +1,177 @@
+
+            /*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+            /**
+            * EchoString.java
+            *
+            * This file was auto-generated from WSDL
+            * by the Apache Axis2 version: #axisVersion# #today#
+            */
+
+            package server;
+
+            import org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter;
+            import org.apache.axis2.databinding.ADBException;
+            import org.apache.axiom.om.OMFactory;
+
+            import javax.xml.namespace.QName;
+            import javax.xml.stream.XMLStreamException;
+
+            /**
+            *  EchoString bean class
+            */
+
+            public  class EchoString
+        implements org.apache.axis2.databinding.ADBBean{
+
+                public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
+                "http://test",
+                "echoString",
+                "ns1");
+
+
+
+
+            /**
+            * field for Input
+            */
+
+            protected java.lang.String localInput ;
+
+
+
+           /**
+           * Auto generated getter method
+           * @return java.lang.String
+           */
+           public  java.lang.String getInput() {
+               if (localInput.equals("THROW EXCEPTION"))
+                   throw new RuntimeException("test exception");
+               return localInput;
+           }
+
+
+
+                    /**
+                   * Auto generated setter method
+                   * @param param Input
+                   */
+                   public void setInput(java.lang.String param){
+
+                   this.localInput=param;
+                   }
+
+
+        /**
+        * databinding method to get an XML representation of this object
+        *
+        */
+        public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName){
+
+
+
+                 java.util.ArrayList elementList = new java.util.ArrayList();
+                 java.util.ArrayList attribList = new java.util.ArrayList();
+
+
+                             elementList.add(new javax.xml.namespace.QName("http://test",
+                                                                      "input"));
+
+                                    elementList.add(localInput==null?null:
+                                     org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localInput));
+
+
+                return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
+
+
+
+        }
+
+                public void serialize(final QName parentQName,
+                                      final OMFactory factory,
+                                      MTOMAwareXMLStreamWriter xmlWriter)
+                        throws XMLStreamException, ADBException {
+                    serialize(parentQName, factory, xmlWriter, false);
+                }
+
+                public void serialize(final QName parentQName,
+                                      final OMFactory factory,
+                                      MTOMAwareXMLStreamWriter xmlWriter,
+                                      boolean serializeType)
+                        throws XMLStreamException, ADBException {
+                    throw new UnsupportedOperationException("Un implemented method");
+                }
+
+
+
+
+
+
+        /**
+             *  Factory class that keeps the parse method
+             */
+        public static class Factory{
+
+               /**
+               * static method to create the object
+               */
+               public static EchoString parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
+               EchoString object = new EchoString();
+               try {
+               int event = reader.getEventType();
+
+              //event better be a START_ELEMENT. if not we should go up to the start element here
+               while (event!= javax.xml.stream.XMLStreamReader.START_ELEMENT) {
+                   event = reader.next();
+               }
+
+
+               if (!MY_QNAME.equals(reader.getName())){
+                           throw new Exception("Wrong QName");
+               }
+
+                       org.apache.axis2.databinding.utils.SimpleElementReaderStateMachine stateMachine1
+                         = new org.apache.axis2.databinding.utils.SimpleElementReaderStateMachine();
+                       javax.xml.namespace.QName startQname1 = new javax.xml.namespace.QName(
+                                            "http://test",
+                                           "input");
+                       stateMachine1.setElementNameToTest(startQname1);
+                       stateMachine1.setNillable();
+                       stateMachine1.read(reader);
+                       object.setInput(
+                         stateMachine1.getText()==null?null:
+                                    org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+                                  stateMachine1.getText()));
+
+               } catch (javax.xml.stream.XMLStreamException e) {
+                    throw new java.lang.Exception(e);
+               }
+
+               return object;
+               }
+               }//end of factory class
+
+
+
+
+
+        }
+           
+          
\ No newline at end of file

Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/server/EchoStringResponse.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/server/EchoStringResponse.java?rev=633234&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/server/EchoStringResponse.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/server/EchoStringResponse.java Mon Mar  3 10:47:38 2008
@@ -0,0 +1,151 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/**
+ * EchoStringResponse.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis2 version: #axisVersion# #today#
+ */
+package server;
+
+import org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter;
+import org.apache.axis2.databinding.ADBException;
+import org.apache.axiom.om.OMFactory;
+import javax.xml.namespace.QName;
+import javax.xml.stream.XMLStreamException;
+
+/**
+ *  EchoStringResponse bean class
+ */
+public  class EchoStringResponse implements org.apache.axis2.databinding.ADBBean{
+
+    public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
+            "http://test",
+            "echoStringResponse",
+            "ns1");
+
+    /**
+     * field for EchoStringReturn
+     */
+    protected java.lang.String localEchoStringReturn;
+
+    /**
+     * Auto generated getter method
+     * @return java.lang.String
+     */
+    public java.lang.String getEchoStringReturn() {
+        return localEchoStringReturn;
+    }
+
+    /**
+     * Auto generated setter method
+     * @param param EchoStringReturn
+     */
+    public void setEchoStringReturn(java.lang.String param) {
+
+        this.localEchoStringReturn = param;
+    }
+
+    /**
+     * databinding method to get an XML representation of this object
+     *
+     */
+    public javax.xml.stream.XMLStreamReader getPullParser(
+            javax.xml.namespace.QName qName) {
+
+        java.util.ArrayList elementList = new java.util.ArrayList();
+        java.util.ArrayList attribList = new java.util.ArrayList();
+
+        elementList.add(new javax.xml.namespace.QName("http://test",
+                "echoStringReturn"));
+
+        elementList.add(localEchoStringReturn == null ? null
+                : org.apache.axis2.databinding.utils.ConverterUtil
+                        .convertToString(localEchoStringReturn));
+
+        return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(
+                qName, elementList.toArray(), attribList.toArray());
+
+    }
+
+    public void serialize(final QName parentQName,
+                          final OMFactory factory,
+                          MTOMAwareXMLStreamWriter xmlWriter)
+            throws XMLStreamException, ADBException {
+        serialize(parentQName, factory, xmlWriter, false);
+    }
+
+    public void serialize(final QName parentQName,
+                          final OMFactory factory,
+                          MTOMAwareXMLStreamWriter xmlWriter,
+                          boolean serializeType)
+            throws XMLStreamException, ADBException {
+        throw new UnsupportedOperationException("Un implemented method");
+    }
+
+    /**
+     *  Factory class that keeps the parse method
+     */
+    public static class Factory {
+
+        /**
+         * static method to create the object
+         */
+
+        public static EchoStringResponse parse(
+                javax.xml.stream.XMLStreamReader reader)
+                throws java.lang.Exception {
+            EchoStringResponse object = new EchoStringResponse();
+            try {
+                int event = reader.getEventType();
+
+                //event better be a START_ELEMENT. if not we should go up to the start element here
+                while (event != javax.xml.stream.XMLStreamReader.START_ELEMENT) {
+                    event = reader.next();
+                }
+
+                if (!MY_QNAME.equals(reader.getName())) {
+                    throw new Exception("Wrong QName");
+                }
+
+                org.apache.axis2.databinding.utils.SimpleElementReaderStateMachine stateMachine1 = new org.apache.axis2.databinding.utils.SimpleElementReaderStateMachine();
+                javax.xml.namespace.QName startQname1 = new javax.xml.namespace.QName(
+                        "http://test", "echoStringReturn");
+                stateMachine1.setElementNameToTest(startQname1);
+                stateMachine1.setNillable();
+                stateMachine1.read(reader);
+                object
+                        .setEchoStringReturn(stateMachine1.getText() == null ? null
+                                : org.apache.axis2.databinding.utils.ConverterUtil
+                                        .convertToString(stateMachine1
+                                                .getText().getBytes()));
+
+            } catch (javax.xml.stream.XMLStreamException e) {
+                throw new java.lang.Exception(e);
+            }
+
+            return object;
+        }
+
+    }//end of factory class
+
+}
+           
+          
\ No newline at end of file

Modified: webservices/axis2/trunk/java/modules/jaxws/pom.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/pom.xml?rev=633234&r1=633233&r2=633234&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/pom.xml (original)
+++ webservices/axis2/trunk/java/modules/jaxws/pom.xml Mon Mar  3 10:47:38 2008
@@ -216,6 +216,13 @@
 									<classpath location="${compiled.classes.dir}"/>
 									<arg line="-d ${schema.generated.src.dir} -quiet -p org.test.proxy.doclitwrapped -quiet -wsdl ${wsdl.source.dir}/ProxyDocLitWrapped.wsdl"/>
 								</java>
+								<echo>Generating java from AddNumbers.wsdl</echo>
+								<java classname="com.sun.tools.xjc.Driver" fork="true">
+									<classpath refid="maven.runtime.classpath"/>
+									<classpath location="${compiled.classes.dir}"/>
+									<arg line="-d ${schema.generated.src.dir} -quiet -wsdl ${wsdl.source.dir}/AddNumbers.wsdl"/>
+								</java>
+<!-- 
 								<echo>Generating java from ProxyDocLitnonWrapped.wsdl</echo>
 								<java classname="com.sun.tools.xjc.Driver" fork="true">
 									<classpath refid="maven.runtime.classpath"/>
@@ -252,12 +259,6 @@
 									<classpath location="${compiled.classes.dir}"/>
 									<arg line="-d ${schema.generated.src.dir} -quiet -wsdl ${wsdl.source.dir}/SOAP12Echo.wsdl"/>
 								</java>
-								<echo>Generating java from AddNumbers.wsdl</echo>
-								<java classname="com.sun.tools.xjc.Driver" fork="true">
-									<classpath refid="maven.runtime.classpath"/>
-									<classpath location="${compiled.classes.dir}"/>
-									<arg line="-d ${schema.generated.src.dir} -quiet -wsdl ${wsdl.source.dir}/AddNumbers.wsdl"/>
-								</java>
     	<echo>Generating java from AddNumbersHandler.wsdl</echo>
     	<java classname="com.sun.tools.xjc.Driver" fork="true"> 
     	    <classpath refid="maven.runtime.classpath"/>
@@ -373,6 +374,7 @@
 									<classpath location="${compiled.classes.dir}"/>
 									<arg line="-d ${schema.generated.src.dir} -quiet -wsdl ${wsdl.source.dir}/rpclitstringarray.wsdl"/>
 								</java>
+-->
 							</tasks>
 						</configuration>
 						<goals>
@@ -384,6 +386,7 @@
 						<phase>test-compile</phase>
 						<configuration>
 							<tasks>
+<!--
 								<mkdir dir="./target/test-classes/servicejars"/>
 								<copy toDir="target/test-classes/services/EchoService/">
 									<fileset dir="target/test-classes">
@@ -393,9 +396,6 @@
 										<exclude name="**/*.java"/>
 									</fileset>
 								</copy>
-								<!-- ================================================================ -->
-								<!--- Provider endpoint Service Samples -->
-								<!-- ================================================================ -->
 								<copy toDir="target/test-classes/servicejars/WSGenService/">
 									<fileset dir="target/test-classes">
 										<include name="org/apache/axis2/jaxws/sample/wsgen/WSGenInterface.class"/>
@@ -418,12 +418,6 @@
 										<include name="org/apache/axis2/jaxws/security/server/**"/>
 										<exclude name="org/apache/axis2/jaxws/security/server/META-INF/services.xml"/>
 									</fileset>
-<!--
-									<fileset dir="test/org/apache/axis2/jaxws/security/server">
-										<include name="META-INF/**"/>
-										<exclude name="META-INF/services.xml"/>
-									</fileset>
--->
 								</copy>
 
 								<zip destfile="target/test-classes/servicejars/BasicAuthSecurityService.jar"
@@ -581,9 +575,6 @@
 								/>
 								<delete dir="target/test-classes/servicejars/SOAP12Service"/>														
 								
-								<!-- ================================================================ -->
-								<!--- Proxy endpoint Service Samples -->
-								<!-- ================================================================ -->
 								<copy toDir="target/test-classes/servicejars/ProxyDocLitWrapped/">
 									<fileset dir="target/test-classes">
 										<include name="org/apache/axis2/jaxws/proxy/doclitwrapped/**"/>
@@ -689,9 +680,6 @@
 								/>
 								<delete dir="target/test-classes/servicejars/gorilla_dlw"/>								
 								
-								<!-- ================================================================ -->
-								<!--- XML HTTP Tests -->
-								<!-- ================================================================ -->
 								<copy toDir="target/test-classes/servicejars/XPayloadStringProvider/">
 									<fileset dir="target/test-classes">
 										<include name="org/apache/axis2/jaxws/xmlhttp/provider/payload/string/*.class"/>
@@ -767,9 +755,6 @@
 								/>
 								<delete dir="target/test-classes/servicejars/XMessageDataSourceProvider"/>
 	
-								<!-- ================================================================ -->
-								<!--- Java Bean Endpoint Samples -->
-								<!-- ================================================================ -->
 								<copy toDir="target/test-classes/servicejars/AddressBookService/">
 									<fileset dir="target/test-classes">
 										<include name="org/apache/axis2/jaxws/sample/addressbook/**"/>
@@ -1033,7 +1018,7 @@
 									basedir="${pom.basedir}/target/test-classes/servicejars/RPCLitStringArrayService"
 								/>
 								<delete dir="target/test-classes/servicejars/RPCLitStringArrayService"/>								
-
+-->
 								<copy toDir="target/test-classes/">
 									<fileset dir="test-resources/">
 										<include name="**/*.properties"/>
@@ -1077,6 +1062,7 @@
                     <argLine>-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5006</argLine>-->
 					<includes>
 						<include>**/*Test.java</include>
+						<include>**/*Tests.java</include>
 					</includes>
 					<systemProperties>
 						<property>



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message