You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sc...@apache.org on 2007/01/20 05:09:04 UTC
svn commit: r498065 - in /webservices/axis2/trunk/java/modules/jaxws: ./
test-resources/wsdl/ test/org/apache/axis2/jaxws/framework/
test/org/apache/axis2/jaxws/sample/ test/org/apache/axis2/jaxws/sample/wsgen/
test/org/apache/axis2/jaxws/sample/wsgen/...
Author: scheu
Date: Fri Jan 19 20:09:03 2007
New Revision: 498065
URL: http://svn.apache.org/viewvc?view=rev&rev=498065
Log:
AXIS2-1995
Contributor:Mike Rheinheimer
Added additional WSGen tests. These force a different flow (no ObjectFactory classes, defaults for missing annotations)
Added:
webservices/axis2/trunk/java/modules/jaxws/test-resources/wsdl/WSGenService.wsdl
webservices/axis2/trunk/java/modules/jaxws/test-resources/wsdl/WSGenService_schema1.xsd
webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/WSGenTests.java
webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/
webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/META-INF/
webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/META-INF/WSGenService.wsdl
webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/META-INF/WSGenService_schema1.xsd
webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/META-INF/services.xml
webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/WSGenImpl.java
webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/WSGenInterface.java
webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/client/
webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/client/WSGenImpl.java
webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/client/WSGenInterface.java
webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/client/WSGenService.java
webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/jaxws/
webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/jaxws/EchoString.java
webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/jaxws/EchoStringResponse.java
Modified:
webservices/axis2/trunk/java/modules/jaxws/maven.xml
webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/framework/JAXWSTest.java
Modified: webservices/axis2/trunk/java/modules/jaxws/maven.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/maven.xml?view=diff&rev=498065&r1=498064&r2=498065
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/maven.xml (original)
+++ webservices/axis2/trunk/java/modules/jaxws/maven.xml Fri Jan 19 20:09:03 2007
@@ -404,6 +404,17 @@
<!-- ================================================================ -->
<!--- Java Bean Endpoint Samples -->
<!-- ================================================================ -->
+ <ant:copy toDir="target/test-classes/services/WSGenService/">
+ <ant:fileset dir="target/test-classes">
+ <ant:include name="org/apache/axis2/jaxws/sample/wsgen/WSGenInterface.class"/>
+ <ant:include name="org/apache/axis2/jaxws/sample/wsgen/WSGenImpl.class"/>
+ <ant:include name="org/apache/axis2/jaxws/sample/wsgen/jaxws/**"/>
+ </ant:fileset>
+ <ant:fileset dir="test/org/apache/axis2/jaxws/sample/wsgen">
+ <ant:include name="META-INF/**"/>
+ </ant:fileset>
+ </ant:copy>
+
<ant:copy toDir="target/test-classes/services/AddressBookService/">
<ant:fileset dir="target/test-classes">
<ant:include name="org/apache/axis2/jaxws/sample/addressbook/**"/>
Added: webservices/axis2/trunk/java/modules/jaxws/test-resources/wsdl/WSGenService.wsdl
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test-resources/wsdl/WSGenService.wsdl?view=auto&rev=498065
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test-resources/wsdl/WSGenService.wsdl (added)
+++ webservices/axis2/trunk/java/modules/jaxws/test-resources/wsdl/WSGenService.wsdl Fri Jan 19 20:09:03 2007
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<definitions targetNamespace="http://wsgen.sample.jaxws.axis2.apache.org" name="WSGenService" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://wsgen.sample.jaxws.axis2.apache.org" xmlns="http://schemas.xmlsoap.org/wsdl/">
+ <types>
+ <xsd:schema>
+ <xsd:import namespace="http://wsgen.sample.jaxws.axis2.apache.org" schemaLocation="WSGenService_schema1.xsd"/>
+ </xsd:schema>
+ </types>
+ <message name="echoString">
+ <part name="parameters" element="tns:echoString"/>
+ </message>
+ <message name="echoStringResponse">
+ <part name="parameters" element="tns:echoStringResponse"/>
+ </message>
+ <portType name="WSGenInterface">
+ <operation name="echoString">
+ <input message="tns:echoString"/>
+ <output message="tns:echoStringResponse"/>
+ </operation>
+ </portType>
+ <binding name="WSGenPortBinding" type="tns:WSGenInterface">
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
+ <operation name="echoString">
+ <soap:operation soapAction="urn:EchoString"/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ </operation>
+ </binding>
+ <service name="WSGenService">
+ <port name="WSGenPort" binding="tns:WSGenPortBinding">
+ <soap:address location="http://localhost:8080/axis2/services/WSGenService"/>
+ </port>
+ </service>
+</definitions>
+
Added: webservices/axis2/trunk/java/modules/jaxws/test-resources/wsdl/WSGenService_schema1.xsd
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test-resources/wsdl/WSGenService_schema1.xsd?view=auto&rev=498065
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test-resources/wsdl/WSGenService_schema1.xsd (added)
+++ webservices/axis2/trunk/java/modules/jaxws/test-resources/wsdl/WSGenService_schema1.xsd Fri Jan 19 20:09:03 2007
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<xs:schema version="1.0" targetNamespace="http://wsgen.sample.jaxws.axis2.apache.org" xmlns:xs="http://www.w3.org/2001/XMLSchema">
+
+ <xs:element name="echoString" type="ns1:echoString" xmlns:ns1="http://wsgen.sample.jaxws.axis2.apache.org"/>
+
+ <xs:complexType name="echoString">
+ <xs:sequence>
+ <xs:element name="arg0" type="xs:string" minOccurs="0"/>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:element name="echoStringResponse" type="ns2:echoStringResponse" xmlns:ns2="http://wsgen.sample.jaxws.axis2.apache.org"/>
+
+ <xs:complexType name="echoStringResponse">
+ <xs:sequence>
+ <xs:element name="return" type="xs:string" minOccurs="0"/>
+ </xs:sequence>
+ </xs:complexType>
+</xs:schema>
+
Modified: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/framework/JAXWSTest.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/framework/JAXWSTest.java?view=diff&rev=498065&r1=498064&r2=498065
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/framework/JAXWSTest.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/framework/JAXWSTest.java Fri Jan 19 20:09:03 2007
@@ -68,6 +68,7 @@
import org.apache.axis2.jaxws.sample.MtomSampleTests;
import org.apache.axis2.jaxws.sample.NonWrapTests;
import org.apache.axis2.jaxws.sample.ParallelAsyncTests;
+import org.apache.axis2.jaxws.sample.WSGenTests;
import org.apache.axis2.jaxws.sample.WrapTests;
import org.apache.axis2.jaxws.security.BasicAuthSecurityTests;
@@ -130,6 +131,7 @@
suite.addTestSuite(MtomSampleTests.class);
suite.addTestSuite(BareTests.class);
suite.addTestSuite(NonWrapTests.class);
+ suite.addTestSuite(WSGenTests.class);
suite.addTestSuite(WrapTests.class);
suite.addTestSuite(NonAnonymousComplexTypeTests.class);
suite.addTestSuite(AddNumbersTests.class);
Added: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/WSGenTests.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/WSGenTests.java?view=auto&rev=498065
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/WSGenTests.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/WSGenTests.java Fri Jan 19 20:09:03 2007
@@ -0,0 +1,53 @@
+/*
+ * 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.sample;
+
+import javax.xml.ws.BindingProvider;
+
+import junit.framework.TestCase;
+import org.apache.axis2.jaxws.sample.wsgen.client.WSGenService;
+import org.apache.axis2.jaxws.sample.wsgen.client.WSGenInterface;
+
+public class WSGenTests extends TestCase {
+
+ String axisEndpoint = "http://localhost:8080/axis2/services/WSGenService";
+
+ public void testWSGen() {
+ try{
+ System.out.println("----------------------------------");
+ System.out.println("test: " + getName());
+
+ WSGenService service = new WSGenService();
+ WSGenInterface proxy = service.getWSGenPort();
+
+ BindingProvider p = (BindingProvider)proxy;
+ p.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
+ axisEndpoint);
+ String outString = "this is a wonderful test";
+ String s = proxy.echoString(outString);
+
+ System.out.println("String s = " + s);
+ assertEquals(outString, s);
+ System.out.println("----------------------------------");
+ } catch(Exception e) {
+ e.printStackTrace();
+ fail("We should not get an exception, but we did");
+ }
+ }
+}
Added: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/META-INF/WSGenService.wsdl
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/META-INF/WSGenService.wsdl?view=auto&rev=498065
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/META-INF/WSGenService.wsdl (added)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/META-INF/WSGenService.wsdl Fri Jan 19 20:09:03 2007
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<definitions targetNamespace="http://wsgen.sample.jaxws.axis2.apache.org" name="WSGenService" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://wsgen.sample.jaxws.axis2.apache.org" xmlns="http://schemas.xmlsoap.org/wsdl/">
+ <types>
+ <xsd:schema>
+ <xsd:import namespace="http://wsgen.sample.jaxws.axis2.apache.org" schemaLocation="WSGenService_schema1.xsd"/>
+ </xsd:schema>
+ </types>
+ <message name="echoString">
+ <part name="parameters" element="tns:echoString"/>
+ </message>
+ <message name="echoStringResponse">
+ <part name="parameters" element="tns:echoStringResponse"/>
+ </message>
+ <portType name="WSGenInterface">
+ <operation name="echoString">
+ <input message="tns:echoString"/>
+ <output message="tns:echoStringResponse"/>
+ </operation>
+ </portType>
+ <binding name="WSGenPortBinding" type="tns:WSGenInterface">
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
+ <operation name="echoString">
+ <soap:operation soapAction="urn:EchoString"/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ </operation>
+ </binding>
+ <service name="WSGenService">
+ <port name="WSGenPort" binding="tns:WSGenPortBinding">
+ <soap:address location="http://localhost:8080/axis2/services/WSGenService"/>
+ </port>
+ </service>
+</definitions>
+
Added: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/META-INF/WSGenService_schema1.xsd
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/META-INF/WSGenService_schema1.xsd?view=auto&rev=498065
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/META-INF/WSGenService_schema1.xsd (added)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/META-INF/WSGenService_schema1.xsd Fri Jan 19 20:09:03 2007
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<xs:schema version="1.0" targetNamespace="http://wsgen.sample.jaxws.axis2.apache.org" xmlns:xs="http://www.w3.org/2001/XMLSchema">
+
+ <xs:element name="echoString" type="ns1:echoString" xmlns:ns1="http://wsgen.sample.jaxws.axis2.apache.org"/>
+
+ <xs:complexType name="echoString">
+ <xs:sequence>
+ <xs:element name="arg0" type="xs:string" minOccurs="0"/>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:element name="echoStringResponse" type="ns2:echoStringResponse" xmlns:ns2="http://wsgen.sample.jaxws.axis2.apache.org"/>
+
+ <xs:complexType name="echoStringResponse">
+ <xs:sequence>
+ <xs:element name="return" type="xs:string" minOccurs="0"/>
+ </xs:sequence>
+ </xs:complexType>
+</xs:schema>
+
Added: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/META-INF/services.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/META-INF/services.xml?view=auto&rev=498065
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/META-INF/services.xml (added)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/META-INF/services.xml Fri Jan 19 20:09:03 2007
@@ -0,0 +1,12 @@
+<serviceGroup>
+ <service name="WSGenService">
+ <messageReceivers>
+ <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out" class="org.apache.axis2.jaxws.server.JAXWSMessageReceiver"/>
+ </messageReceivers>
+ <parameter locked="false" name="ServiceClass">org.apache.axis2.jaxws.sample.wsgen.WSGenImpl</parameter>
+ <operation name="invoke" mep="http://www.w3.org/2004/08/wsdl/in-out">
+ <actionMapping/>
+ </operation>
+ </service>
+</serviceGroup>
+
Added: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/WSGenImpl.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/WSGenImpl.java?view=auto&rev=498065
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/WSGenImpl.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/WSGenImpl.java Fri Jan 19 20:09:03 2007
@@ -0,0 +1,23 @@
+package org.apache.axis2.jaxws.sample.wsgen;
+
+// SERVER-SIDE CLASS
+
+import javax.jws.WebService;
+
+@WebService(endpointInterface = "org.apache.axis2.jaxws.sample.wsgen.WSGenInterface",
+ serviceName="WSGenService",
+ portName="WSGenPort",
+ targetNamespace="http://wsgen.sample.jaxws.axis2.apache.org"
+ )
+public class WSGenImpl implements WSGenInterface {
+
+ public WSGenImpl() {
+ super();
+ }
+
+ public String echoString(String arg0) {
+ return arg0;
+
+ }
+
+}
Added: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/WSGenInterface.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/WSGenInterface.java?view=auto&rev=498065
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/WSGenInterface.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/WSGenInterface.java Fri Jan 19 20:09:03 2007
@@ -0,0 +1,36 @@
+
+package org.apache.axis2.jaxws.sample.wsgen;
+
+import javax.jws.WebMethod;
+//import javax.jws.WebParam;
+//import javax.jws.WebResult;
+import javax.jws.WebService;
+//import javax.xml.ws.RequestWrapper;
+//import javax.xml.ws.ResponseWrapper;
+
+
+/**
+ * This class was generated by the JAXWS SI.
+ * JAX-WS RI 2.0_01-b15-fcs
+ * Generated source version: 2.0
+ *
+ */
+@WebService(name = "WSGenInterface", targetNamespace = "http://wsgen.sample.jaxws.axis2.apache.org")
+public interface WSGenInterface {
+
+
+ /**
+ *
+ * @param arg0
+ * @return
+ * returns java.lang.String
+ */
+ @WebMethod(action = "urn:EchoString")
+ //@WebResult(targetNamespace = "")
+ //@RequestWrapper(localName = "echoString", targetNamespace = "http://wsgen.sample.jaxws.axis2.apache.org", className = "org.apache.axis2.jaxws.sample.wsgen.EchoString")
+ //@ResponseWrapper(localName = "echoStringResponse", targetNamespace = "http://wsgen.sample.jaxws.axis2.apache.org", className = "org.apache.axis2.jaxws.sample.wsgen.EchoStringResponse")
+ public String echoString(
+ //@WebParam(name = "arg0", targetNamespace = "")
+ String arg0);
+
+}
Added: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/client/WSGenImpl.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/client/WSGenImpl.java?view=auto&rev=498065
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/client/WSGenImpl.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/client/WSGenImpl.java Fri Jan 19 20:09:03 2007
@@ -0,0 +1,23 @@
+package org.apache.axis2.jaxws.sample.wsgen.client;
+
+// SERVER-SIDE CLASS
+
+import javax.jws.WebService;
+
+@WebService(endpointInterface = "org.apache.axis2.jaxws.sample.wsgen.WSGenInterface",
+ serviceName="WSGenService",
+ portName="WSGenPort",
+ targetNamespace="http://wsgen.sample.jaxws.axis2.apache.org"
+ )
+public class WSGenImpl implements WSGenInterface {
+
+ public WSGenImpl() {
+ super();
+ }
+
+ public String echoString(String arg0) {
+ return arg0;
+
+ }
+
+}
Added: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/client/WSGenInterface.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/client/WSGenInterface.java?view=auto&rev=498065
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/client/WSGenInterface.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/client/WSGenInterface.java Fri Jan 19 20:09:03 2007
@@ -0,0 +1,36 @@
+
+package org.apache.axis2.jaxws.sample.wsgen.client;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.xml.ws.RequestWrapper;
+import javax.xml.ws.ResponseWrapper;
+
+
+/**
+ * This class was generated by the JAXWS SI.
+ * JAX-WS RI 2.0_01-b15-fcs
+ * Generated source version: 2.0
+ *
+ */
+@WebService(name = "WSGenInterface", targetNamespace = "http://wsgen.sample.jaxws.axis2.apache.org")
+public interface WSGenInterface {
+
+
+ /**
+ *
+ * @param arg0
+ * @return
+ * returns java.lang.String
+ */
+ @WebMethod(action = "urn:EchoString")
+ @WebResult(targetNamespace = "")
+ @RequestWrapper(localName = "echoString", targetNamespace = "http://wsgen.sample.jaxws.axis2.apache.org", className = "org.apache.axis2.jaxws.sample.wsgen.jaxws.EchoString")
+ @ResponseWrapper(localName = "echoStringResponse", targetNamespace = "http://wsgen.sample.jaxws.axis2.apache.org", className = "org.apache.axis2.jaxws.sample.wsgen.jaxws.EchoStringResponse")
+ public String echoString(
+ @WebParam(name = "arg0", targetNamespace = "")
+ String arg0);
+
+}
Added: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/client/WSGenService.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/client/WSGenService.java?view=auto&rev=498065
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/client/WSGenService.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/client/WSGenService.java Fri Jan 19 20:09:03 2007
@@ -0,0 +1,64 @@
+
+package org.apache.axis2.jaxws.sample.wsgen.client;
+
+import java.io.File;
+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;
+
+import org.apache.axis2.jaxws.sample.wsgen.client.WSGenInterface;
+
+
+/**
+ * This class was generated by the JAXWS SI.
+ * JAX-WS RI 2.0_01-b15-fcs
+ * Generated source version: 2.0
+ *
+ */
+@WebServiceClient(name = "WSGenService", targetNamespace = "http://wsgen.sample.jaxws.axis2.apache.org", wsdlLocation = "WSGenService.wsdl")
+public class WSGenService
+ extends Service
+{
+
+ private final static URL WSGENSERVICE_WSDL_LOCATION;
+ private static String wsdlLocation="/test/org/apache/axis2/jaxws/sample/wsgen/META-INF/WSGenService.wsdl";
+
+ static {
+ URL url = null;
+ try {
+ try{
+ String baseDir = new File(".").getCanonicalPath();
+ wsdlLocation = new File(baseDir + wsdlLocation).getAbsolutePath();
+ }catch(Exception e){
+ e.printStackTrace();
+ }
+ File file = new File(wsdlLocation);
+ url = file.toURL();
+ } catch (MalformedURLException e) {
+ e.printStackTrace();
+ }
+ WSGENSERVICE_WSDL_LOCATION = url;
+ }
+
+ public WSGenService(URL wsdlLocation, QName serviceName) {
+ super(wsdlLocation, serviceName);
+ }
+
+ public WSGenService() {
+ super(WSGENSERVICE_WSDL_LOCATION, new QName("http://wsgen.sample.jaxws.axis2.apache.org", "WSGenService"));
+ }
+
+ /**
+ *
+ * @return
+ * returns WSGenInterface
+ */
+ @WebEndpoint(name = "WSGenPort")
+ public WSGenInterface getWSGenPort() {
+ return (WSGenInterface)super.getPort(new QName("http://wsgen.sample.jaxws.axis2.apache.org", "WSGenPort"), WSGenInterface.class);
+ }
+
+}
Added: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/jaxws/EchoString.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/jaxws/EchoString.java?view=auto&rev=498065
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/jaxws/EchoString.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/jaxws/EchoString.java Fri Jan 19 20:09:03 2007
@@ -0,0 +1,38 @@
+
+package org.apache.axis2.jaxws.sample.wsgen.jaxws;
+
+// SERVER-SIDE CLASS
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+@XmlRootElement(name = "echoString", namespace = "http://wsgen.sample.jaxws.axis2.apache.org")
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "echoString", namespace = "http://wsgen.sample.jaxws.axis2.apache.org")
+public class EchoString {
+
+ @XmlElement(name = "arg0", namespace = "")
+ private String arg0;
+
+ /**
+ *
+ * @return
+ * returns String
+ */
+ public String getArg0() {
+ return this.arg0;
+ }
+
+ /**
+ *
+ * @param arg0
+ * the value for the arg0 property
+ */
+ public void setArg0(String arg0) {
+ this.arg0 = arg0;
+ }
+
+}
Added: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/jaxws/EchoStringResponse.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/jaxws/EchoStringResponse.java?view=auto&rev=498065
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/jaxws/EchoStringResponse.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/jaxws/EchoStringResponse.java Fri Jan 19 20:09:03 2007
@@ -0,0 +1,38 @@
+
+package org.apache.axis2.jaxws.sample.wsgen.jaxws;
+
+// SERVER-SIDE CLASS
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+@XmlRootElement(name = "echoStringResponse", namespace = "http://wsgen.sample.jaxws.axis2.apache.org")
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "echoStringResponse", namespace = "http://wsgen.sample.jaxws.axis2.apache.org")
+public class EchoStringResponse {
+
+ @XmlElement(name = "return", namespace = "")
+ private String _return;
+
+ /**
+ *
+ * @return
+ * returns String
+ */
+ public String get_return() {
+ return this._return;
+ }
+
+ /**
+ *
+ * @param _return
+ * the value for the _return property
+ */
+ public void set_return(String _return) {
+ this._return = _return;
+ }
+
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org