Author: richard.opalka(a)jboss.com
Date: 2007-10-03 09:35:53 -0400 (Wed, 03 Oct 2007)
New Revision: 4667
Added:
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/GeneratedSourcesTestCase.java
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/HandcodedSourcesTestCase.java
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/Cabin.java
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/ListLocation.java
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/LocationImpl.java
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/ObjectFactory.java
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/PassLocation.java
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/PassLocationResponse.java
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/TechCabin.java
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/TravelAgentBeanService.java
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/TravelAgentEndpoint.java
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/package-info.java
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/handcoded/
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/handcoded/Cabin.java
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/handcoded/ListLocation.java
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/handcoded/Location.java
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/handcoded/LocationImpl.java
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/handcoded/TechCabin.java
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/handcoded/package-info.java
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/service/
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/service/CabinListHandler.java
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/service/TravelAgentBean.java
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/service/TravelAgentEndpoint.java
stack/native/branches/ropalka/trunk/src/test/resources/jaxws/jbws1795/
stack/native/branches/ropalka/trunk/src/test/resources/jaxws/jbws1795/WEB-INF/
stack/native/branches/ropalka/trunk/src/test/resources/jaxws/jbws1795/WEB-INF/web.xml
Modified:
stack/native/branches/ropalka/trunk/ant-import-tests/build-jars-jaxws.xml
Log:
[JBWS-1795] created test case
Modified: stack/native/branches/ropalka/trunk/ant-import-tests/build-jars-jaxws.xml
===================================================================
--- stack/native/branches/ropalka/trunk/ant-import-tests/build-jars-jaxws.xml 2007-10-02
13:48:45 UTC (rev 4666)
+++ stack/native/branches/ropalka/trunk/ant-import-tests/build-jars-jaxws.xml 2007-10-03
13:35:53 UTC (rev 4667)
@@ -368,6 +368,14 @@
</fileset>
</copy>
+ <!-- jaxws-jbws1795 -->
+ <war warfile="${tests.output.dir}/libs/jaxws-jbws1795.war"
webxml="${tests.output.dir}/resources/jaxws/jbws1795/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/classes">
+ <include
name="org/jboss/test/ws/jaxws/jbws1795/service/*.class"/>
+ <include
name="org/jboss/test/ws/jaxws/jbws1795/handcoded/*.class"/>
+ </classes>
+ </war>
+
<!-- jaxws namespace -->
<war warfile="${tests.output.dir}/libs/jaxws-namespace.war"
webxml="${tests.output.dir}/resources/jaxws/namespace/WEB-INF/web.xml">
<classes dir="${tests.output.dir}/classes">
Added:
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/GeneratedSourcesTestCase.java
===================================================================
---
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/GeneratedSourcesTestCase.java
(rev 0)
+++
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/GeneratedSourcesTestCase.java 2007-10-03
13:35:53 UTC (rev 4667)
@@ -0,0 +1,94 @@
+package org.jboss.test.ws.jaxws.jbws1795;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import junit.framework.Test;
+
+import org.jboss.test.ws.jaxws.jbws1795.generated.TravelAgentBeanService;
+import org.jboss.test.ws.jaxws.jbws1795.generated.TravelAgentEndpoint;
+import org.jboss.test.ws.jaxws.jbws1795.generated.ListLocation;
+import org.jboss.test.ws.jaxws.jbws1795.generated.LocationImpl;
+import org.jboss.test.ws.jaxws.jbws1795.generated.Cabin;
+import org.jboss.test.ws.jaxws.jbws1795.generated.TechCabin;
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+public class GeneratedSourcesTestCase extends JBossWSTest
+{
+
+ private TravelAgentEndpoint tae = null;
+
+ public static Test suite()
+ {
+ return new JBossWSTestSetup(GeneratedSourcesTestCase.class,
"jaxws-jbws1795.war");
+ }
+
+ @Override
+ protected void setUp() throws Exception
+ {
+ TravelAgentBeanService travelAgentBeanService = new TravelAgentBeanService();
+ tae = travelAgentBeanService.getTravelAgentBeanPort();
+ }
+
+ public void testInvocation() throws Exception
+ {
+
+ ListLocation locListIn = new ListLocation();
+ ListLocation locListOut = new ListLocation();
+ List<LocationImpl> list = new ArrayList<LocationImpl>();
+
+ Cabin cabin_1 = new Cabin();
+ cabin_1.setId(1);
+ cabin_1.setLocName("deck");
+ cabin_1.setName("Master Suite");
+ cabin_1.setDeckLevel(2);
+ cabin_1.setShipId(3);
+ cabin_1.setBedCount(4);
+ list.add(cabin_1);
+
+ TechCabin cabin_2 = new TechCabin();
+ cabin_2.setId(2);
+ cabin_2.setLocName("hulk");
+ cabin_2.setName("Heating Cabin");
+ cabin_2.setDeckLevel(7);
+ cabin_2.setShipId(3);
+ cabin_2.setPurpose("heating");
+ list.add(cabin_2);
+
+ locListIn.setList(list);
+
+ locListOut = tae.passLocation(locListIn);
+
+ for (int i = 0; i < locListOut.getList().size(); i++)
+ {
+ LocationImpl tmp = locListOut.getList().get(i);
+
+ System.out.println("--- Output ListElement #: " + i + "
---");
+ System.out.println("ID:\t " + tmp.getId());
+ System.out.println("LocName: " + tmp.getLocName());
+
+ if (tmp instanceof Cabin)
+ {
+ Cabin cabinTmp = (Cabin)tmp;
+ System.out.println("Class:\t " + tmp.getClass());
+ System.out.println("Name:\t " + cabinTmp.getName());
+ System.out.println("Level:\t " + cabinTmp.getDeckLevel());
+ System.out.println("BedCount:" + cabinTmp.getBedCount());
+ }
+ else if (tmp instanceof TechCabin)
+ {
+ TechCabin cabinTmp = (TechCabin)tmp;
+ System.out.println("Class:\t " + tmp.getClass());
+ System.out.println("Name:\t " + cabinTmp.getName());
+ System.out.println("Level:\t " + cabinTmp.getDeckLevel());
+ System.out.println("Purpose: " + cabinTmp.getPurpose());
+ }
+ else
+ {
+ fail("!!ERROR casting CABIN!!");
+ }
+ }
+ }
+
+}
Property changes on:
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/GeneratedSourcesTestCase.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/HandcodedSourcesTestCase.java
===================================================================
---
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/HandcodedSourcesTestCase.java
(rev 0)
+++
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/HandcodedSourcesTestCase.java 2007-10-03
13:35:53 UTC (rev 4667)
@@ -0,0 +1,100 @@
+package org.jboss.test.ws.jaxws.jbws1795;
+
+import java.net.URL;
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+
+import junit.framework.Test;
+
+import org.jboss.test.ws.jaxws.jbws1795.handcoded.Cabin;
+import org.jboss.test.ws.jaxws.jbws1795.handcoded.ListLocation;
+import org.jboss.test.ws.jaxws.jbws1795.handcoded.LocationImpl;
+import org.jboss.test.ws.jaxws.jbws1795.handcoded.TechCabin;
+import org.jboss.test.ws.jaxws.jbws1795.service.TravelAgentEndpoint;
+
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+public class HandcodedSourcesTestCase extends JBossWSTest
+{
+
+ private TravelAgentEndpoint tae = null;
+
+ public static Test suite()
+ {
+ return new JBossWSTestSetup(HandcodedSourcesTestCase.class,
"jaxws-jbws1795.war");
+ }
+
+ @Override
+ protected void setUp() throws Exception
+ {
+ super.setUp();
+ URL wsdlURL = new URL("http://" + getServerHost() +
":8080/jaxws-jbws1795/JBWS1795Service?wsdl");
+ QName qname = new
QName("http://service.jbws1795.jaxws.ws.test.jboss.org/","...;
+ Service service = Service.create(wsdlURL,qname);
+ tae = service.getPort(TravelAgentEndpoint.class);
+ }
+
+ public void testInvocation() throws Exception
+ {
+ ListLocation locListIn = new ListLocation();
+ ListLocation locListOut = new ListLocation();
+ List<LocationImpl> list = new ArrayList<LocationImpl>();
+
+ Cabin cabin_1 = new Cabin();
+ cabin_1.setId(1);
+ cabin_1.setLocName("deck");
+ cabin_1.setName("Master Suite");
+ cabin_1.setDeckLevel(2);
+ cabin_1.setShipId(3);
+ cabin_1.setBedCount(4);
+ list.add(cabin_1);
+
+ TechCabin cabin_2 = new TechCabin();
+ cabin_2.setId(2);
+ cabin_2.setLocName("hulk");
+ cabin_2.setName("Heating Cabin");
+ cabin_2.setDeckLevel(7);
+ cabin_2.setShipId(3);
+ cabin_2.setPurpose("heating");
+ list.add(cabin_2);
+
+ locListIn.setList(list);
+
+ locListOut = tae.passLocation(locListIn);
+
+ for (int i=0; i < locListOut.getList().size(); i++){
+
+ LocationImpl tmp = locListOut.getList().get(i);
+
+ System.out.println("--- Output ListElement #: " + i + "
---");
+ System.out.println("ID:\t " + tmp.getId());
+ System.out.println("LocName: " + tmp.getLocName());
+
+ if (tmp instanceof Cabin)
+ {
+ Cabin cabinTmp = (Cabin)tmp;
+ System.out.println("Class:\t " + tmp.getClass());
+ System.out.println("Name:\t " + cabinTmp.getName());
+ System.out.println("Level:\t " + cabinTmp.getDeckLevel());
+ System.out.println("BedCount:" + cabinTmp.getBedCount());
+ }
+ else if (tmp instanceof TechCabin)
+ {
+ TechCabin cabinTmp = (TechCabin)tmp;
+ System.out.println("Class:\t " + tmp.getClass());
+ System.out.println("Name:\t " + cabinTmp.getName());
+ System.out.println("Level:\t " + cabinTmp.getDeckLevel());
+ System.out.println("Purpose: " + cabinTmp.getPurpose());
+ }
+ else
+ {
+ fail("!!ERROR casting CABIN!!");
+ }
+ }
+ }
+
+}
Property changes on:
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/HandcodedSourcesTestCase.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/Cabin.java
===================================================================
---
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/Cabin.java
(rev 0)
+++
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/Cabin.java 2007-10-03
13:35:53 UTC (rev 4667)
@@ -0,0 +1,119 @@
+
+package org.jboss.test.ws.jaxws.jbws1795.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for cabin complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="cabin">
+ * <complexContent>
+ * <extension
base="{http://service.jbws1795.jaxws.ws.test.jboss.org/}locationImpl...
+ * <sequence>
+ * <element name="bedCount"
type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * <element name="deckLevel"
type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * <element name="name"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="shipId"
type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "cabin", propOrder = {
+ "bedCount",
+ "deckLevel",
+ "name",
+ "shipId"
+})
+public class Cabin
+ extends LocationImpl
+{
+
+ protected int bedCount;
+ protected int deckLevel;
+ protected String name;
+ protected int shipId;
+
+ /**
+ * Gets the value of the bedCount property.
+ *
+ */
+ public int getBedCount() {
+ return bedCount;
+ }
+
+ /**
+ * Sets the value of the bedCount property.
+ *
+ */
+ public void setBedCount(int value) {
+ this.bedCount = value;
+ }
+
+ /**
+ * Gets the value of the deckLevel property.
+ *
+ */
+ public int getDeckLevel() {
+ return deckLevel;
+ }
+
+ /**
+ * Sets the value of the deckLevel property.
+ *
+ */
+ public void setDeckLevel(int value) {
+ this.deckLevel = value;
+ }
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setName(String value) {
+ this.name = value;
+ }
+
+ /**
+ * Gets the value of the shipId property.
+ *
+ */
+ public int getShipId() {
+ return shipId;
+ }
+
+ /**
+ * Sets the value of the shipId property.
+ *
+ */
+ public void setShipId(int value) {
+ this.shipId = value;
+ }
+
+}
Property changes on:
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/Cabin.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/ListLocation.java
===================================================================
---
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/ListLocation.java
(rev 0)
+++
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/ListLocation.java 2007-10-03
13:35:53 UTC (rev 4667)
@@ -0,0 +1,73 @@
+
+package org.jboss.test.ws.jaxws.jbws1795.generated;
+
+import java.util.ArrayList;
+import java.util.List;
+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 listLocation complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="listLocation">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="list"
type="{http://service.jbws1795.jaxws.ws.test.jboss.org/}locationImpl...
maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "listLocation", propOrder = {
+ "list"
+})
+public class ListLocation {
+
+ @XmlElement(nillable = true)
+ protected List<LocationImpl> list;
+
+ /**
+ * Gets the value of the list property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the list
property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getList().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link LocationImpl }
+ *
+ *
+ */
+ public List<LocationImpl> getList() {
+ if (list == null) {
+ list = new ArrayList<LocationImpl>();
+ }
+ return this.list;
+ }
+
+ public void setList(List<LocationImpl> list) {
+ this.list = list; // this method was added by user
+ }
+
+}
Property changes on:
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/ListLocation.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/LocationImpl.java
===================================================================
---
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/LocationImpl.java
(rev 0)
+++
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/LocationImpl.java 2007-10-03
13:35:53 UTC (rev 4667)
@@ -0,0 +1,84 @@
+
+package org.jboss.test.ws.jaxws.jbws1795.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlSeeAlso;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for locationImpl complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="locationImpl">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="id"
type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * <element name="locName"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "locationImpl", propOrder = {
+ "id",
+ "locName"
+})
+@XmlSeeAlso({
+ Cabin.class,
+ TechCabin.class
+})
+public class LocationImpl {
+
+ protected int id;
+ protected String locName;
+
+ /**
+ * Gets the value of the id property.
+ *
+ */
+ public int getId() {
+ return id;
+ }
+
+ /**
+ * Sets the value of the id property.
+ *
+ */
+ public void setId(int value) {
+ this.id = value;
+ }
+
+ /**
+ * Gets the value of the locName property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getLocName() {
+ return locName;
+ }
+
+ /**
+ * Sets the value of the locName property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setLocName(String value) {
+ this.locName = value;
+ }
+
+}
Property changes on:
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/LocationImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/ObjectFactory.java
===================================================================
---
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/ObjectFactory.java
(rev 0)
+++
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/ObjectFactory.java 2007-10-03
13:35:53 UTC (rev 4667)
@@ -0,0 +1,103 @@
+
+package org.jboss.test.ws.jaxws.jbws1795.generated;
+
+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.jboss.test.ws.jaxws.jbws1795.generated 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 _PassLocation_QNAME = new
QName("http://service.jbws1795.jaxws.ws.test.jboss.org/",
"passLocation");
+ private final static QName _PassLocationResponse_QNAME = new
QName("http://service.jbws1795.jaxws.ws.test.jboss.org/",
"passLocationResponse");
+
+ /**
+ * Create a new ObjectFactory that can be used to create new instances of schema
derived classes for package: org.jboss.test.ws.jaxws.jbws1795.generated
+ *
+ */
+ public ObjectFactory() {
+ }
+
+ /**
+ * Create an instance of {@link ListLocation }
+ *
+ */
+ public ListLocation createListLocation() {
+ return new ListLocation();
+ }
+
+ /**
+ * Create an instance of {@link PassLocationResponse }
+ *
+ */
+ public PassLocationResponse createPassLocationResponse() {
+ return new PassLocationResponse();
+ }
+
+ /**
+ * Create an instance of {@link LocationImpl }
+ *
+ */
+ public LocationImpl createLocationImpl() {
+ return new LocationImpl();
+ }
+
+ /**
+ * Create an instance of {@link TechCabin }
+ *
+ */
+ public TechCabin createTechCabin() {
+ return new TechCabin();
+ }
+
+ /**
+ * Create an instance of {@link Cabin }
+ *
+ */
+ public Cabin createCabin() {
+ return new Cabin();
+ }
+
+ /**
+ * Create an instance of {@link PassLocation }
+ *
+ */
+ public PassLocation createPassLocation() {
+ return new PassLocation();
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link PassLocation }{@code
>}}
+ *
+ */
+ @XmlElementDecl(namespace =
"http://service.jbws1795.jaxws.ws.test.jboss.org/", name =
"passLocation")
+ public JAXBElement<PassLocation> createPassLocation(PassLocation value) {
+ return new JAXBElement<PassLocation>(_PassLocation_QNAME,
PassLocation.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link PassLocationResponse
}{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace =
"http://service.jbws1795.jaxws.ws.test.jboss.org/", name =
"passLocationResponse")
+ public JAXBElement<PassLocationResponse>
createPassLocationResponse(PassLocationResponse value) {
+ return new JAXBElement<PassLocationResponse>(_PassLocationResponse_QNAME,
PassLocationResponse.class, null, value);
+ }
+
+}
Property changes on:
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/ObjectFactory.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/PassLocation.java
===================================================================
---
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/PassLocation.java
(rev 0)
+++
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/PassLocation.java 2007-10-03
13:35:53 UTC (rev 4667)
@@ -0,0 +1,62 @@
+
+package org.jboss.test.ws.jaxws.jbws1795.generated;
+
+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 passLocation complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="passLocation">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="ListLocation"
type="{http://service.jbws1795.jaxws.ws.test.jboss.org/}listLocation...
minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "passLocation", propOrder = {
+ "listLocation"
+})
+public class PassLocation {
+
+ @XmlElement(name = "ListLocation")
+ protected ListLocation listLocation;
+
+ /**
+ * Gets the value of the listLocation property.
+ *
+ * @return
+ * possible object is
+ * {@link ListLocation }
+ *
+ */
+ public ListLocation getListLocation() {
+ return listLocation;
+ }
+
+ /**
+ * Sets the value of the listLocation property.
+ *
+ * @param value
+ * allowed object is
+ * {@link ListLocation }
+ *
+ */
+ public void setListLocation(ListLocation value) {
+ this.listLocation = value;
+ }
+
+}
Property changes on:
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/PassLocation.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/PassLocationResponse.java
===================================================================
---
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/PassLocationResponse.java
(rev 0)
+++
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/PassLocationResponse.java 2007-10-03
13:35:53 UTC (rev 4667)
@@ -0,0 +1,62 @@
+
+package org.jboss.test.ws.jaxws.jbws1795.generated;
+
+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 passLocationResponse complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="passLocationResponse">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="return"
type="{http://service.jbws1795.jaxws.ws.test.jboss.org/}listLocation...
minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "passLocationResponse", propOrder = {
+ "_return"
+})
+public class PassLocationResponse {
+
+ @XmlElement(name = "return")
+ protected ListLocation _return;
+
+ /**
+ * Gets the value of the return property.
+ *
+ * @return
+ * possible object is
+ * {@link ListLocation }
+ *
+ */
+ public ListLocation getReturn() {
+ return _return;
+ }
+
+ /**
+ * Sets the value of the return property.
+ *
+ * @param value
+ * allowed object is
+ * {@link ListLocation }
+ *
+ */
+ public void setReturn(ListLocation value) {
+ this._return = value;
+ }
+
+}
Property changes on:
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/PassLocationResponse.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/TechCabin.java
===================================================================
---
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/TechCabin.java
(rev 0)
+++
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/TechCabin.java 2007-10-03
13:35:53 UTC (rev 4667)
@@ -0,0 +1,127 @@
+
+package org.jboss.test.ws.jaxws.jbws1795.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for techCabin complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="techCabin">
+ * <complexContent>
+ * <extension
base="{http://service.jbws1795.jaxws.ws.test.jboss.org/}locationImpl...
+ * <sequence>
+ * <element name="deckLevel"
type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * <element name="name"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="purpose"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="shipId"
type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "techCabin", propOrder = {
+ "deckLevel",
+ "name",
+ "purpose",
+ "shipId"
+})
+public class TechCabin
+ extends LocationImpl
+{
+
+ protected int deckLevel;
+ protected String name;
+ protected String purpose;
+ protected int shipId;
+
+ /**
+ * Gets the value of the deckLevel property.
+ *
+ */
+ public int getDeckLevel() {
+ return deckLevel;
+ }
+
+ /**
+ * Sets the value of the deckLevel property.
+ *
+ */
+ public void setDeckLevel(int value) {
+ this.deckLevel = value;
+ }
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setName(String value) {
+ this.name = value;
+ }
+
+ /**
+ * Gets the value of the purpose property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getPurpose() {
+ return purpose;
+ }
+
+ /**
+ * Sets the value of the purpose property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setPurpose(String value) {
+ this.purpose = value;
+ }
+
+ /**
+ * Gets the value of the shipId property.
+ *
+ */
+ public int getShipId() {
+ return shipId;
+ }
+
+ /**
+ * Sets the value of the shipId property.
+ *
+ */
+ public void setShipId(int value) {
+ this.shipId = value;
+ }
+
+}
Property changes on:
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/TechCabin.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/TravelAgentBeanService.java
===================================================================
---
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/TravelAgentBeanService.java
(rev 0)
+++
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/TravelAgentBeanService.java 2007-10-03
13:35:53 UTC (rev 4667)
@@ -0,0 +1,66 @@
+
+package org.jboss.test.ws.jaxws.jbws1795.generated;
+
+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 javax.xml.ws.WebServiceFeature;
+
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.1.1-b03-
+ * Generated source version: 2.1
+ *
+ */
+@WebServiceClient(name = "TravelAgentBeanService", targetNamespace =
"http://service.jbws1795.jaxws.ws.test.jboss.org/", wsdlLocation =
"http://127.0.0.1:8080/jaxws-jbws1795/JBWS1795Service?wsdl")
+public class TravelAgentBeanService
+ extends Service
+{
+
+ private final static URL TRAVELAGENTBEANSERVICE_WSDL_LOCATION;
+
+ static {
+ URL url = null;
+ try {
+ url = new
URL("http://127.0.0.1:8080/jaxws-jbws1795/JBWS1795Service?wsdl");
+ } catch (MalformedURLException e) {
+ e.printStackTrace();
+ }
+ TRAVELAGENTBEANSERVICE_WSDL_LOCATION = url;
+ }
+
+ public TravelAgentBeanService(URL wsdlLocation, QName serviceName) {
+ super(wsdlLocation, serviceName);
+ }
+
+ public TravelAgentBeanService() {
+ super(TRAVELAGENTBEANSERVICE_WSDL_LOCATION, new
QName("http://service.jbws1795.jaxws.ws.test.jboss.org/",
"TravelAgentBeanService"));
+ }
+
+ /**
+ *
+ * @return
+ * returns TravelAgentEndpoint
+ */
+ @WebEndpoint(name = "TravelAgentBeanPort")
+ public TravelAgentEndpoint getTravelAgentBeanPort() {
+ return (TravelAgentEndpoint)super.getPort(new
QName("http://service.jbws1795.jaxws.ws.test.jboss.org/",
"TravelAgentBeanPort"), TravelAgentEndpoint.class);
+ }
+
+ /**
+ *
+ * @param features
+ * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy.
Supported features not in the <code>features</code> parameter will have their
default values.
+ * @return
+ * returns TravelAgentEndpoint
+ */
+ @WebEndpoint(name = "TravelAgentBeanPort")
+ public TravelAgentEndpoint getTravelAgentBeanPort(WebServiceFeature... features) {
+ return (TravelAgentEndpoint)super.getPort(new
QName("http://service.jbws1795.jaxws.ws.test.jboss.org/",
"TravelAgentBeanPort"), TravelAgentEndpoint.class, features);
+ }
+
+}
Property changes on:
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/TravelAgentBeanService.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/TravelAgentEndpoint.java
===================================================================
---
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/TravelAgentEndpoint.java
(rev 0)
+++
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/TravelAgentEndpoint.java 2007-10-03
13:35:53 UTC (rev 4667)
@@ -0,0 +1,40 @@
+
+package org.jboss.test.ws.jaxws.jbws1795.generated;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.xml.bind.annotation.XmlSeeAlso;
+import javax.xml.ws.RequestWrapper;
+import javax.xml.ws.ResponseWrapper;
+
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.1.1-b03-
+ * Generated source version: 2.1
+ *
+ */
+@WebService(name = "TravelAgentEndpoint", targetNamespace =
"http://service.jbws1795.jaxws.ws.test.jboss.org/")
+@XmlSeeAlso({
+ ObjectFactory.class
+})
+public interface TravelAgentEndpoint {
+
+
+ /**
+ *
+ * @param listLocation
+ * @return
+ * returns org.jboss.test.ws.jaxws.jbws1795.generated.ListLocation
+ */
+ @WebMethod
+ @WebResult(targetNamespace = "")
+ @RequestWrapper(localName = "passLocation", targetNamespace =
"http://service.jbws1795.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.jbws1795.generated.PassLocation")
+ @ResponseWrapper(localName = "passLocationResponse", targetNamespace =
"http://service.jbws1795.jaxws.ws.test.jboss.org/", className =
"org.jboss.test.ws.jaxws.jbws1795.generated.PassLocationResponse")
+ public ListLocation passLocation(
+ @WebParam(name = "ListLocation", targetNamespace = "")
+ ListLocation listLocation);
+
+}
Property changes on:
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/TravelAgentEndpoint.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/package-info.java
===================================================================
---
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/package-info.java
(rev 0)
+++
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/package-info.java 2007-10-03
13:35:53 UTC (rev 4667)
@@ -0,0 +1,2 @@
+(a)javax.xml.bind.annotation.XmlSchema(namespace =
"http://service.jbws1795.jaxws.ws.test.jboss.org/")
+package org.jboss.test.ws.jaxws.jbws1795.generated;
Property changes on:
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/generated/package-info.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/handcoded/Cabin.java
===================================================================
---
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/handcoded/Cabin.java
(rev 0)
+++
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/handcoded/Cabin.java 2007-10-03
13:35:53 UTC (rev 4667)
@@ -0,0 +1,52 @@
+package org.jboss.test.ws.jaxws.jbws1795.handcoded;
+
+public class Cabin extends LocationImpl implements java.io.Serializable
+{
+
+ private static final long serialVersionUID = 1L;
+ private String name;
+ private int deckLevel;
+ private int shipId;
+ private int bedCount;
+
+ public String getName()
+ {
+ return name;
+ }
+
+ public void setName(String str)
+ {
+ name = str;
+ }
+
+ public int getDeckLevel()
+ {
+ return deckLevel;
+ }
+
+ public void setDeckLevel(int level)
+ {
+ deckLevel = level;
+ }
+
+ public int getShipId()
+ {
+ return shipId;
+ }
+
+ public void setShipId(int sid)
+ {
+ shipId = sid;
+ }
+
+ public int getBedCount()
+ {
+ return bedCount;
+ }
+
+ public void setBedCount(int bed)
+ {
+ bedCount = bed;
+ }
+
+}
Property changes on:
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/handcoded/Cabin.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/handcoded/ListLocation.java
===================================================================
---
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/handcoded/ListLocation.java
(rev 0)
+++
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/handcoded/ListLocation.java 2007-10-03
13:35:53 UTC (rev 4667)
@@ -0,0 +1,20 @@
+package org.jboss.test.ws.jaxws.jbws1795.handcoded;
+
+import java.util.List;
+
+public class ListLocation
+{
+
+ private List<LocationImpl> list;
+
+ public List<LocationImpl> getList()
+ {
+ return list;
+ }
+
+ public void setList(List<LocationImpl> list)
+ {
+ this.list = list;
+ }
+
+}
Property changes on:
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/handcoded/ListLocation.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/handcoded/Location.java
===================================================================
---
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/handcoded/Location.java
(rev 0)
+++
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/handcoded/Location.java 2007-10-03
13:35:53 UTC (rev 4667)
@@ -0,0 +1,11 @@
+package org.jboss.test.ws.jaxws.jbws1795.handcoded;
+
+public interface Location
+{
+
+ public int getId();
+ public void setId(int pk);
+ public String getLocName();
+ public void setLocName(String str);
+
+}
Property changes on:
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/handcoded/Location.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/handcoded/LocationImpl.java
===================================================================
---
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/handcoded/LocationImpl.java
(rev 0)
+++
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/handcoded/LocationImpl.java 2007-10-03
13:35:53 UTC (rev 4667)
@@ -0,0 +1,35 @@
+package org.jboss.test.ws.jaxws.jbws1795.handcoded;
+
+import java.io.Serializable;
+
+import javax.xml.bind.annotation.XmlSeeAlso;
+
+(a)XmlSeeAlso({Cabin.class, TechCabin.class})
+public class LocationImpl implements Serializable, Location
+{
+
+ private static final long serialVersionUID = 1L;
+ private int id;
+ private String locName;
+
+ public int getId()
+ {
+ return id;
+ }
+
+ public void setId(int pk)
+ {
+ id = pk;
+ }
+
+ public String getLocName()
+ {
+ return locName;
+ }
+
+ public void setLocName(String str)
+ {
+ locName = str;
+ }
+
+}
Property changes on:
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/handcoded/LocationImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/handcoded/TechCabin.java
===================================================================
---
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/handcoded/TechCabin.java
(rev 0)
+++
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/handcoded/TechCabin.java 2007-10-03
13:35:53 UTC (rev 4667)
@@ -0,0 +1,52 @@
+package org.jboss.test.ws.jaxws.jbws1795.handcoded;
+
+public class TechCabin extends LocationImpl implements java.io.Serializable
+{
+
+ private static final long serialVersionUID = 1L;
+ private String name;
+ private int deckLevel;
+ private int shipId;
+ private String purpose;
+
+ public String getName()
+ {
+ return name;
+ }
+
+ public void setName(String str)
+ {
+ name = str;
+ }
+
+ public int getDeckLevel()
+ {
+ return deckLevel;
+ }
+
+ public void setDeckLevel(int level)
+ {
+ deckLevel = level;
+ }
+
+ public int getShipId()
+ {
+ return shipId;
+ }
+
+ public void setShipId(int sid)
+ {
+ shipId = sid;
+ }
+
+ public String getPurpose()
+ {
+ return purpose;
+ }
+
+ public void setPurpose(String purpose)
+ {
+ this.purpose = purpose;
+ }
+
+}
Property changes on:
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/handcoded/TechCabin.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/handcoded/package-info.java
===================================================================
---
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/handcoded/package-info.java
(rev 0)
+++
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/handcoded/package-info.java 2007-10-03
13:35:53 UTC (rev 4667)
@@ -0,0 +1,2 @@
+(a)javax.xml.bind.annotation.XmlSchema(namespace =
"http://service.jbws1795.jaxws.ws.test.jboss.org/")
+package org.jboss.test.ws.jaxws.jbws1795.handcoded;
Property changes on:
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/handcoded/package-info.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/service/CabinListHandler.java
===================================================================
---
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/service/CabinListHandler.java
(rev 0)
+++
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/service/CabinListHandler.java 2007-10-03
13:35:53 UTC (rev 4667)
@@ -0,0 +1,44 @@
+package org.jboss.test.ws.jaxws.jbws1795.service;
+
+import org.jboss.test.ws.jaxws.jbws1795.handcoded.Cabin;
+import org.jboss.test.ws.jaxws.jbws1795.handcoded.ListLocation;
+import org.jboss.test.ws.jaxws.jbws1795.handcoded.Location;
+import org.jboss.test.ws.jaxws.jbws1795.handcoded.LocationImpl;
+import org.jboss.test.ws.jaxws.jbws1795.handcoded.TechCabin;
+
+public class CabinListHandler
+{
+
+ public CabinListHandler()
+ {
+ }
+
+ public ListLocation getLocations(ListLocation listLocation)
+ {
+
+ for (int i = 0; i < listLocation.getList().size(); i++)
+ {
+ Location loc = listLocation.getList().get(i);
+
+ if (loc instanceof TechCabin)
+ {
+ System.out.println("--- TechCabin Argument ---");
+ }
+ else if (loc instanceof Cabin)
+ {
+ System.out.println("--- Cabin Argument ---");
+ }
+ else if (loc instanceof LocationImpl)
+ {
+ System.out.println("--- LocationImpl Argument ---");
+ }
+ else
+ {
+ System.out.println("--- ERROR RECIEVING OBJECT GRAPH ---");
+ }
+ }
+
+ return listLocation;
+ }
+
+}
Property changes on:
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/service/CabinListHandler.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/service/TravelAgentBean.java
===================================================================
---
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/service/TravelAgentBean.java
(rev 0)
+++
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/service/TravelAgentBean.java 2007-10-03
13:35:53 UTC (rev 4667)
@@ -0,0 +1,21 @@
+package org.jboss.test.ws.jaxws.jbws1795.service;
+
+import javax.ejb.Stateless;
+import javax.jws.WebService;
+
+import org.jboss.test.ws.jaxws.jbws1795.handcoded.ListLocation;
+
+@Stateless
+@WebService(endpointInterface =
"org.jboss.test.ws.jaxws.jbws1795.service.TravelAgentEndpoint")
+public class TravelAgentBean implements TravelAgentEndpoint
+{
+
+ public ListLocation passLocation(ListLocation listLocation)
+ {
+ CabinListHandler clh = new CabinListHandler();
+ ListLocation list = new ListLocation();
+ list = clh.getLocations(listLocation);
+ return list;
+ }
+
+}
Property changes on:
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/service/TravelAgentBean.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/service/TravelAgentEndpoint.java
===================================================================
---
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/service/TravelAgentEndpoint.java
(rev 0)
+++
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/service/TravelAgentEndpoint.java 2007-10-03
13:35:53 UTC (rev 4667)
@@ -0,0 +1,19 @@
+package org.jboss.test.ws.jaxws.jbws1795.service;
+
+import java.rmi.RemoteException;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebService;
+
+import org.jboss.test.ws.jaxws.jbws1795.handcoded.ListLocation;
+
+@WebService
+public interface TravelAgentEndpoint
+{
+
+ @WebMethod
+ public ListLocation passLocation(@WebParam (name="ListLocation")
ListLocation listLocation)
+ throws RemoteException;
+
+}
Property changes on:
stack/native/branches/ropalka/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1795/service/TravelAgentEndpoint.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/branches/ropalka/trunk/src/test/resources/jaxws/jbws1795/WEB-INF/web.xml
===================================================================
--- stack/native/branches/ropalka/trunk/src/test/resources/jaxws/jbws1795/WEB-INF/web.xml
(rev 0)
+++
stack/native/branches/ropalka/trunk/src/test/resources/jaxws/jbws1795/WEB-INF/web.xml 2007-10-03
13:35:53 UTC (rev 4667)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<web-app
xmlns="http://java.sun.com/xml/ns/j2ee"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
+ version="2.4">
+
+ <servlet>
+ <servlet-name>JBWS1795Service</servlet-name>
+
<servlet-class>org.jboss.test.ws.jaxws.jbws1795.service.TravelAgentBean</servlet-class>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>JBWS1795Service</servlet-name>
+ <url-pattern>/JBWS1795Service</url-pattern>
+ </servlet-mapping>
+
+</web-app>
Property changes on:
stack/native/branches/ropalka/trunk/src/test/resources/jaxws/jbws1795/WEB-INF/web.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF