Author: alessio.soldano(a)jboss.com
Date: 2009-09-30 11:38:15 -0400 (Wed, 30 Sep 2009)
New Revision: 10809
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSClientMetaDataBuilder.java
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSMetaDataBuilder.java
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSWebServiceMetaDataBuilder.java
Log:
[JBWS-2701] Fix
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSClientMetaDataBuilder.java
===================================================================
---
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSClientMetaDataBuilder.java 2009-09-30
15:31:15 UTC (rev 10808)
+++
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSClientMetaDataBuilder.java 2009-09-30
15:38:15 UTC (rev 10809)
@@ -299,6 +299,8 @@
// Process @WebMethod
processWebMethods(epMetaData, wsClass);
+
+ processXmlSeeAlso(wsClass);
// Initialize types
createJAXBContext(epMetaData);
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSMetaDataBuilder.java
===================================================================
---
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSMetaDataBuilder.java 2009-09-30
15:31:15 UTC (rev 10808)
+++
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSMetaDataBuilder.java 2009-09-30
15:38:15 UTC (rev 10809)
@@ -44,6 +44,7 @@
import javax.jws.soap.SOAPMessageHandlers;
import javax.jws.soap.SOAPBinding.ParameterStyle;
import javax.xml.bind.annotation.XmlList;
+import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import javax.xml.namespace.QName;
@@ -127,6 +128,18 @@
epMetaData.setBindingId(anBindingType.value());
}
}
+
+ protected void processXmlSeeAlso(Class<?> wsClass)
+ {
+ if ((wsClass.isAnnotationPresent(XmlSeeAlso.class)))
+ {
+ XmlSeeAlso xsa = wsClass.getAnnotation(XmlSeeAlso.class);
+ for (Class<?> clazz : xsa.value())
+ {
+ javaTypes.add(clazz);
+ }
+ }
+ }
protected void processSOAPBinding(EndpointMetaData epMetaData, Class<?>
wsClass)
{
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSWebServiceMetaDataBuilder.java
===================================================================
---
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSWebServiceMetaDataBuilder.java 2009-09-30
15:31:15 UTC (rev 10808)
+++
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSWebServiceMetaDataBuilder.java 2009-09-30
15:38:15 UTC (rev 10809)
@@ -146,6 +146,8 @@
// Process web methods
processWebMethods(sepMetaData, seiClass);
+
+ processXmlSeeAlso(seiClass);
// Init the transport guarantee
initTransportGuaranteeJSE(dep, sepMetaData, linkName);
Show replies by date