JBossWS SVN: r12304 - framework/tags.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2010-05-21 09:37:18 -0400 (Fri, 21 May 2010)
New Revision: 12304
Added:
framework/tags/jbossws-framework-3.1.2.SP6/
Log:
[JBPAPP-4364] Tagging jbossws-framework-3.1.2.SP6
Copied: framework/tags/jbossws-framework-3.1.2.SP6 (from rev 12303, framework/branches/jbossws-framework-3.1.2)
15 years, 11 months
JBossWS SVN: r12303 - in stack/native/trunk/modules/core/src/main/java/org/jboss/ws: extensions/addressing/metadata and 6 other directories.
by jbossws-commits@lists.jboss.org
Author: richard.opalka(a)jboss.com
Date: 2010-05-21 08:12:58 -0400 (Fri, 21 May 2010)
New Revision: 12303
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/extensions/addressing/jaxws/WSAddressingServerHandler.java
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/extensions/addressing/metadata/AddressingOpMetaExt.java
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/extensions/policy/metadata/PolicyMetaDataBuilder.java
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/metadata/builder/MetaDataBuilder.java
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/metadata/builder/jaxrpc/JAXRPCMetaDataBuilder.java
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
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/metadata/umdm/FaultMetaData.java
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/metadata/umdm/OperationMetaData.java
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/tools/wsdl/WSDL11Reader.java
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/tools/wsdl/WSDLGenerator.java
Log:
[JBWS-3031] use WSDL meta data if addressing related annotations are missing
Modified: stack/native/trunk/modules/core/src/main/java/org/jboss/ws/extensions/addressing/jaxws/WSAddressingServerHandler.java
===================================================================
--- stack/native/trunk/modules/core/src/main/java/org/jboss/ws/extensions/addressing/jaxws/WSAddressingServerHandler.java 2010-05-21 11:46:24 UTC (rev 12302)
+++ stack/native/trunk/modules/core/src/main/java/org/jboss/ws/extensions/addressing/jaxws/WSAddressingServerHandler.java 2010-05-21 12:12:58 UTC (rev 12303)
@@ -339,8 +339,8 @@
if (faultMD != null)
{
- final String beanName = faultMD.getFaultBeanName();
- return addressingMD.getFaultAction(beanName);
+ final QName faultQName = faultMD.getXmlName();
+ return addressingMD.getFaultAction(faultQName);
}
return ADDR_CONSTANTS.getDefaultFaultAction();
Modified: stack/native/trunk/modules/core/src/main/java/org/jboss/ws/extensions/addressing/metadata/AddressingOpMetaExt.java
===================================================================
--- stack/native/trunk/modules/core/src/main/java/org/jboss/ws/extensions/addressing/metadata/AddressingOpMetaExt.java 2010-05-21 11:46:24 UTC (rev 12302)
+++ stack/native/trunk/modules/core/src/main/java/org/jboss/ws/extensions/addressing/metadata/AddressingOpMetaExt.java 2010-05-21 12:12:58 UTC (rev 12303)
@@ -24,6 +24,8 @@
import java.util.HashMap;
import java.util.Map;
+import javax.xml.namespace.QName;
+
import org.jboss.ws.metadata.umdm.MetaDataExtension;
/**
@@ -38,7 +40,7 @@
{
private String inboundAction;
private String outboundAction;
- private Map<String, String> faultAction = new HashMap<String, String>();
+ private Map<QName, String> faultAction = new HashMap<QName, String>();
public AddressingOpMetaExt(String extensionNameSpace)
{
@@ -65,14 +67,14 @@
this.outboundAction = outboundAction;
}
- public void setFaultAction(String beanName, String action)
+ public void setFaultAction(QName faultQName, String action)
{
- this.faultAction.put(beanName, action);
+ this.faultAction.put(faultQName, action);
}
- public String getFaultAction(String beanName)
+ public String getFaultAction(QName faultQName)
{
- return this.faultAction.get(beanName);
+ return this.faultAction.get(faultQName);
}
}
Modified: stack/native/trunk/modules/core/src/main/java/org/jboss/ws/extensions/policy/metadata/PolicyMetaDataBuilder.java
===================================================================
--- stack/native/trunk/modules/core/src/main/java/org/jboss/ws/extensions/policy/metadata/PolicyMetaDataBuilder.java 2010-05-21 11:46:24 UTC (rev 12302)
+++ stack/native/trunk/modules/core/src/main/java/org/jboss/ws/extensions/policy/metadata/PolicyMetaDataBuilder.java 2010-05-21 12:12:58 UTC (rev 12303)
@@ -149,7 +149,7 @@
}
}
- public void processPolicyExtensions(EndpointMetaData epMetaData, WSDLDefinitions wsdlDefinitions)
+ public void processPolicyExtensions(EndpointMetaData endpointMD, WSDLDefinitions wsdlDefinitions)
{
//Collect all policies defined in our wsdl definitions
DOMPolicyReader reader = (DOMPolicyReader)PolicyFactory.getPolicyReader(PolicyFactory.DOM_POLICY_READER);
@@ -159,56 +159,71 @@
Policy policy = reader.readPolicy(policyElement.getElement());
localPolicyRegistry.register(policy.getPolicyURI(), policy);
}
+
//Port scope
- WSDLService wsdlService = wsdlDefinitions.getService(epMetaData.getServiceMetaData().getServiceName());
+ WSDLService wsdlService = wsdlDefinitions.getService(endpointMD.getServiceMetaData().getServiceName());
if (wsdlService != null)
{
- WSDLEndpoint wsdlEndpoint = wsdlService.getEndpoint(epMetaData.getPortName());
+ WSDLEndpoint wsdlEndpoint = wsdlService.getEndpoint(endpointMD.getPortName());
if (wsdlEndpoint != null)
{
- List<WSDLExtensibilityElement> portPolicyRefList = wsdlEndpoint.getExtensibilityElements(Constants.WSDL_ELEMENT_POLICYREFERENCE);
- processPolicies(portPolicyRefList, PolicyScopeLevel.WSDL_PORT, localPolicyRegistry, epMetaData);
+ // process Policy elements
+ List<WSDLExtensibilityElement> portPolicies = wsdlEndpoint.getExtensibilityElements(Constants.WSDL_ELEMENT_POLICY);
+ processPolicies(portPolicies, PolicyScopeLevel.WSDL_PORT, endpointMD);
+
+ // process PolicyReference elements
+ List<WSDLExtensibilityElement> portPolicyReferences = wsdlEndpoint.getExtensibilityElements(Constants.WSDL_ELEMENT_POLICYREFERENCE);
+ processPolicyReferences(portPolicyReferences, PolicyScopeLevel.WSDL_PORT, localPolicyRegistry, endpointMD);
}
else
{
- log
- .warn("Cannot get port '" + epMetaData.getPortName()
- + "' from the given wsdl definitions! Eventual policies attached to this port won't be considered.");
+ log.warn("Cannot get port '" + endpointMD.getPortName()
+ + "' from the given wsdl definitions! Eventual policies attached to this port won't be considered.");
}
}
else
{
- log.warn("Cannot get service '" + epMetaData.getServiceMetaData().getServiceName()
+ log.warn("Cannot get service '" + endpointMD.getServiceMetaData().getServiceName()
+ "' from the given wsdl definitions! Eventual policies attached to this service won't be considered.");
}
//Binding scope
- WSDLBinding wsdlBinding = wsdlDefinitions.getBindingByInterfaceName(epMetaData.getPortTypeName());
+ WSDLBinding wsdlBinding = wsdlDefinitions.getBindingByInterfaceName(endpointMD.getPortTypeName());
if (wsdlBinding != null)
{
- List<WSDLExtensibilityElement> bindingPolicyRefList = wsdlBinding.getExtensibilityElements(Constants.WSDL_ELEMENT_POLICYREFERENCE);
- processPolicies(bindingPolicyRefList, PolicyScopeLevel.WSDL_BINDING, localPolicyRegistry, epMetaData);
+ // process Policy elements
+ List<WSDLExtensibilityElement> bindingPolicies = wsdlBinding.getExtensibilityElements(Constants.WSDL_ELEMENT_POLICY);
+ processPolicies(bindingPolicies, PolicyScopeLevel.WSDL_BINDING, endpointMD);
+
+ // process PolicyReference elements
+ List<WSDLExtensibilityElement> bindingPolicyReferences = wsdlBinding.getExtensibilityElements(Constants.WSDL_ELEMENT_POLICYREFERENCE);
+ processPolicyReferences(bindingPolicyReferences, PolicyScopeLevel.WSDL_BINDING, localPolicyRegistry, endpointMD);
}
else
{
- log.warn("Cannot get binding for portType '" + epMetaData.getPortTypeName()
+ log.warn("Cannot get binding for portType '" + endpointMD.getPortTypeName()
+ "' from the given wsdl definitions! Eventual policies attached to this binding won't be considered.");
}
//PortType scope
- WSDLInterface wsdlInterface = wsdlDefinitions.getInterface(epMetaData.getPortTypeName());
+ WSDLInterface wsdlInterface = wsdlDefinitions.getInterface(endpointMD.getPortTypeName());
if (wsdlInterface != null)
{
- WSDLProperty portTypePolicyProp = wsdlInterface.getProperty(Constants.WSDL_PROPERTY_POLICYURIS);
- processPolicies(portTypePolicyProp, PolicyScopeLevel.WSDL_PORT_TYPE, localPolicyRegistry, epMetaData);
+ // process Policy elements
+ List<WSDLExtensibilityElement> portTypePolicies = wsdlInterface.getExtensibilityElements(Constants.WSDL_ELEMENT_POLICY);
+ processPolicies(portTypePolicies, PolicyScopeLevel.WSDL_PORT_TYPE, endpointMD);
+
+ // process PolicyReference elements
+ WSDLProperty portTypePolicyReferences = wsdlInterface.getProperty(Constants.WSDL_PROPERTY_POLICYURIS);
+ processPolicies(portTypePolicyReferences, PolicyScopeLevel.WSDL_PORT_TYPE, localPolicyRegistry, endpointMD);
}
else
{
- log.warn("Cannot get portType '" + epMetaData.getPortTypeName()
+ log.warn("Cannot get portType '" + endpointMD.getPortTypeName()
+ "' from the given wsdl definitions! Eventual policies attached to this portType won't be considered.");
}
}
-
+
private void processPolicies(WSDLProperty policyProp, PolicyScopeLevel scope, PolicyRegistry localPolicies, ExtensibleMetaData extMetaData)
{
if (policyProp != null && policyProp.getValue() != null)
@@ -221,8 +236,21 @@
}
}
}
+
+ private void processPolicies(List<WSDLExtensibilityElement> policies, PolicyScopeLevel scope, ExtensibleMetaData extMetaData)
+ {
+ if (policies != null && policies.size() != 0)
+ {
+ DOMPolicyReader reader = (DOMPolicyReader)PolicyFactory.getPolicyReader(PolicyFactory.DOM_POLICY_READER);
+ for (WSDLExtensibilityElement policyElement : policies)
+ {
+ Policy policy = reader.readPolicy(policyElement.getElement());
+ deployPolicy(policy, scope, extMetaData);
+ }
+ }
+ }
- private void processPolicies(List<WSDLExtensibilityElement> policyReferences, PolicyScopeLevel scope, PolicyRegistry localPolicies, ExtensibleMetaData extMetaData)
+ private void processPolicyReferences(List<WSDLExtensibilityElement> policyReferences, PolicyScopeLevel scope, PolicyRegistry localPolicies, ExtensibleMetaData extMetaData)
{
if (policyReferences != null && policyReferences.size() != 0)
{
Modified: stack/native/trunk/modules/core/src/main/java/org/jboss/ws/metadata/builder/MetaDataBuilder.java
===================================================================
--- stack/native/trunk/modules/core/src/main/java/org/jboss/ws/metadata/builder/MetaDataBuilder.java 2010-05-21 11:46:24 UTC (rev 12302)
+++ stack/native/trunk/modules/core/src/main/java/org/jboss/ws/metadata/builder/MetaDataBuilder.java 2010-05-21 12:12:58 UTC (rev 12303)
@@ -43,6 +43,7 @@
import org.jboss.logging.Logger;
import org.jboss.ws.Constants;
import org.jboss.ws.WSException;
+import org.jboss.ws.core.jaxrpc.UnqualifiedFaultException;
import org.jboss.ws.core.soap.Use;
import org.jboss.ws.extensions.addressing.AddressingPropertiesImpl;
import org.jboss.ws.extensions.addressing.metadata.AddressingOpMetaExt;
@@ -50,14 +51,19 @@
import org.jboss.ws.extensions.eventing.EventingUtils;
import org.jboss.ws.extensions.eventing.metadata.EventingEpMetaExt;
import org.jboss.ws.metadata.umdm.EndpointMetaData;
+import org.jboss.ws.metadata.umdm.FaultMetaData;
import org.jboss.ws.metadata.umdm.OperationMetaData;
import org.jboss.ws.metadata.umdm.ServerEndpointMetaData;
+import org.jboss.ws.metadata.umdm.TypeMappingMetaData;
+import org.jboss.ws.metadata.umdm.TypesMetaData;
import org.jboss.ws.metadata.wsdl.WSDLBinding;
import org.jboss.ws.metadata.wsdl.WSDLBindingOperation;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
import org.jboss.ws.metadata.wsdl.WSDLEndpoint;
import org.jboss.ws.metadata.wsdl.WSDLInterface;
+import org.jboss.ws.metadata.wsdl.WSDLInterfaceFault;
import org.jboss.ws.metadata.wsdl.WSDLInterfaceOperation;
+import org.jboss.ws.metadata.wsdl.WSDLInterfaceOperationOutfault;
import org.jboss.ws.metadata.wsdl.WSDLInterfaceOperationOutput;
import org.jboss.ws.metadata.wsdl.WSDLProperty;
import org.jboss.ws.metadata.wsdl.WSDLService;
@@ -526,51 +532,180 @@
/** Process operation meta data extensions. */
protected void processOpMetaExtensions(OperationMetaData opMetaData, WSDLInterfaceOperation wsdlOperation)
{
+ final AddressingProperties ADDR = new AddressingPropertiesImpl();
+ final AddressingOpMetaExt addrExt = new AddressingOpMetaExt(ADDR.getNamespaceURI());
+ final boolean isOneWay = Constants.WSDL20_PATTERN_IN_ONLY.equals(wsdlOperation.getPattern());
- String tns = wsdlOperation.getName().getNamespaceURI();
- String portTypeName = wsdlOperation.getName().getLocalPart();
+ final String inputAction = this.getInputAction(wsdlOperation, isOneWay);
+ addrExt.setInboundAction(inputAction);
+
+ if (!isOneWay)
+ {
+ final String outputAction = this.getOutputAction(wsdlOperation, isOneWay);
+ addrExt.setOutboundAction(outputAction);
+
+ setFaultActions(opMetaData, wsdlOperation, addrExt);
+ }
- AddressingProperties ADDR = new AddressingPropertiesImpl();
- AddressingOpMetaExt addrExt = new AddressingOpMetaExt(ADDR.getNamespaceURI());
+ opMetaData.addExtension(addrExt);
+ }
+
+ private void setFaultActions(final OperationMetaData opMetaData, final WSDLInterfaceOperation wsdlOperation, final AddressingOpMetaExt addrExt)
+ {
+ for (WSDLInterfaceOperationOutfault fault : wsdlOperation.getOutfaults())
+ {
+ final QName faultQName = wsdlOperation.getWsdlInterface().getFault(fault.getRef()).getElement();
+ final String action = this.getFaultAction(wsdlOperation, fault);
+
+ addrExt.setFaultAction(faultQName, action);
+ }
+ }
+
+ /*
+ Copy/paste from http://www.w3.org/TR/wsdl#_names
- // inbound action
+ 2.4.5 Names of Elements within an Operation
+
+ The name attribute of the input and output elements provides a unique name among all
+ input and output elements within the enclosing port type.
+
+ In order to avoid having to name each input and output element within an operation,
+ WSDL provides some default values based on the operation name. If the name attribute
+ is not specified on a one-way or notification message, it defaults to the name of the operation.
+ If the name attribute is not specified on the input or output messages of a
+ request-response or solicit-response operation, the name defaults to the name of
+ the operation with "Request"/"Solicit" or "Response" appended, respectively.
+
+ Each fault element must be named to allow a binding to specify the concrete format of the fault message.
+ The name of the fault element is unique within the set of faults defined for the operation.
+ */
+
+ private String getInputAction(final WSDLInterfaceOperation wsdlOperation, final boolean oneWay)
+ {
WSDLProperty wsaInAction = wsdlOperation.getProperty(Constants.WSDL_PROPERTY_ACTION_IN);
- if (wsaInAction != null)
+ if (wsaInAction != null && wsaInAction.getValue() != null && !"".equals(wsaInAction.getValue()))
{
- addrExt.setInboundAction(wsaInAction.getValue());
+ return wsaInAction.getValue();
}
+
+ final String prefix = this.getActionPrefix(wsdlOperation);
+ String operationName = wsdlOperation.getName().getLocalPart();
+
+ WSDLProperty inputName = wsdlOperation.getProperty(Constants.WSDL_PROPERTY_MESSAGE_NAME_IN);
+ if (inputName != null && inputName.getValue() != null && !"".equals(inputName.getValue()))
+ {
+ return prefix + inputName.getValue();
+ }
else
{
- WSDLProperty messageName = wsdlOperation.getProperty(Constants.WSDL_PROPERTY_MESSAGE_NAME_IN);
- if (messageName != null)
- {
- addrExt.setInboundAction(tns + "/" + portTypeName + "/" + messageName.getValue());
- }
- else
- {
- addrExt.setInboundAction(tns + "/" + portTypeName + "/IN");
- }
+ return prefix + operationName + (oneWay ? "" : "Request");
}
-
- // outbound action
+ }
+
+ private String getOutputAction(final WSDLInterfaceOperation wsdlOperation, final boolean oneWay)
+ {
WSDLProperty wsaOutAction = wsdlOperation.getProperty(Constants.WSDL_PROPERTY_ACTION_OUT);
- if (wsaOutAction != null)
+ if (wsaOutAction != null && wsaOutAction.getValue() != null && !"".equals(wsaOutAction.getValue()))
{
- addrExt.setOutboundAction(wsaOutAction.getValue());
+ return wsaOutAction.getValue();
}
+
+ final String prefix = this.getActionPrefix(wsdlOperation);
+ String operationName = wsdlOperation.getName().getLocalPart();
+
+ WSDLProperty outputName = wsdlOperation.getProperty(Constants.WSDL_PROPERTY_MESSAGE_NAME_OUT);
+ if (outputName != null && outputName.getValue() != null && !"".equals(outputName.getValue()))
+ {
+ return prefix + outputName.getValue();
+ }
else
{
- WSDLProperty messageName = wsdlOperation.getProperty(Constants.WSDL_PROPERTY_MESSAGE_NAME_OUT);
- if (messageName != null)
+ return prefix + operationName + (oneWay ? "" : "Response");
+ }
+ }
+
+ /*
+ Copy/paste from http://www.w3.org/TR/2007/REC-ws-addr-metadata-20070904/#defactionwsdl11
+
+ 4.4.4 Default Action Pattern for WSDL 1.1
+
+ A default pattern is also defined for backwards compatibility with WSDL 1.1. In the absence of an explicitly specified value
+ for the [action] property (see section 4.4.1 Explicit Association), the following pattern is used to construct a default action
+ for inputs and outputs. The general form of an action IRI is as follows:
+
+ Example 4-6. Structure of defaulted wsa:Action IRI.
+
+ [target namespace][delimiter][port type name][delimiter][input|output name]
+
+ For fault messages, the general form of an action IRI is as follows:
+
+ Example 4-7. Structure of default wsa:Action IRI for faults
+
+ [target namespace][delimiter][port type name][delimiter][operation name][delimiter]Fault[delimiter][fault name]
+ */
+ private String getFaultAction(final WSDLInterfaceOperation wsdlOperation, final WSDLInterfaceOperationOutfault fault)
+ {
+ final WSDLProperty wsaFaultAction = fault.getProperty(Constants.WSDL_PROPERTY_ACTION_FAULT);
+ if (wsaFaultAction != null && wsaFaultAction.getValue() != null && !"".equals(wsaFaultAction.getValue()))
+ {
+ return wsaFaultAction.getValue();
+ }
+
+ final String prefix = this.getActionPrefix(wsdlOperation);
+ String operationName = wsdlOperation.getName().getLocalPart();
+
+ final WSDLProperty faultName = fault.getProperty(Constants.WSDL_PROPERTY_MESSAGE_NAME_FAULT);
+ if (faultName != null && faultName.getValue() != null && !"".equals(faultName.getValue()))
+ {
+ return prefix + operationName + "/Fault/" + faultName.getValue();
+ }
+
+ throw new IllegalStateException();
+ }
+
+ private String getActionPrefix(final WSDLInterfaceOperation wsdlOperation)
+ {
+ String tns = wsdlOperation.getName().getNamespaceURI();
+ if (!tns.endsWith("/"))
+ tns += "/";
+
+ final String portTypeName = wsdlOperation.getWsdlInterface().getName().getLocalPart();
+
+ return tns + portTypeName + "/";
+ }
+
+ protected void buildFaultMetaData(OperationMetaData opMetaData, WSDLInterfaceOperation wsdlOperation)
+ {
+ TypesMetaData typesMetaData = opMetaData.getEndpointMetaData().getServiceMetaData().getTypesMetaData();
+
+ WSDLInterface wsdlInterface = wsdlOperation.getWsdlInterface();
+ for (WSDLInterfaceOperationOutfault outFault : wsdlOperation.getOutfaults())
+ {
+ QName ref = outFault.getRef();
+
+ WSDLInterfaceFault wsdlFault = wsdlInterface.getFault(ref);
+ QName xmlName = wsdlFault.getElement();
+ QName xmlType = wsdlFault.getXmlType();
+ String javaTypeName = null;
+
+ if (xmlType == null)
{
- addrExt.setOutboundAction(tns + "/" + portTypeName + "/" + messageName.getValue());
+ log.warn("Cannot obtain fault type for element: " + xmlName);
+ xmlType = xmlName;
}
- else
+
+ TypeMappingMetaData tmMetaData = typesMetaData.getTypeMappingByXMLType(xmlType);
+ if (tmMetaData != null)
+ javaTypeName = tmMetaData.getJavaTypeName();
+
+ if (javaTypeName == null)
{
- addrExt.setOutboundAction(tns + "/" + portTypeName + "/OUT");
+ log.warn("Cannot obtain java type mapping for: " + xmlType);
+ javaTypeName = new UnqualifiedFaultException(xmlType).getClass().getName();
}
+
+ FaultMetaData faultMetaData = new FaultMetaData(opMetaData, xmlName, xmlType, javaTypeName);
+ opMetaData.addFault(faultMetaData);
}
-
- opMetaData.addExtension(addrExt);
}
}
Modified: stack/native/trunk/modules/core/src/main/java/org/jboss/ws/metadata/builder/jaxrpc/JAXRPCMetaDataBuilder.java
===================================================================
--- stack/native/trunk/modules/core/src/main/java/org/jboss/ws/metadata/builder/jaxrpc/JAXRPCMetaDataBuilder.java 2010-05-21 11:46:24 UTC (rev 12302)
+++ stack/native/trunk/modules/core/src/main/java/org/jboss/ws/metadata/builder/jaxrpc/JAXRPCMetaDataBuilder.java 2010-05-21 12:12:58 UTC (rev 12303)
@@ -904,70 +904,4 @@
}
}
- /**
- * Build default action according to the pattern described in
- * http://www.w3.org/Submission/2004/SUBM-ws-addressing-20040810/
- * Section 3.3.2 'Default Action Pattern'<br>
- * [target namespace]/[port type name]/[input|output name]
- *
- * @param wsdlOperation
- * @return action value
- */
- private String buildWsaActionValue(WSDLInterfaceOperation wsdlOperation)
- {
- WSDLProperty wsaAction = wsdlOperation.getProperty(Constants.WSDL_ATTRIBUTE_WSA_ACTION.toString());
- String actionValue = null;
-
- if (null == wsaAction)
- {
-
- String tns = wsdlOperation.getName().getNamespaceURI();
- String portTypeName = wsdlOperation.getName().getLocalPart();
- WSDLProperty messageName = wsdlOperation.getProperty("http://www.jboss.org/jbossws/messagename/in");
-
- actionValue = new String(tns + "/" + portTypeName + "/" + messageName.getValue());
- }
- else
- {
- actionValue = wsaAction.getValue();
- }
-
- return actionValue;
- }
-
- protected void buildFaultMetaData(OperationMetaData opMetaData, WSDLInterfaceOperation wsdlOperation)
- {
- TypesMetaData typesMetaData = opMetaData.getEndpointMetaData().getServiceMetaData().getTypesMetaData();
-
- WSDLInterface wsdlInterface = wsdlOperation.getWsdlInterface();
- for (WSDLInterfaceOperationOutfault outFault : wsdlOperation.getOutfaults())
- {
- QName ref = outFault.getRef();
-
- WSDLInterfaceFault wsdlFault = wsdlInterface.getFault(ref);
- QName xmlName = wsdlFault.getElement();
- QName xmlType = wsdlFault.getXmlType();
- String javaTypeName = null;
-
- if (xmlType == null)
- {
- log.warn("Cannot obtain fault type for element: " + xmlName);
- xmlType = xmlName;
- }
-
- TypeMappingMetaData tmMetaData = typesMetaData.getTypeMappingByXMLType(xmlType);
- if (tmMetaData != null)
- javaTypeName = tmMetaData.getJavaTypeName();
-
- if (javaTypeName == null)
- {
- log.warn("Cannot obtain java type mapping for: " + xmlType);
- javaTypeName = new UnqualifiedFaultException(xmlType).getClass().getName();
- }
-
- FaultMetaData faultMetaData = new FaultMetaData(opMetaData, xmlName, xmlType, javaTypeName);
- opMetaData.addFault(faultMetaData);
- }
- }
-
}
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 2010-05-21 11:46:24 UTC (rev 12302)
+++ stack/native/trunk/modules/core/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSClientMetaDataBuilder.java 2010-05-21 12:12:58 UTC (rev 12303)
@@ -243,39 +243,6 @@
}
- protected void setupOperationsFromWSDL(EndpointMetaData epMetaData, WSDLEndpoint wsdlEndpoint)
- {
- WSDLDefinitions wsdlDefinitions = wsdlEndpoint.getInterface().getWsdlDefinitions();
-
- // For every WSDL interface operation build the OperationMetaData
- WSDLInterface wsdlInterface = wsdlEndpoint.getInterface();
- for (WSDLInterfaceOperation wsdlOperation : wsdlInterface.getOperations())
- {
- String opName = wsdlOperation.getName().toString();
- QName opQName = wsdlOperation.getName();
-
- // Set java method name
- String javaName = opName.substring(0, 1).toLowerCase() + opName.substring(1);
-
- OperationMetaData opMetaData = new OperationMetaData(epMetaData, opQName, javaName);
- epMetaData.addOperation(opMetaData);
-
- // Set the operation style
- String style = wsdlOperation.getStyle();
- epMetaData.setStyle((Constants.URI_STYLE_DOCUMENT.equals(style) ? Style.DOCUMENT : Style.RPC));
-
- // Set the operation MEP
- if (Constants.WSDL20_PATTERN_IN_ONLY.equals(wsdlOperation.getPattern()))
- opMetaData.setOneWay(true);
-
- // Set the operation SOAPAction
- WSDLBinding wsdlBinding = wsdlDefinitions.getBindingByInterfaceName(wsdlInterface.getName());
- WSDLBindingOperation wsdlBindingOperation = wsdlBinding.getOperationByRef(opQName);
- if (wsdlBindingOperation != null)
- opMetaData.setSOAPAction(wsdlBindingOperation.getSOAPAction());
- }
- }
-
public void rebuildEndpointMetaData(EndpointMetaData epMetaData, Class<?> wsClass)
{
if(log.isDebugEnabled()) log.debug("START: rebuildMetaData");
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 2010-05-21 11:46:24 UTC (rev 12302)
+++ stack/native/trunk/modules/core/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSMetaDataBuilder.java 2010-05-21 12:12:58 UTC (rev 12303)
@@ -88,6 +88,9 @@
import org.jboss.ws.metadata.wsdl.WSDLBindingMessageReference;
import org.jboss.ws.metadata.wsdl.WSDLBindingOperation;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
+import org.jboss.ws.metadata.wsdl.WSDLEndpoint;
+import org.jboss.ws.metadata.wsdl.WSDLInterface;
+import org.jboss.ws.metadata.wsdl.WSDLInterfaceOperation;
import org.jboss.ws.metadata.wsdl.WSDLMIMEPart;
import org.jboss.ws.metadata.wsdl.WSDLUtils;
import org.jboss.wsf.common.JavaUtils;
@@ -341,7 +344,12 @@
QName xmlName = new QName(namespace, name);
- FaultMetaData fmd = new FaultMetaData(opMetaData, xmlName, xmlType, exception.getName());
+ FaultMetaData fmd = opMetaData.getFault(xmlName);
+ if (fmd == null)
+ {
+ fmd = new FaultMetaData(opMetaData, xmlName, xmlType, exception.getName());
+ }
+ fmd.setJavaTypeName(exception.getName());
fmd.setFaultBeanName(faultBean);
if (fmd.loadFaultBean() == null)
@@ -565,7 +573,7 @@
* is generated using the metadata defaulting algorithm as if wsdl:input[@name] is
* not present in WSDL.
*/
- private String getInputActionName(final Method method, final EndpointMetaData endpointMD, final OperationMetaData operationMD)
+ private String getInputActionName(final Method method, final EndpointMetaData endpointMD, final OperationMetaData operationMD, final AddressingOpMetaExt addrExt)
{
String actionInput = null;
Action actionAnn = method.getAnnotation(Action.class);
@@ -586,6 +594,9 @@
if (webMethodAction != null)
return webMethodAction;
+ if (addrExt.getInboundAction() != null)
+ return addrExt.getInboundAction();
+
String tns = this.getEndpointNamespace(endpointMD);
String portTypeName = endpointMD.getPortTypeName().getLocalPart();
String opName = operationMD.getQName().getLocalPart();
@@ -600,7 +611,7 @@
* is generated using the metadata defaulting algorithm as if wsdl:output[@name] is not present in
* WSDL.
*/
- private String getOutputActionName(final Method method, final EndpointMetaData endpointMD, final OperationMetaData operationMD)
+ private String getOutputActionName(final Method method, final EndpointMetaData endpointMD, final OperationMetaData operationMD, final AddressingOpMetaExt addrExt)
{
if (operationMD.isOneWay())
return null;
@@ -609,6 +620,9 @@
if ((actionAnn != null) && (!"".equals(actionAnn.output())))
return actionAnn.output();
+ if (addrExt.getOutboundAction() != null)
+ return addrExt.getOutboundAction();
+
String tns = this.getEndpointNamespace(endpointMD);
String portTypeName = endpointMD.getPortTypeName().getLocalPart();
String opName = operationMD.getQName().getLocalPart();
@@ -624,7 +638,7 @@
* generated using the metadata defaulting algorithm as if wsdl:fault[@name] is the corresponding
* exception class name.
*/
- private String getFaultActionName(final Method method, final EndpointMetaData endpointMD, final OperationMetaData operationMD, final FaultMetaData faultMD)
+ private String getFaultActionName(final Method method, final EndpointMetaData endpointMD, final OperationMetaData operationMD, final FaultMetaData faultMD, final AddressingOpMetaExt addrExt)
{
if (operationMD.isOneWay())
return null;
@@ -647,6 +661,10 @@
if ((faultActionAnn != null) && (!"".equals(faultActionAnn.value())))
return faultActionAnn.value();
+ final String faultAction = addrExt.getFaultAction(faultMD.getXmlName());
+ if (faultAction != null)
+ return faultAction;
+
String tns = this.getEndpointNamespace(endpointMD);
String portTypeName = endpointMD.getPortTypeName().getLocalPart();
String opName = operationMD.getQName().getLocalPart();
@@ -671,16 +689,24 @@
private void processMetaExtensions(Method method, EndpointMetaData endpointMD, OperationMetaData operationMD)
{
AddressingProperties ADDR = new AddressingPropertiesImpl();
- AddressingOpMetaExt addrExt = new AddressingOpMetaExt(ADDR.getNamespaceURI());
- addrExt.setInboundAction(this.getInputActionName(method, endpointMD, operationMD));
- addrExt.setOutboundAction(this.getOutputActionName(method, endpointMD, operationMD));
+ AddressingOpMetaExt addrExt = (AddressingOpMetaExt)operationMD.getExtension(ADDR.getNamespaceURI());
+ if (addrExt == null)
+ {
+ addrExt = new AddressingOpMetaExt(ADDR.getNamespaceURI());
+ operationMD.addExtension(addrExt);
+ }
+
+ final String inboundAction = this.getInputActionName(method, endpointMD, operationMD, addrExt);
+ addrExt.setInboundAction(inboundAction);
+
+ final String outboundAction = this.getOutputActionName(method, endpointMD, operationMD, addrExt);
+ addrExt.setOutboundAction(outboundAction);
+
for (FaultMetaData faultMD : operationMD.getFaults())
{
- addrExt.setFaultAction(faultMD.getFaultBeanName(), this.getFaultActionName(method, endpointMD, operationMD, faultMD));
+ addrExt.setFaultAction(faultMD.getXmlName(), this.getFaultActionName(method, endpointMD, operationMD, faultMD, addrExt));
}
-
- operationMD.addExtension(addrExt);
}
private void processWebMethod(EndpointMetaData epMetaData, Method method)
@@ -706,10 +732,19 @@
}
String targetNS = epMetaData.getPortTypeName().getNamespaceURI();
- OperationMetaData opMetaData = new OperationMetaData(epMetaData, new QName(targetNS, operationName), javaName);
+ OperationMetaData opMetaData = epMetaData.getOperation(new QName(targetNS, operationName));
+ if (opMetaData == null)
+ {
+ opMetaData = new OperationMetaData(epMetaData, new QName(targetNS, operationName), javaName);
+ epMetaData.addOperation(opMetaData);
+ opMetaData.setSOAPAction(soapAction);
+ }
+ else
+ {
+ opMetaData.setJavaName(javaName);
+ }
+
opMetaData.setOneWay(method.isAnnotationPresent(Oneway.class));
- opMetaData.setSOAPAction(soapAction);
-
if (method.isAnnotationPresent(SOAPBinding.class))
{
SOAPBinding anBinding = method.getAnnotation(SOAPBinding.class);
@@ -723,8 +758,6 @@
opMetaData.setDocumentation(method.getAnnotation(Documentation.class).content());
}
- epMetaData.addOperation(opMetaData);
-
// Build parameter meta data
// Attachment annotations on SEI parameters
List<AttachmentScanResult> scanResult = ReflectiveAttachmentRefScanner.scanMethod(method);
@@ -1025,7 +1058,8 @@
protected void processWebMethods(EndpointMetaData epMetaData, Class<?> wsClass)
{
- epMetaData.clearOperations();
+ if (epMetaData.getFeature(AddressingFeature.class) == null)
+ epMetaData.clearOperations();
// Process @WebMethod annotations
boolean webMethodFound = false;
@@ -1156,7 +1190,46 @@
}
}
}
+
+ protected void setupOperationsFromWSDL(EndpointMetaData epMetaData, WSDLEndpoint wsdlEndpoint)
+ {
+ WSDLDefinitions wsdlDefinitions = wsdlEndpoint.getInterface().getWsdlDefinitions();
+ // For every WSDL interface operation build the OperationMetaData
+ WSDLInterface wsdlInterface = wsdlEndpoint.getInterface();
+ for (WSDLInterfaceOperation wsdlOperation : wsdlInterface.getOperations())
+ {
+ String opName = wsdlOperation.getName().toString();
+ QName opQName = wsdlOperation.getName();
+
+ // Set java method name
+ String javaName = opName.substring(0, 1).toLowerCase() + opName.substring(1);
+
+ OperationMetaData opMetaData = new OperationMetaData(epMetaData, opQName, javaName);
+ epMetaData.addOperation(opMetaData);
+
+ // Set the operation style
+ String style = wsdlOperation.getStyle();
+ epMetaData.setStyle((Constants.URI_STYLE_DOCUMENT.equals(style) ? Style.DOCUMENT : Style.RPC));
+
+ // Set the operation MEP
+ if (Constants.WSDL20_PATTERN_IN_ONLY.equals(wsdlOperation.getPattern()))
+ opMetaData.setOneWay(true);
+
+ // Set the operation SOAPAction
+ WSDLBinding wsdlBinding = wsdlDefinitions.getBindingByInterfaceName(wsdlInterface.getName());
+ WSDLBindingOperation wsdlBindingOperation = wsdlBinding.getOperationByRef(opQName);
+ if (wsdlBindingOperation != null)
+ opMetaData.setSOAPAction(wsdlBindingOperation.getSOAPAction());
+
+ // Build operation faults
+ buildFaultMetaData(opMetaData, wsdlOperation);
+
+ // process further operation extensions
+ processOpMetaExtensions(opMetaData, wsdlOperation);
+ }
+ }
+
/**
* Set the wrapper generator for this builder.
*/
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 2010-05-21 11:46:24 UTC (rev 12302)
+++ stack/native/trunk/modules/core/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSWebServiceMetaDataBuilder.java 2010-05-21 12:12:58 UTC (rev 12303)
@@ -26,6 +26,8 @@
import java.io.PrintStream;
import java.io.Writer;
import java.net.URL;
+import java.util.ArrayList;
+import java.util.List;
import javax.jws.HandlerChain;
import javax.jws.WebService;
@@ -40,12 +42,17 @@
import org.jboss.ws.extensions.policy.annotation.PolicyAttachment;
import org.jboss.ws.extensions.policy.metadata.PolicyMetaDataBuilder;
import org.jboss.ws.metadata.builder.MetaDataBuilder;
+import org.jboss.ws.metadata.umdm.ClientEndpointMetaData;
import org.jboss.ws.metadata.umdm.EndpointMetaData;
import org.jboss.ws.metadata.umdm.HandlerMetaDataJAXWS;
import org.jboss.ws.metadata.umdm.ServerEndpointMetaData;
import org.jboss.ws.metadata.umdm.ServiceMetaData;
import org.jboss.ws.metadata.umdm.UnifiedMetaData;
+import org.jboss.ws.metadata.umdm.EndpointMetaData.Type;
+import org.jboss.ws.metadata.wsdl.WSDLBinding;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
+import org.jboss.ws.metadata.wsdl.WSDLEndpoint;
+import org.jboss.ws.metadata.wsdl.WSDLService;
import org.jboss.ws.metadata.wsdl.WSDLUtils;
import org.jboss.ws.metadata.wsdl.xmlschema.JBossXSModel;
import org.jboss.ws.metadata.wsse.WSSecurityConfigFactory;
@@ -151,6 +158,12 @@
if (seiClass.isAnnotationPresent(Documentation.class))
sepMetaData.setDocumentation(seiClass.getAnnotation(Documentation.class).content());
+ if (!toolMode)
+ {
+ processPolicies(serviceMetaData, sepMetaData);
+ setupOperationsFromWSDL(serviceMetaData, sepMetaData);
+ }
+
// Process web methods
processWebMethods(sepMetaData, seiClass);
@@ -172,7 +185,7 @@
// The server must always generate WSDL
if (generateWsdl || !toolMode)
- processOrGenerateWSDL(seiClass, serviceMetaData, result.wsdlLocation, sepMetaData);
+ generateWSDL(seiClass, serviceMetaData, sepMetaData);
// No need to process endpoint items if we are in tool mode
if (toolMode)
@@ -229,6 +242,70 @@
}
}
+ private void processPolicies(ServiceMetaData serviceMetaData, EndpointMetaData epMetaData)
+ {
+ final URL wsdlLocation = serviceMetaData.getWsdlLocation();
+
+ if (wsdlLocation != null)
+ {
+ PolicyMetaDataBuilder policyBuilder = PolicyMetaDataBuilder.getServerSidePolicyMetaDataBuilder(toolMode);
+ WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
+ //we can no longer use the user provided wsdl without parsing it right now, since we
+ //need to look for policies and eventually choose the supported policy alternatives
+ WSDLDefinitions wsdlDefinitions = factory.parse(wsdlLocation);
+ policyBuilder.processPolicyExtensions(epMetaData, wsdlDefinitions);
+ //now we have the UMDM containing policy data; anyway we can't write a new wsdl file with
+ //the supported alternatives and so on, since we need to publish the file the user provided
+ serviceMetaData.setWsdlLocation(wsdlLocation);
+ }
+ }
+
+ private void setupOperationsFromWSDL(ServiceMetaData serviceMetaData, EndpointMetaData epMetaData)
+ {
+ WSDLDefinitions wsdlDefinitions = serviceMetaData.getWsdlDefinitions();
+ if (wsdlDefinitions == null)
+ return; // nothing to parse - WSDL will be generated
+
+ QName serviceName = serviceMetaData.getServiceName();
+
+ // Get the WSDL service
+ WSDLService wsdlService = null;
+ if (serviceName == null)
+ {
+ if (wsdlDefinitions.getServices().length != 1)
+ throw new IllegalArgumentException("Expected a single service element");
+
+ wsdlService = wsdlDefinitions.getServices()[0];
+ serviceMetaData.setServiceName(wsdlService.getName());
+ }
+ else
+ {
+ wsdlService = wsdlDefinitions.getService(serviceName);
+ }
+ if (wsdlService == null)
+ {
+ List<QName> serviceNames = new ArrayList<QName>();
+ for (WSDLService wsdls : wsdlDefinitions.getServices())
+ serviceNames.add(wsdls.getName());
+
+ log.warn("Cannot obtain wsdl service: " + serviceName + " we have " + serviceNames);
+ return;
+ }
+
+ // Build endpoint meta data
+
+ for (WSDLEndpoint wsdlEndpoint : wsdlService.getEndpoints())
+ {
+ QName bindingName = wsdlEndpoint.getBinding();
+ WSDLBinding wsdlBinding = wsdlEndpoint.getWsdlService().getWsdlDefinitions().getBinding(bindingName);
+ String bindingType = wsdlBinding.getType();
+ if (Constants.NS_SOAP11.equals(bindingType) || Constants.NS_SOAP12.equals(bindingType))
+ {
+ setupOperationsFromWSDL(epMetaData, wsdlEndpoint);
+ }
+ }
+ }
+
/**
* With JAX-WS the use of webservices.xml is optional since the annotations can be used
* to specify most of the information specified in this deployment descriptor file.
@@ -384,38 +461,25 @@
return result;
}
- private void processOrGenerateWSDL(Class wsClass, ServiceMetaData serviceMetaData, URL wsdlLocation, EndpointMetaData epMetaData)
+ private void generateWSDL(Class wsClass, ServiceMetaData serviceMetaData, EndpointMetaData epMetaData)
{
- PolicyMetaDataBuilder policyBuilder = PolicyMetaDataBuilder.getServerSidePolicyMetaDataBuilder(toolMode);
- try
+ final URL wsdlLocation = serviceMetaData.getWsdlLocation();
+
+ if (wsdlLocation == null)
{
- WSDLGenerator generator = new JAXBWSDLGenerator(jaxbCtx);
- generator.setExtension(extension);
- WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
- if (wsdlLocation != null)
+ try
{
- //we can no longer use the user provided wsdl without parsing it right now, since we
- //need to look for policies and eventually choose the supported policy alternatives
- WSDLDefinitions wsdlDefinitions = factory.parse(wsdlLocation);
- policyBuilder.processPolicyExtensions(epMetaData, wsdlDefinitions);
- //now we have the UMDM containing policy data; anyway we can't write a new wsdl file with
- //the supported alternatives and so on, since we need to publish the file the user provided
- serviceMetaData.setWsdlLocation(wsdlLocation);
- }
- else
- {
+ WSDLGenerator generator = new JAXBWSDLGenerator(jaxbCtx);
+ generator.setExtension(extension);
+
WSDLDefinitions wsdlDefinitions = generator.generate(serviceMetaData);
writeWsdl(serviceMetaData, wsdlDefinitions, epMetaData);
}
+ catch (IOException e)
+ {
+ throw new WSException("Cannot write generated wsdl", e);
+ }
}
- catch (RuntimeException rte)
- {
- throw rte;
- }
- catch (IOException e)
- {
- throw new WSException("Cannot write generated wsdl", e);
- }
}
private void writeWsdl(ServiceMetaData serviceMetaData, WSDLDefinitions wsdlDefinitions, EndpointMetaData epMetaData) throws IOException
Modified: stack/native/trunk/modules/core/src/main/java/org/jboss/ws/metadata/umdm/FaultMetaData.java
===================================================================
--- stack/native/trunk/modules/core/src/main/java/org/jboss/ws/metadata/umdm/FaultMetaData.java 2010-05-21 11:46:24 UTC (rev 12302)
+++ stack/native/trunk/modules/core/src/main/java/org/jboss/ws/metadata/umdm/FaultMetaData.java 2010-05-21 12:12:58 UTC (rev 12303)
@@ -113,6 +113,11 @@
this.xmlType = xmlType;
}
+
+ public void setJavaTypeName(String javaTypeName)
+ {
+ this.javaTypeName = javaTypeName;
+ }
public String getJavaTypeName()
{
Modified: stack/native/trunk/modules/core/src/main/java/org/jboss/ws/metadata/umdm/OperationMetaData.java
===================================================================
--- stack/native/trunk/modules/core/src/main/java/org/jboss/ws/metadata/umdm/OperationMetaData.java 2010-05-21 11:46:24 UTC (rev 12302)
+++ stack/native/trunk/modules/core/src/main/java/org/jboss/ws/metadata/umdm/OperationMetaData.java 2010-05-21 12:12:58 UTC (rev 12303)
@@ -88,7 +88,7 @@
String localPart = qname.getLocalPart();
this.responseName = new QName(nsURI, localPart + "Response");
}
-
+
public EndpointMetaData getEndpointMetaData()
{
return epMetaData;
@@ -154,6 +154,11 @@
return getStyle() == Style.DOCUMENT && getParameterStyle() == ParameterStyle.WRAPPED;
}
+ public void setJavaName(String javaName)
+ {
+ this.javaName = javaName;
+ }
+
public String getJavaName()
{
return javaName;
Modified: stack/native/trunk/modules/core/src/main/java/org/jboss/ws/tools/wsdl/WSDL11Reader.java
===================================================================
--- stack/native/trunk/modules/core/src/main/java/org/jboss/ws/tools/wsdl/WSDL11Reader.java 2010-05-21 11:46:24 UTC (rev 12302)
+++ stack/native/trunk/modules/core/src/main/java/org/jboss/ws/tools/wsdl/WSDL11Reader.java 2010-05-21 12:12:58 UTC (rev 12303)
@@ -109,6 +109,7 @@
import org.jboss.ws.tools.JavaToXSD;
import org.jboss.wsf.common.DOMUtils;
import org.jboss.wsf.common.DOMWriter;
+import org.jboss.wsf.common.addressing.AddressingConstants;
import org.w3c.dom.Attr;
import org.w3c.dom.Element;
import org.w3c.dom.NamedNodeMap;
@@ -791,54 +792,57 @@
}
}
- private void processPortTypeOperationInput(Definition srcWsdl, Operation srcOperation, WSDLInterfaceOperation destOperation, PortType srcPortType,
- WSDLBinding destBinding) throws WSDLException
+ private void processPortTypeOperationInput(Definition srcWsdl, Operation wsdlOperation, WSDLInterfaceOperation umdmOperation, PortType wsdlPortType,
+ WSDLBinding umdmBinding) throws WSDLException
{
- Input srcInput = srcOperation.getInput();
- if (srcInput != null)
+ Input wsdlOperationInput = wsdlOperation.getInput();
+ if (wsdlOperationInput != null)
{
- Message srcMessage = srcInput.getMessage();
+ Message srcMessage = wsdlOperationInput.getMessage();
if (srcMessage == null)
- throw new WSDLException(WSDLException.INVALID_WSDL, "Cannot find input message on operation " + srcOperation.getName() + " on port type: "
- + srcPortType.getQName());
+ throw new WSDLException(WSDLException.INVALID_WSDL, "Cannot find input message on operation " + wsdlOperation.getName() + " on port type: "
+ + wsdlPortType.getQName());
log.trace("processOperationInput: " + srcMessage.getQName());
- QName wsaAction = (QName)srcInput.getExtensionAttribute(Constants.WSDL_ATTRIBUTE_WSA_ACTION);
+ QName wsaAction = (QName)wsdlOperationInput.getExtensionAttribute(Constants.WSDL_ATTRIBUTE_WSA_ACTION);
if (wsaAction != null)
- destOperation.addProperty(new WSDLProperty(Constants.WSDL_PROPERTY_ACTION_IN, wsaAction.getLocalPart()));
-
- List<String> paramOrder = (List<String>)srcOperation.getParameterOrdering();
+ umdmOperation.addProperty(new WSDLProperty(Constants.WSDL_PROPERTY_ACTION_IN, wsaAction.getLocalPart()));
+ wsaAction = (QName)wsdlOperationInput.getExtensionAttribute(AddressingConstants.Metadata.Attributes.ACTION_QNAME);
+ if (wsaAction != null)
+ umdmOperation.addProperty(new WSDLProperty(Constants.WSDL_PROPERTY_ACTION_IN, wsaAction.getLocalPart()));
+
+ List<String> paramOrder = (List<String>)wsdlOperation.getParameterOrdering();
if (paramOrder != null)
{
for (String name : paramOrder)
{
if (srcMessage.getPart(name) != null)
- destOperation.addRpcSignatureItem(new WSDLRPCSignatureItem(name));
+ umdmOperation.addRpcSignatureItem(new WSDLRPCSignatureItem(name));
}
}
- WSDLInterfaceOperationInput rpcInput = new WSDLInterfaceOperationInput(destOperation);
+ WSDLInterfaceOperationInput rpcInput = new WSDLInterfaceOperationInput(umdmOperation);
for (Part srcPart : (List<Part>)srcMessage.getOrderedParts(paramOrder))
{
// Skip SWA attachment parts
- if (ignorePart(srcPortType, srcPart))
+ if (ignorePart(wsdlPortType, srcPart))
continue;
- if (Constants.URI_STYLE_DOCUMENT == destOperation.getStyle())
+ if (Constants.URI_STYLE_DOCUMENT == umdmOperation.getStyle())
{
- WSDLInterfaceOperationInput destInput = new WSDLInterfaceOperationInput(destOperation);
- QName elementName = messagePartToElementName(srcMessage, srcPart, destOperation, destBinding);
+ WSDLInterfaceOperationInput destInput = new WSDLInterfaceOperationInput(umdmOperation);
+ QName elementName = messagePartToElementName(srcMessage, srcPart, umdmOperation, umdmBinding);
destInput.setElement(elementName);
//Lets remember the Message name
destInput.setMessageName(srcMessage.getQName());
- destOperation.addProperty(new WSDLProperty(Constants.WSDL_PROPERTY_MESSAGE_NAME_IN, srcMessage.getQName().getLocalPart()));
+ umdmOperation.addProperty(new WSDLProperty(Constants.WSDL_PROPERTY_MESSAGE_NAME_IN, wsdlOperationInput.getName()));
destInput.setPartName(srcPart.getName());
processUnknownExtensibilityElements(srcMessage, destInput);
- destOperation.addInput(destInput);
+ umdmOperation.addInput(destInput);
}
else
{
@@ -852,18 +856,18 @@
}
else
{
- messagePartToElementName(srcMessage, srcPart, destOperation, destBinding);
+ messagePartToElementName(srcMessage, srcPart, umdmOperation, umdmBinding);
}
}
}
- if (Constants.URI_STYLE_RPC == destOperation.getStyle())
+ if (Constants.URI_STYLE_RPC == umdmOperation.getStyle())
{
// This is really a place holder, but also the actual value used in
// WSDL 2.0 RPC bindings
- rpcInput.setElement(destOperation.getName());
+ rpcInput.setElement(umdmOperation.getName());
rpcInput.setMessageName(srcMessage.getQName());
processUnknownExtensibilityElements(srcMessage, rpcInput);
- destOperation.addInput(rpcInput);
+ umdmOperation.addInput(rpcInput);
}
}
}
@@ -885,65 +889,68 @@
return canBeSkipped;
}
- private void processPortTypeOperationOutput(Definition srcWsdl, Operation srcOperation, WSDLInterfaceOperation destOperation, PortType srcPortType,
- WSDLBinding destBinding) throws WSDLException
+ private void processPortTypeOperationOutput(Definition srcWsdl, Operation wsdlOperation, WSDLInterfaceOperation umdmOperation, PortType wsdlPortType,
+ WSDLBinding umdmBinding) throws WSDLException
{
- Output srcOutput = srcOperation.getOutput();
- if (srcOutput == null)
+ Output wsdlOperationOutput = wsdlOperation.getOutput();
+ if (wsdlOperationOutput == null)
{
- destOperation.setPattern(Constants.WSDL20_PATTERN_IN_ONLY);
+ umdmOperation.setPattern(Constants.WSDL20_PATTERN_IN_ONLY);
return;
}
- Message srcMessage = srcOutput.getMessage();
- if (srcMessage == null)
- throw new WSDLException(WSDLException.INVALID_WSDL, "Cannot find output message on operation " + srcOperation.getName() + " on port type: "
- + srcPortType.getQName());
+ Message wsdlMessage = wsdlOperationOutput.getMessage();
+ if (wsdlMessage == null)
+ throw new WSDLException(WSDLException.INVALID_WSDL, "Cannot find output message on operation " + wsdlOperation.getName() + " on port type: "
+ + wsdlPortType.getQName());
- log.trace("processOperationOutput: " + srcMessage.getQName());
+ log.trace("processOperationOutput: " + wsdlMessage.getQName());
- destOperation.setPattern(Constants.WSDL20_PATTERN_IN_OUT);
- QName wsaAction = (QName)srcOutput.getExtensionAttribute(Constants.WSDL_ATTRIBUTE_WSA_ACTION);
+ umdmOperation.setPattern(Constants.WSDL20_PATTERN_IN_OUT);
+ QName wsaAction = (QName)wsdlOperationOutput.getExtensionAttribute(Constants.WSDL_ATTRIBUTE_WSA_ACTION);
if (wsaAction != null)
- destOperation.addProperty(new WSDLProperty(Constants.WSDL_PROPERTY_ACTION_OUT, wsaAction.getLocalPart()));
+ umdmOperation.addProperty(new WSDLProperty(Constants.WSDL_PROPERTY_ACTION_OUT, wsaAction.getLocalPart()));
+ wsaAction = (QName)wsdlOperationOutput.getExtensionAttribute(AddressingConstants.Metadata.Attributes.ACTION_QNAME);
+ if (wsaAction != null)
+ umdmOperation.addProperty(new WSDLProperty(Constants.WSDL_PROPERTY_ACTION_OUT, wsaAction.getLocalPart()));
- List<String> paramOrder = (List<String>)srcOperation.getParameterOrdering();
+ List<String> paramOrder = (List<String>)wsdlOperation.getParameterOrdering();
if (paramOrder != null)
{
for (String name : paramOrder)
{
- if (srcMessage.getPart(name) != null)
+ if (wsdlMessage.getPart(name) != null)
{
- WSDLRPCSignatureItem item = destOperation.getRpcSignatureitem(name);
+ WSDLRPCSignatureItem item = umdmOperation.getRpcSignatureitem(name);
if (item != null)
item.setDirection(Direction.INOUT);
- else destOperation.addRpcSignatureItem(new WSDLRPCSignatureItem(name, Direction.OUT));
+ else umdmOperation.addRpcSignatureItem(new WSDLRPCSignatureItem(name, Direction.OUT));
}
}
}
- WSDLInterfaceOperationOutput rpcOutput = new WSDLInterfaceOperationOutput(destOperation);
- for (Part srcPart : (List<Part>)srcMessage.getOrderedParts(null))
+ WSDLInterfaceOperationOutput umdmOperationOutput = new WSDLInterfaceOperationOutput(umdmOperation);
+ for (Part srcPart : (List<Part>)wsdlMessage.getOrderedParts(null))
{
// Skip SWA attachment parts
- if (ignorePart(srcPortType, srcPart))
+ if (ignorePart(wsdlPortType, srcPart))
continue;
- if (Constants.URI_STYLE_DOCUMENT == destOperation.getStyle())
+ if (Constants.URI_STYLE_DOCUMENT == umdmOperation.getStyle())
{
- WSDLInterfaceOperationOutput destOutput = new WSDLInterfaceOperationOutput(destOperation);
+ WSDLInterfaceOperationOutput destOutput = new WSDLInterfaceOperationOutput(umdmOperation);
- QName elementName = messagePartToElementName(srcMessage, srcPart, destOperation, destBinding);
+ QName elementName = messagePartToElementName(wsdlMessage, srcPart, umdmOperation, umdmBinding);
destOutput.setElement(elementName);
// Lets remember the Message name
- destOutput.setMessageName(srcMessage.getQName());
- destOperation.addProperty(new WSDLProperty(Constants.WSDL_PROPERTY_MESSAGE_NAME_OUT, srcMessage.getQName().getLocalPart()));
+ destOutput.setMessageName(wsdlMessage.getQName());
+ umdmOperation.addProperty(new WSDLProperty(Constants.WSDL_PROPERTY_MESSAGE_NAME_OUT, wsdlOperationOutput.getName()));
// Remember the original part name
destOutput.setPartName(srcPart.getName());
- destOperation.addOutput(destOutput);
+ umdmOperation.addOutput(destOutput);
}
else
{
@@ -952,19 +959,19 @@
// binding will pick it up
QName xmlType = srcPart.getTypeName();
if (xmlType != null)
- rpcOutput.addChildPart(new WSDLRPCPart(srcPart.getName(), destWsdl.registerQName(xmlType)));
- else messagePartToElementName(srcMessage, srcPart, destOperation, destBinding);
+ umdmOperationOutput.addChildPart(new WSDLRPCPart(srcPart.getName(), destWsdl.registerQName(xmlType)));
+ else messagePartToElementName(wsdlMessage, srcPart, umdmOperation, umdmBinding);
}
}
- if (Constants.URI_STYLE_RPC == destOperation.getStyle())
+ if (Constants.URI_STYLE_RPC == umdmOperation.getStyle())
{
// This is really a place holder, but also the actual value used in
// WSDL 2.0 RPC bindings
- QName name = destOperation.getName();
- rpcOutput.setElement(new QName(name.getNamespaceURI(), name.getLocalPart() + "Response"));
- rpcOutput.setMessageName(srcMessage.getQName());
- destOperation.addOutput(rpcOutput);
+ QName name = umdmOperation.getName();
+ umdmOperationOutput.setElement(new QName(name.getNamespaceURI(), name.getLocalPart() + "Response"));
+ umdmOperationOutput.setMessageName(wsdlMessage.getQName());
+ umdmOperation.addOutput(umdmOperationOutput);
}
}
@@ -981,16 +988,26 @@
}
}
- private void processOperationFault(WSDLInterfaceOperation destOperation, WSDLInterface destInterface, Fault srcFault) throws WSDLException
+ private void processOperationFault(WSDLInterfaceOperation umdmOperation, WSDLInterface umdmInterface, Fault wsdlFault) throws WSDLException
{
- String faultName = srcFault.getName();
+ String faultName = wsdlFault.getName();
log.trace("processOperationFault: " + faultName);
- WSDLInterfaceFault destFault = new WSDLInterfaceFault(destInterface, faultName);
- Message message = srcFault.getMessage();
- QName messageName = message.getQName();
+ WSDLInterfaceFault umdmFault = new WSDLInterfaceFault(umdmInterface, faultName);
+ Message wsdlMessage = wsdlFault.getMessage();
+ QName messageName = wsdlMessage.getQName();
- Map partsMap = message.getParts();
+ WSDLInterfaceOperationOutfault opOutFault = new WSDLInterfaceOperationOutfault(umdmOperation);
+ QName wsaAction = (QName)wsdlFault.getExtensionAttribute(Constants.WSDL_ATTRIBUTE_WSA_ACTION);
+ if (wsaAction != null)
+ opOutFault.addProperty(new WSDLProperty(Constants.WSDL_PROPERTY_ACTION_FAULT, wsaAction.getLocalPart()));
+ wsaAction = (QName)wsdlFault.getExtensionAttribute(AddressingConstants.Metadata.Attributes.ACTION_QNAME);
+ if (wsaAction != null)
+ opOutFault.addProperty(new WSDLProperty(Constants.WSDL_PROPERTY_ACTION_FAULT, wsaAction.getLocalPart()));
+
+ opOutFault.addProperty(new WSDLProperty(Constants.WSDL_PROPERTY_MESSAGE_NAME_FAULT, faultName));
+
+ Map partsMap = wsdlMessage.getParts();
if (partsMap.size() != 1)
throw new WSDLException(WSDLException.INVALID_WSDL, "Unsupported number of fault parts in message " + messageName);
@@ -999,21 +1016,20 @@
if (xmlName != null)
{
- destFault.setElement(xmlName);
+ umdmFault.setElement(xmlName);
}
else
{
- destFault.setElement(messageName);
+ umdmFault.setElement(messageName);
log.warn("Unsupported fault message part in message: " + messageName);
}
// Add the fault to the interface
- destInterface.addFault(destFault);
+ umdmInterface.addFault(umdmFault);
// Add the fault refererence to the operation
- WSDLInterfaceOperationOutfault opOutFault = new WSDLInterfaceOperationOutfault(destOperation);
- opOutFault.setRef(destFault.getName());
- destOperation.addOutfault(opOutFault);
+ opOutFault.setRef(umdmFault.getName());
+ umdmOperation.addOutfault(opOutFault);
}
/** Translate the message part name into an XML element name.
Modified: stack/native/trunk/modules/core/src/main/java/org/jboss/ws/tools/wsdl/WSDLGenerator.java
===================================================================
--- stack/native/trunk/modules/core/src/main/java/org/jboss/ws/tools/wsdl/WSDLGenerator.java 2010-05-21 11:46:24 UTC (rev 12302)
+++ stack/native/trunk/modules/core/src/main/java/org/jboss/ws/tools/wsdl/WSDLGenerator.java 2010-05-21 12:12:58 UTC (rev 12303)
@@ -569,7 +569,7 @@
AddressingOpMetaExt addrExt = this.getAddressingMD(operationMD);
if (addrExt != null)
{
- fault.setAction(addrExt.getFaultAction(faultMD.getFaultBeanName()));
+ fault.setAction(addrExt.getFaultAction(faultMD.getXmlName()));
}
}
15 years, 11 months
JBossWS SVN: r12302 - in stack/native/branches/jbossws-native-3.1.2/modules/testsuite: native-tests/scripts and 8 other directories.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2010-05-21 07:46:24 -0400 (Fri, 21 May 2010)
New Revision: 12302
Added:
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxrpc/samples/jmstransport/META-INF-hq/
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxrpc/samples/jmstransport/META-INF-hq/ejb-jar.xml
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxrpc/samples/jmstransport/META-INF-hq/hornetq-jms.xml
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxrpc/samples/jmstransport/META-INF-hq/jboss.xml
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/samples/dar/META-INF/hornetq-jms.xml
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/samples/dar/hornetq-jms.xml
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/samples/dar/jboss-service.xml
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/samples/jmstransport/META-INF/hornetq-jms.xml
Modified:
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/scripts/build-samples-jaxrpc.xml
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/scripts/build-samples-jaxws.xml
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/samples/jmstransport/JMSTransportTestCase.java
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/samples/dar/AddressingClientTestCase.java
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/samples/dar/JMSClientTestCase.java
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/samples/jmstransport/JMSTransportTestCase.java
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/pom.xml
Log:
[JBPAPP-4359] Fixing tests and adding a m2 profile for using HornetQ version of test archives
Modified: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/scripts/build-samples-jaxrpc.xml
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/scripts/build-samples-jaxrpc.xml 2010-05-21 11:35:28 UTC (rev 12301)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/scripts/build-samples-jaxrpc.xml 2010-05-21 11:46:24 UTC (rev 12302)
@@ -205,6 +205,21 @@
<include name="wsdl/**"/>
</metainf>
</jar>
+ <jar jarfile="${tests.output.dir}/test-libs/jaxrpc-samples-jmstransport-hq.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxrpc/samples/jmstransport/Organization.class"/>
+ <include name="org/jboss/test/ws/jaxrpc/samples/jmstransport/OrganizationJMSEndpoint.class"/>
+ </fileset>
+ <metainf dir="${tests.output.dir}/test-resources/jaxrpc/samples/jmstransport/META-INF">
+ <include name="webservices.xml"/>
+ <include name="jaxrpc-mapping.xml"/>
+ <include name="wsdl/**"/>
+ </metainf>
+ <metainf dir="${tests.output.dir}/test-resources/jaxrpc/samples/jmstransport/META-INF-hq">
+ <include name="ejb-jar.xml"/>
+ <include name="jboss.xml"/>
+ </metainf>
+ </jar>
<jar jarfile="${tests.output.dir}/test-libs/jaxrpc-samples-jmstransport.sar">
<fileset dir="${tests.output.dir}/test-libs">
<include name="jaxrpc-samples-jmstransport.jar"/>
@@ -213,6 +228,14 @@
<include name="jboss-service.xml"/>
</metainf>
</jar>
+ <jar jarfile="${tests.output.dir}/test-libs/jaxrpc-samples-jmstransport-hq.sar">
+ <fileset dir="${tests.output.dir}/test-libs">
+ <include name="jaxrpc-samples-jmstransport-hq.jar"/>
+ </fileset>
+ <metainf dir="${tests.output.dir}/test-resources/jaxrpc/samples/jmstransport/META-INF-hq">
+ <include name="hornetq-jms.xml"/>
+ </metainf>
+ </jar>
<!-- jaxrpc-samples-jsr109ejb-rpc -->
<jar jarfile="${tests.output.dir}/test-libs/jaxrpc-samples-jsr109ejb-rpc.jar">
Modified: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/scripts/build-samples-jaxws.xml
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/scripts/build-samples-jaxws.xml 2010-05-21 11:35:28 UTC (rev 12301)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/scripts/build-samples-jaxws.xml 2010-05-21 11:46:24 UTC (rev 12302)
@@ -60,6 +60,16 @@
<include name="jboss.xml"/>
</metainf>
</jar>
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-samples-dar-queue-hq.sar">
+ <metainf dir="${tests.output.dir}/test-resources/jaxws/samples/dar">
+ <include name="hornetq-jms.xml"/>
+ </metainf>
+ </jar>
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-samples-dar-queue.sar">
+ <metainf dir="${tests.output.dir}/test-resources/jaxws/samples/dar">
+ <include name="jboss-service.xml"/>
+ </metainf>
+ </jar>
<jar jarfile="${tests.output.dir}/test-libs/jaxws-samples-dar-addressing-client.jar">
<fileset dir="${tests.output.dir}/test-classes">
<include name="org/jboss/test/ws/jaxws/samples/dar/generated/*.class"/>
@@ -116,6 +126,15 @@
<include name="jboss-service.xml"/>
</metainf>
</jar>
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-samples-dar-jms-client-hq.sar">
+ <fileset dir="${tests.output.dir}/test-libs">
+ <include name="jaxws-samples-dar-jms-client.war"/>
+ <include name="jaxws-samples-dar-jms-client.jar"/>
+ </fileset>
+ <metainf dir="${tests.output.dir}/test-resources/jaxws/samples/dar/META-INF">
+ <include name="hornetq-jms.xml"/>
+ </metainf>
+ </jar>
<jar jarfile="${tests.output.dir}/test-libs/jaxws-samples-dar-jms-client-test.sar">
<fileset dir="${tests.output.dir}/test-libs">
<include name="jaxws-samples-dar-jms-client.war"/>
@@ -124,6 +143,14 @@
<include name="jboss-service.xml"/>
</metainf>
</jar>
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-samples-dar-jms-client-test-hq.sar">
+ <fileset dir="${tests.output.dir}/test-libs">
+ <include name="jaxws-samples-dar-jms-client.war"/>
+ </fileset>
+ <metainf dir="${tests.output.dir}/test-resources/jaxws/samples/dar/META-INF">
+ <include name="hornetq-jms.xml"/>
+ </metainf>
+ </jar>
<!-- jaxws-samples-jmstransport -->
<jar jarfile="${tests.output.dir}/test-libs/jaxws-samples-jmstransport.jar">
@@ -143,6 +170,16 @@
<include name="jboss-service.xml"/>
</metainf>
</jar>
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-samples-jmstransport-hq.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/samples/jmstransport/Organization.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/jmstransport/OrganizationJMSEndpoint.class"/>
+ </fileset>
+ <metainf dir="${tests.output.dir}/test-resources/jaxws/samples/jmstransport/META-INF">
+ <include name="wsdl/*.wsdl"/>
+ <include name="hornetq-jms.xml"/>
+ </metainf>
+ </jar>
<!-- jaxws-samples-news -->
<jar jarfile="${tests.output.dir}/test-libs/jaxws-samples-news-step1-newspaper.jar">
Modified: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/samples/jmstransport/JMSTransportTestCase.java
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/samples/jmstransport/JMSTransportTestCase.java 2010-05-21 11:35:28 UTC (rev 12301)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/samples/jmstransport/JMSTransportTestCase.java 2010-05-21 11:46:24 UTC (rev 12302)
@@ -52,7 +52,7 @@
public static Test suite() throws Exception
{
- return new JBossWSTestSetup(JMSTransportTestCase.class, "jaxrpc-samples-jmstransport.sar");
+ return new JBossWSTestSetup(JMSTransportTestCase.class, Boolean.getBoolean("use.hornetq") ? "jaxrpc-samples-jmstransport-hq.sar" : "jaxrpc-samples-jmstransport.sar");
}
/**
@@ -110,6 +110,7 @@
assertNotNull("Expected response message", responseListener.resMessage);
assertEquals(DOMUtils.parse(resMessage), DOMUtils.parse(responseListener.resMessage));
+ receiver.close();
con.stop();
session.close();
con.close();
Modified: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/samples/dar/AddressingClientTestCase.java
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/samples/dar/AddressingClientTestCase.java 2010-05-21 11:35:28 UTC (rev 12301)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/samples/dar/AddressingClientTestCase.java 2010-05-21 11:46:24 UTC (rev 12302)
@@ -42,9 +42,13 @@
{
private static final int TEST_RUN_TIME = 6000;
- public static Test suite()
+ public static Test suite() throws Exception
{
- return new JBossWSTestSetup(AddressingClientTestCase.class, "jaxws-samples-dar-addressing-client.war,jaxws-samples-dar-addressing.jar");
+ Test test = new JBossWSTestSetup(AddressingClientTestCase.class, Boolean.getBoolean("use.hornetq") ?
+ "jaxws-samples-dar-queue-hq.sar,jaxws-samples-dar-addressing-client.war,jaxws-samples-dar-addressing.jar"
+ : "jaxws-samples-dar-queue.sar,jaxws-samples-dar-addressing-client.war,jaxws-samples-dar-addressing.jar");
+ Thread.sleep(5000);
+ return test;
}
public void testSync() throws Exception
Modified: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/samples/dar/JMSClientTestCase.java
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/samples/dar/JMSClientTestCase.java 2010-05-21 11:35:28 UTC (rev 12301)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/samples/dar/JMSClientTestCase.java 2010-05-21 11:46:24 UTC (rev 12302)
@@ -51,9 +51,11 @@
{
private static final int TEST_RUN_TIME = 6000;
- public static Test suite()
+ public static Test suite() throws Exception
{
- return new JBossWSTestSetup(JMSClientTestCase.class, "jaxws-samples-dar-jms-client-test.sar,jaxws-samples-dar-jms.jar");
+ Test test = new JBossWSTestSetup(JMSClientTestCase.class, Boolean.getBoolean("use.hornetq") ? "jaxws-samples-dar-jms-client-test-hq.sar,jaxws-samples-dar-jms.jar" : "jaxws-samples-dar-jms-client-test.sar,jaxws-samples-dar-jms.jar");
+ Thread.sleep(5000);
+ return test;
}
public void test() throws Exception
Modified: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/samples/jmstransport/JMSTransportTestCase.java
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/samples/jmstransport/JMSTransportTestCase.java 2010-05-21 11:35:28 UTC (rev 12301)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/samples/jmstransport/JMSTransportTestCase.java 2010-05-21 11:46:24 UTC (rev 12302)
@@ -57,7 +57,9 @@
public static Test suite() throws Exception
{
- return new JBossWSTestSetup(JMSTransportTestCase.class, "jaxws-samples-jmstransport.sar");
+ Test test = new JBossWSTestSetup(JMSTransportTestCase.class, Boolean.getBoolean("use.hornetq") ? "jaxws-samples-jmstransport-hq.jar" : "jaxws-samples-jmstransport.sar");
+ Thread.sleep(5000);
+ return test;
}
public void testPublishedContract() throws Exception
@@ -152,6 +154,7 @@
assertNotNull("Expected response message", responseListener.resMessage);
assertEquals(DOMUtils.parse(resMessage), DOMUtils.parse(responseListener.resMessage));
+ receiver.close();
con.stop();
session.close();
con.close();
Added: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxrpc/samples/jmstransport/META-INF-hq/ejb-jar.xml
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxrpc/samples/jmstransport/META-INF-hq/ejb-jar.xml (rev 0)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxrpc/samples/jmstransport/META-INF-hq/ejb-jar.xml 2010-05-21 11:46:24 UTC (rev 12302)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_2_0.dtd">
+
+<ejb-jar>
+ <enterprise-beans>
+ <message-driven>
+ <ejb-name>OrganizationMDB</ejb-name>
+ <ejb-class>org.jboss.test.ws.jaxrpc.samples.jmstransport.OrganizationJMSEndpoint</ejb-class>
+ <transaction-type>Container</transaction-type>
+ <message-selector></message-selector>
+ <acknowledge-mode>AUTO_ACKNOWLEDGE</acknowledge-mode>
+ <message-driven-destination>
+ <destination-type>javax.jms.Queue</destination-type>
+ <subscription-durability>NonDurable</subscription-durability>
+ </message-driven-destination>
+ </message-driven>
+ </enterprise-beans>
+</ejb-jar>
Property changes on: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxrpc/samples/jmstransport/META-INF-hq/ejb-jar.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxrpc/samples/jmstransport/META-INF-hq/hornetq-jms.xml
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxrpc/samples/jmstransport/META-INF-hq/hornetq-jms.xml (rev 0)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxrpc/samples/jmstransport/META-INF-hq/hornetq-jms.xml 2010-05-21 11:46:24 UTC (rev 12302)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<configuration xmlns="urn:hornetq" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:hornetq /schema/hornetq-jms.xsd">
+ <queue name="RequestQueue">
+ <entry name="/queue/RequestQueue"/>
+ </queue>
+ <queue name="ResponseQueue">
+ <entry name="/queue/ResponseQueue"/>
+ </queue>
+</configuration>
Property changes on: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxrpc/samples/jmstransport/META-INF-hq/hornetq-jms.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxrpc/samples/jmstransport/META-INF-hq/jboss.xml
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxrpc/samples/jmstransport/META-INF-hq/jboss.xml (rev 0)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxrpc/samples/jmstransport/META-INF-hq/jboss.xml 2010-05-21 11:46:24 UTC (rev 12302)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 4.2//EN" "http://www.jboss.org/j2ee/dtd/jboss_4_2.dtd">
+
+<jboss>
+ <enterprise-beans>
+ <message-driven>
+ <ejb-name>OrganizationMDB</ejb-name>
+ <destination-jndi-name>queue/RequestQueue</destination-jndi-name>
+ <depends>org.hornetq:name="RequestQueue",module=JMS,type=Queue</depends>
+ </message-driven>
+ </enterprise-beans>
+</jboss>
Property changes on: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxrpc/samples/jmstransport/META-INF-hq/jboss.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/samples/dar/META-INF/hornetq-jms.xml
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/samples/dar/META-INF/hornetq-jms.xml (rev 0)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/samples/dar/META-INF/hornetq-jms.xml 2010-05-21 11:46:24 UTC (rev 12302)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<configuration xmlns="urn:hornetq" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:hornetq /schema/hornetq-jms.xsd">
+ <queue name="DarRequestQueue">
+ <entry name="/queue/DarRequestQueue"/>
+ </queue>
+ <queue name="DarResponseQueue">
+ <entry name="/queue/DarResponseQueue"/>
+ </queue>
+</configuration>
Property changes on: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/samples/dar/META-INF/hornetq-jms.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/samples/dar/hornetq-jms.xml
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/samples/dar/hornetq-jms.xml (rev 0)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/samples/dar/hornetq-jms.xml 2010-05-21 11:46:24 UTC (rev 12302)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<configuration xmlns="urn:hornetq" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:hornetq /schema/hornetq-jms.xsd">
+ <queue name="DarQueue">
+ <entry name="/queue/DarQueue"/>
+ </queue>
+</configuration>
Property changes on: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/samples/dar/hornetq-jms.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/samples/dar/jboss-service.xml
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/samples/dar/jboss-service.xml (rev 0)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/samples/dar/jboss-service.xml 2010-05-21 11:46:24 UTC (rev 12302)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+ <mbean code="org.jboss.mq.server.jmx.Queue" name="jboss.mq.destination:service=Queue,name=DarQueue">
+ <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
+ </mbean>
+</server>
Property changes on: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/samples/dar/jboss-service.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/samples/jmstransport/META-INF/hornetq-jms.xml
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/samples/jmstransport/META-INF/hornetq-jms.xml (rev 0)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/samples/jmstransport/META-INF/hornetq-jms.xml 2010-05-21 11:46:24 UTC (rev 12302)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<configuration xmlns="urn:hornetq" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:hornetq /schema/hornetq-jms.xsd">
+ <queue name="RequestQueue">
+ <entry name="/queue/RequestQueue"/>
+ </queue>
+ <queue name="ResponseQueue">
+ <entry name="/queue/ResponseQueue"/>
+ </queue>
+</configuration>
Property changes on: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/samples/jmstransport/META-INF/hornetq-jms.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Modified: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/pom.xml
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/testsuite/pom.xml 2010-05-21 11:35:28 UTC (rev 12301)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/pom.xml 2010-05-21 11:46:24 UTC (rev 12302)
@@ -231,6 +231,10 @@
<name>wsdl.publish.location</name>
<value>${wsdl.publish.location}</value>
</property>
+ <property>
+ <name>use.hornetq</name>
+ <value>${use.hornetq}</value>
+ </property>
</systemProperties>
</configuration>
</plugin>
@@ -398,6 +402,25 @@
<jboss.server.instance>default</jboss.server.instance>
</properties>
</profile>
+
+ <!--
+ Name: no-use-hornetq
+ Descr: Set the default use.hornetq
+
+ command line cannot overwrite pom properties
+ http://jira.codehaus.org/browse/MNG-3546
+ -->
+ <profile>
+ <id>no-use-hornetq</id>
+ <activation>
+ <property>
+ <name>!use.hornetq</name>
+ </property>
+ </activation>
+ <properties>
+ <use.hornetq>false</use.hornetq>
+ </properties>
+ </profile>
</profiles>
</project>
15 years, 11 months
JBossWS SVN: r12300 - in stack/native/branches/jbossws-native-3.1.2/modules: testsuite and 1 other directory.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2010-05-21 05:32:08 -0400 (Fri, 21 May 2010)
New Revision: 12300
Modified:
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/transport/jms/AbstractJMSTransportSupport.java
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/pom.xml
Log:
[JBPAPP-4359] Using JMSResolver in native stack
Modified: stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/transport/jms/AbstractJMSTransportSupport.java
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/transport/jms/AbstractJMSTransportSupport.java 2010-05-21 06:52:24 UTC (rev 12299)
+++ stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/transport/jms/AbstractJMSTransportSupport.java 2010-05-21 09:32:08 UTC (rev 12300)
@@ -41,7 +41,6 @@
import javax.jms.QueueSession;
import javax.jms.Session;
import javax.jms.TextMessage;
-import javax.jms.Topic;
import javax.management.ObjectName;
import javax.naming.InitialContext;
import javax.xml.soap.SOAPException;
@@ -57,17 +56,19 @@
import org.jboss.wsf.spi.invocation.RequestHandler;
import org.jboss.wsf.spi.management.EndpointRegistry;
import org.jboss.wsf.spi.management.EndpointRegistryFactory;
+import org.jboss.wsf.spi.management.JMSEndpointResolver;
/**
* The abstract base class for MDBs that want to act as web service endpoints.
* A subclass should only need to implement the service endpoint interface.
*
* @author Thomas.Diesler(a)jboss.org
+ * @author alessio.soldano(a)jboss.com
*/
public abstract class AbstractJMSTransportSupport implements MessageListener
{
// logging support
- protected Logger log = Logger.getLogger(AbstractJMSTransportSupport.class);
+ protected static Logger log = Logger.getLogger(AbstractJMSTransportSupport.class);
private QueueConnectionFactory conFactory;
@@ -93,21 +94,16 @@
return;
}
- log.debug("Incomming SOAP message: " + msgStr);
+ if (log.isDebugEnabled())
+ log.debug("Incomming SOAP message: " + msgStr);
- String fromName = null;
- Destination destination = message.getJMSDestination();
- if (destination instanceof Queue)
- fromName = "queue/" + ((Queue)destination).getQueueName();
- if (destination instanceof Topic)
- fromName = "topic/" + ((Topic)destination).getTopicName();
-
InputStream inputStream = new ByteArrayInputStream(msgStr.getBytes());
ByteArrayOutputStream outputStream = new ByteArrayOutputStream(1024);
- processSOAPMessage(fromName, inputStream, outputStream);
+ processSOAPMessage(message.getJMSDestination(), inputStream, outputStream);
msgStr = new String(outputStream.toByteArray());
- log.debug("Outgoing SOAP message: " + msgStr);
+ if (log.isDebugEnabled())
+ log.debug("Outgoing SOAP message: " + msgStr);
if (msgStr.length() > 0)
{
@@ -135,34 +131,40 @@
throw new EJBException(e);
}
}
-
- protected void processSOAPMessage(String fromName, InputStream inputStream, OutputStream outStream) throws SOAPException, IOException, RemoteException
+
+ protected void processSOAPMessage(Destination destination, InputStream inputStream, OutputStream outStream) throws SOAPException, IOException, RemoteException
{
SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
EndpointRegistry epRegistry = spiProvider.getSPI(EndpointRegistryFactory.class).getEndpointRegistry();
- Endpoint endpoint = getEndpointForDestination(epRegistry, fromName);
+ JMSEndpointResolver resolver = spiProvider.getSPI(JMSEndpointResolver.class);
+ resolver.setDestination(destination);
+ Endpoint endpoint = epRegistry.resolve(resolver);
if (endpoint == null)
- throw new IllegalStateException("Cannot find endpoint for: " + fromName);
+ throw new IllegalStateException("Cannot find endpoint for destination: " + destination);
EndpointAssociation.setEndpoint(endpoint);
try
{
- log.debug("dipatchMessage: " + endpoint.getName());
+ boolean debugEnabled = log.isDebugEnabled();
+ if (debugEnabled)
+ log.debug("dipatchMessage: " + endpoint.getName());
// [JBWS-1324]: workaround to prevent message processing before endpoint is started
EndpointState state = endpoint.getState();
ObjectName name = endpoint.getName();
long startTime = System.currentTimeMillis();
- log.debug(name + " is in state: " + state);
+ if (debugEnabled)
+ log.debug(name + " is in state: " + state);
while (state != EndpointState.STARTED && (System.currentTimeMillis() - startTime < 60000))
{
try
{
Thread.sleep(1000);
state = endpoint.getState();
- log.debug(name + " is now in state: " + state);
+ if (debugEnabled)
+ log.debug(name + " is now in state: " + state);
}
catch (InterruptedException e)
{
@@ -190,23 +192,6 @@
}
}
- // The destination jndiName is encoded in the service object name under key 'jms'
- private Endpoint getEndpointForDestination(EndpointRegistry epRegistry, String fromName)
- {
- Endpoint endpoint = null;
- for (ObjectName oname : epRegistry.getEndpoints())
- {
- Endpoint aux = epRegistry.getEndpoint(oname);
- String jmsProp = aux.getName().getKeyProperty("jms");
- if (jmsProp != null && jmsProp.equals(fromName))
- {
- endpoint = aux;
- break;
- }
- }
- return endpoint;
- }
-
private String getMessageStr(BytesMessage message) throws Exception
{
byte[] buffer = new byte[8 * 1024];
Modified: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/pom.xml
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/testsuite/pom.xml 2010-05-21 06:52:24 UTC (rev 12299)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/pom.xml 2010-05-21 09:32:08 UTC (rev 12300)
@@ -25,6 +25,7 @@
<hibernate.version>3.2.4.sp1</hibernate.version>
<endpoint.servlet>org.jboss.wsf.stack.jbws.EndpointServlet</endpoint.servlet>
<jboss.javaee.version>5.0.1.GA</jboss.javaee.version>
+ <hornetq.version>2.1.0.BETA3</hornetq.version>
</properties>
<!-- Modules -->
@@ -330,6 +331,11 @@
<artifactId>jboss-as-security</artifactId>
<version>${jboss.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.hornetq</groupId>
+ <artifactId>hornetq-jms-client</artifactId>
+ <version>${hornetq.version}</version>
+ </dependency>
</dependencies>
<build>
<plugins>
15 years, 11 months
JBossWS SVN: r12299 - framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope.
by jbossws-commits@lists.jboss.org
Author: jim.ma
Date: 2010-05-21 02:52:24 -0400 (Fri, 21 May 2010)
New Revision: 12299
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/GeneralClientHandler.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/InvalidPortClientHandler.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/InvalidServiceClientHandler.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/PortClientHandler.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/PortWildcardClientHandler.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/SOAP11ClientHandler.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/SOAP12ClientHandler.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/SOAPClientHandler.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/ServiceClientHandler.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/ServiceWildcardClientHandler.java
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/jaxws-client-handlers.xml
Log:
[JBWS-3020]:Fixed the handler name issues in client side handlers
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/GeneralClientHandler.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/GeneralClientHandler.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/GeneralClientHandler.java 2010-05-21 06:52:24 UTC (rev 12299)
@@ -0,0 +1,31 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.handlerscope;
+
+public class GeneralClientHandler extends ProtocolHandler
+{
+ @Override
+ public String getHandlerName()
+ {
+ return "GeneralClientHandler";
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/InvalidPortClientHandler.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/InvalidPortClientHandler.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/InvalidPortClientHandler.java 2010-05-21 06:52:24 UTC (rev 12299)
@@ -0,0 +1,31 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.handlerscope;
+
+public class InvalidPortClientHandler extends ProtocolHandler
+{
+ @Override
+ public String getHandlerName()
+ {
+ return "InvalidPortClientHandler";
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/InvalidServiceClientHandler.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/InvalidServiceClientHandler.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/InvalidServiceClientHandler.java 2010-05-21 06:52:24 UTC (rev 12299)
@@ -0,0 +1,31 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.handlerscope;
+
+public class InvalidServiceClientHandler extends ProtocolHandler
+{
+ @Override
+ public String getHandlerName()
+ {
+ return "InvalidServiceClientHandler";
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/PortClientHandler.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/PortClientHandler.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/PortClientHandler.java 2010-05-21 06:52:24 UTC (rev 12299)
@@ -0,0 +1,31 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.handlerscope;
+
+public class PortClientHandler extends ProtocolHandler
+{
+ @Override
+ public String getHandlerName()
+ {
+ return "PortClientHandler";
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/PortWildcardClientHandler.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/PortWildcardClientHandler.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/PortWildcardClientHandler.java 2010-05-21 06:52:24 UTC (rev 12299)
@@ -0,0 +1,31 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.handlerscope;
+
+public class PortWildcardClientHandler extends ProtocolHandler
+{
+ @Override
+ public String getHandlerName()
+ {
+ return "PortWildcardClientHandler";
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/SOAP11ClientHandler.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/SOAP11ClientHandler.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/SOAP11ClientHandler.java 2010-05-21 06:52:24 UTC (rev 12299)
@@ -0,0 +1,31 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.handlerscope;
+
+public class SOAP11ClientHandler extends ProtocolHandler
+{
+ @Override
+ public String getHandlerName()
+ {
+ return "SOAP11ClientHandler";
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/SOAP12ClientHandler.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/SOAP12ClientHandler.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/SOAP12ClientHandler.java 2010-05-21 06:52:24 UTC (rev 12299)
@@ -0,0 +1,32 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.handlerscope;
+
+public class SOAP12ClientHandler extends ProtocolHandler
+{
+ @Override
+ public String getHandlerName()
+ {
+ return "SOAP12ClientHandler";
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/SOAPClientHandler.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/SOAPClientHandler.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/SOAPClientHandler.java 2010-05-21 06:52:24 UTC (rev 12299)
@@ -0,0 +1,31 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.handlerscope;
+
+public class SOAPClientHandler extends ProtocolHandler
+{
+ @Override
+ public String getHandlerName()
+ {
+ return "SOAPClientHandler";
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/ServiceClientHandler.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/ServiceClientHandler.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/ServiceClientHandler.java 2010-05-21 06:52:24 UTC (rev 12299)
@@ -0,0 +1,31 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.handlerscope;
+
+public class ServiceClientHandler extends ProtocolHandler
+{
+ @Override
+ public String getHandlerName()
+ {
+ return "ServiceClientHandler";
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/ServiceWildcardClientHandler.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/ServiceWildcardClientHandler.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/ServiceWildcardClientHandler.java 2010-05-21 06:52:24 UTC (rev 12299)
@@ -0,0 +1,31 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.handlerscope;
+
+public class ServiceWildcardClientHandler extends ProtocolHandler
+{
+ @Override
+ public String getHandlerName()
+ {
+ return "ServiceWildcardClientHandler";
+ }
+}
Modified: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/jaxws-client-handlers.xml
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/jaxws-client-handlers.xml 2010-05-21 06:42:40 UTC (rev 12298)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/handlerscope/jaxws-client-handlers.xml 2010-05-21 06:52:24 UTC (rev 12299)
@@ -9,7 +9,7 @@
<protocol-bindings>##SOAP11_HTTP</protocol-bindings>
<handler>
<handler-name> SOAP11ClientHandler </handler-name>
- <handler-class> org.jboss.test.ws.jaxws.handlerscope.ProtocolHandler </handler-class>
+ <handler-class> org.jboss.test.ws.jaxws.handlerscope.SOAP11ClientHandler </handler-class>
</handler>
</handler-chain>
@@ -17,7 +17,7 @@
<protocol-bindings>##SOAP12_HTTP</protocol-bindings>
<handler>
<handler-name> SOAP12ClientHandler </handler-name>
- <handler-class> org.jboss.test.ws.jaxws.handlerscope.ProtocolHandler </handler-class>
+ <handler-class> org.jboss.test.ws.jaxws.handlerscope.SOAP12ClientHandler </handler-class>
</handler>
</handler-chain>
@@ -25,7 +25,7 @@
<protocol-bindings>##SOAP11_HTTP ##SOAP12_HTTP</protocol-bindings>
<handler>
<handler-name> SOAPClientHandler </handler-name>
- <handler-class> org.jboss.test.ws.jaxws.handlerscope.ProtocolHandler </handler-class>
+ <handler-class> org.jboss.test.ws.jaxws.handlerscope.SOAPClientHandler </handler-class>
</handler>
</handler-chain>
@@ -33,7 +33,7 @@
<service-name-pattern>ns1:SOAPEndpointService</service-name-pattern>
<handler>
<handler-name> ServiceClientHandler </handler-name>
- <handler-class> org.jboss.test.ws.jaxws.handlerscope.ProtocolHandler </handler-class>
+ <handler-class> org.jboss.test.ws.jaxws.handlerscope.ServiceClientHandler </handler-class>
</handler>
</handler-chain>
@@ -41,7 +41,7 @@
<service-name-pattern>ns1:SOAPEndpointSer*</service-name-pattern>
<handler>
<handler-name> ServiceWildcardClientHandler </handler-name>
- <handler-class> org.jboss.test.ws.jaxws.handlerscope.ProtocolHandler </handler-class>
+ <handler-class> org.jboss.test.ws.jaxws.handlerscope.ServiceWildcardClientHandler </handler-class>
</handler>
</handler-chain>
@@ -49,7 +49,7 @@
<service-name-pattern>ns1:InvalidService</service-name-pattern>
<handler>
<handler-name> InvalidServiceClientHandler </handler-name>
- <handler-class> org.jboss.test.ws.jaxws.handlerscope.ProtocolHandler </handler-class>
+ <handler-class> org.jboss.test.ws.jaxws.handlerscope.InvalidServiceClientHandler </handler-class>
</handler>
</handler-chain>
@@ -57,7 +57,7 @@
<port-name-pattern>ns1:SOAPEndpointPort</port-name-pattern>
<handler>
<handler-name> PortClientHandler </handler-name>
- <handler-class> org.jboss.test.ws.jaxws.handlerscope.ProtocolHandler </handler-class>
+ <handler-class> org.jboss.test.ws.jaxws.handlerscope.PortClientHandler </handler-class>
</handler>
</handler-chain>
@@ -65,7 +65,7 @@
<port-name-pattern>ns1:SOAPEndpointPo*</port-name-pattern>
<handler>
<handler-name> PortWildcardClientHandler </handler-name>
- <handler-class> org.jboss.test.ws.jaxws.handlerscope.ProtocolHandler </handler-class>
+ <handler-class> org.jboss.test.ws.jaxws.handlerscope.PortWildcardClientHandler</handler-class>
</handler>
</handler-chain>
@@ -73,14 +73,14 @@
<port-name-pattern>ns1:InvalidPort</port-name-pattern>
<handler>
<handler-name> InvalidPortClientHandler </handler-name>
- <handler-class> org.jboss.test.ws.jaxws.handlerscope.ProtocolHandler </handler-class>
+ <handler-class> org.jboss.test.ws.jaxws.handlerscope.InvalidPortClientHandler </handler-class>
</handler>
</handler-chain>
<handler-chain>
<handler>
<handler-name> GeneralClientHandler </handler-name>
- <handler-class> org.jboss.test.ws.jaxws.handlerscope.ProtocolHandler </handler-class>
+ <handler-class> org.jboss.test.ws.jaxws.handlerscope.GeneralClientHandler </handler-class>
</handler>
</handler-chain>
15 years, 11 months
JBossWS SVN: r12298 - stack/metro/trunk/modules/testsuite.
by jbossws-commits@lists.jboss.org
Author: richard.opalka(a)jboss.com
Date: 2010-05-21 02:42:40 -0400 (Fri, 21 May 2010)
New Revision: 12298
Modified:
stack/metro/trunk/modules/testsuite/test-excludes-jboss501.txt
stack/metro/trunk/modules/testsuite/test-excludes-jboss510.txt
stack/metro/trunk/modules/testsuite/test-excludes-jboss600.txt
stack/metro/trunk/modules/testsuite/test-excludes-jboss601.txt
Log:
[JBWS-3031] excluding test for Metro
Modified: stack/metro/trunk/modules/testsuite/test-excludes-jboss501.txt
===================================================================
--- stack/metro/trunk/modules/testsuite/test-excludes-jboss501.txt 2010-05-21 06:41:38 UTC (rev 12297)
+++ stack/metro/trunk/modules/testsuite/test-excludes-jboss501.txt 2010-05-21 06:42:40 UTC (rev 12298)
@@ -72,6 +72,7 @@
org/jboss/test/ws/jaxws/jbws3008/**
org/jboss/test/ws/jaxws/jbws3022/**
org/jboss/test/ws/jaxws/jbws3027/**
+org/jboss/test/ws/jaxws/jbws3031/**
# [JBWS-2998] Complete integration development for JSR109 requirements
org/jboss/test/ws/jaxws/jbws2307/JBWS2307MTOMTestCase.*
Modified: stack/metro/trunk/modules/testsuite/test-excludes-jboss510.txt
===================================================================
--- stack/metro/trunk/modules/testsuite/test-excludes-jboss510.txt 2010-05-21 06:41:38 UTC (rev 12297)
+++ stack/metro/trunk/modules/testsuite/test-excludes-jboss510.txt 2010-05-21 06:42:40 UTC (rev 12298)
@@ -72,6 +72,7 @@
org/jboss/test/ws/jaxws/jbws3008/**
org/jboss/test/ws/jaxws/jbws3022/**
org/jboss/test/ws/jaxws/jbws3027/**
+org/jboss/test/ws/jaxws/jbws3031/**
# [JBWS-2998] Complete integration development for JSR109 requirements
org/jboss/test/ws/jaxws/jbws2307/JBWS2307MTOMTestCase.*
Modified: stack/metro/trunk/modules/testsuite/test-excludes-jboss600.txt
===================================================================
--- stack/metro/trunk/modules/testsuite/test-excludes-jboss600.txt 2010-05-21 06:41:38 UTC (rev 12297)
+++ stack/metro/trunk/modules/testsuite/test-excludes-jboss600.txt 2010-05-21 06:42:40 UTC (rev 12298)
@@ -66,6 +66,7 @@
org/jboss/test/ws/jaxws/jbws3008/**
org/jboss/test/ws/jaxws/jbws3022/**
org/jboss/test/ws/jaxws/jbws3027/**
+org/jboss/test/ws/jaxws/jbws3031/**
org/jboss/test/ws/jaxws/endpointReference/EndpointReferenceBuilderTestCase.*
# [JBWS-2998] Complete integration development for JSR109 requirements
Modified: stack/metro/trunk/modules/testsuite/test-excludes-jboss601.txt
===================================================================
--- stack/metro/trunk/modules/testsuite/test-excludes-jboss601.txt 2010-05-21 06:41:38 UTC (rev 12297)
+++ stack/metro/trunk/modules/testsuite/test-excludes-jboss601.txt 2010-05-21 06:42:40 UTC (rev 12298)
@@ -66,6 +66,7 @@
org/jboss/test/ws/jaxws/jbws3008/**
org/jboss/test/ws/jaxws/jbws3022/**
org/jboss/test/ws/jaxws/jbws3027/**
+org/jboss/test/ws/jaxws/jbws3031/**
org/jboss/test/ws/jaxws/endpointReference/EndpointReferenceBuilderTestCase.*
# [JBWS-2998] Complete integration development for JSR109 requirements
15 years, 11 months
JBossWS SVN: r12297 - stack/cxf/trunk/modules/testsuite.
by jbossws-commits@lists.jboss.org
Author: richard.opalka(a)jboss.com
Date: 2010-05-21 02:41:38 -0400 (Fri, 21 May 2010)
New Revision: 12297
Modified:
stack/cxf/trunk/modules/testsuite/test-excludes-jboss501.txt
stack/cxf/trunk/modules/testsuite/test-excludes-jboss510.txt
stack/cxf/trunk/modules/testsuite/test-excludes-jboss600.txt
stack/cxf/trunk/modules/testsuite/test-excludes-jboss601.txt
Log:
[JBWS-3031] excluding test for CXF
Modified: stack/cxf/trunk/modules/testsuite/test-excludes-jboss501.txt
===================================================================
--- stack/cxf/trunk/modules/testsuite/test-excludes-jboss501.txt 2010-05-21 06:38:10 UTC (rev 12296)
+++ stack/cxf/trunk/modules/testsuite/test-excludes-jboss501.txt 2010-05-21 06:41:38 UTC (rev 12297)
@@ -55,6 +55,7 @@
org/jboss/test/ws/jaxws/jbws3008/**
org/jboss/test/ws/jaxws/jbws3022/**
org/jboss/test/ws/jaxws/jbws3027/**
+org/jboss/test/ws/jaxws/jbws3031/**
# [JBWS-3020] Investigate why HandlerScopeTestCase fails
org/jboss/test/ws/jaxws/handlerscope/*TestCase.*
Modified: stack/cxf/trunk/modules/testsuite/test-excludes-jboss510.txt
===================================================================
--- stack/cxf/trunk/modules/testsuite/test-excludes-jboss510.txt 2010-05-21 06:38:10 UTC (rev 12296)
+++ stack/cxf/trunk/modules/testsuite/test-excludes-jboss510.txt 2010-05-21 06:41:38 UTC (rev 12297)
@@ -55,6 +55,7 @@
org/jboss/test/ws/jaxws/jbws3008/**
org/jboss/test/ws/jaxws/jbws3022/**
org/jboss/test/ws/jaxws/jbws3027/**
+org/jboss/test/ws/jaxws/jbws3031/**
# [JBWS-3020] Investigate why HandlerScopeTestCase fails
org/jboss/test/ws/jaxws/handlerscope/*TestCase.*
Modified: stack/cxf/trunk/modules/testsuite/test-excludes-jboss600.txt
===================================================================
--- stack/cxf/trunk/modules/testsuite/test-excludes-jboss600.txt 2010-05-21 06:38:10 UTC (rev 12296)
+++ stack/cxf/trunk/modules/testsuite/test-excludes-jboss600.txt 2010-05-21 06:41:38 UTC (rev 12297)
@@ -48,6 +48,7 @@
org/jboss/test/ws/jaxws/jbws3008/**
org/jboss/test/ws/jaxws/jbws3022/**
org/jboss/test/ws/jaxws/jbws3027/**
+org/jboss/test/ws/jaxws/jbws3031/**
org/jboss/test/ws/jaxws/endpointReference/EndpointReferenceBuilderTestCase.*
# [JBWS-3020] Investigate why HandlerScopeTestCase fails
Modified: stack/cxf/trunk/modules/testsuite/test-excludes-jboss601.txt
===================================================================
--- stack/cxf/trunk/modules/testsuite/test-excludes-jboss601.txt 2010-05-21 06:38:10 UTC (rev 12296)
+++ stack/cxf/trunk/modules/testsuite/test-excludes-jboss601.txt 2010-05-21 06:41:38 UTC (rev 12297)
@@ -45,6 +45,7 @@
org/jboss/test/ws/jaxws/jbws3008/**
org/jboss/test/ws/jaxws/jbws3022/**
org/jboss/test/ws/jaxws/jbws3027/**
+org/jboss/test/ws/jaxws/jbws3031/**
org/jboss/test/ws/jaxws/endpointReference/EndpointReferenceBuilderTestCase.*
# [JBWS-3020] Investigate why HandlerScopeTestCase fails
15 years, 11 months
JBossWS SVN: r12296 - in framework/trunk/testsuite/test: java/org/jboss/test/ws/jaxws and 8 other directories.
by jbossws-commits@lists.jboss.org
Author: richard.opalka(a)jboss.com
Date: 2010-05-21 02:38:10 -0400 (Fri, 21 May 2010)
New Revision: 12296
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbers.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbers2Fault.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbers3Fault.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbers4Fault.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbers5Fault.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbers6Fault.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbersFault.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbersFault_Exception.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbersPortType.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbersPortType_handler.xml
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbersResponse.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbersService.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbersService_handler.xml
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/ClientSOAPHandler.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/JBWS3031TestCase.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/ObjectFactory.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/TooBigNumbers2Fault.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/TooBigNumbers3Fault.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/TooBigNumbers4Fault.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/TooBigNumbersFault.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/TooBigNumbersFault_Exception.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/common/
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/common/TestConstants.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/package-info.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbers.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbers2Fault.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbers3Fault.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbers4Fault.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbers5Fault.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbers6Fault.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbersFault.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbersFault_Exception.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbersImpl.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbersPortType.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbersPortType_handler.xml
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbersResponse.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbersService.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbersService_handler.xml
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/ObjectFactory.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/ServerSOAPHandler.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/TooBigNumbers2Fault.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/TooBigNumbers3Fault.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/TooBigNumbers4Fault.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/TooBigNumbersFault.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/TooBigNumbersFault_Exception.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/package-info.java
framework/trunk/testsuite/test/resources/jaxws/jbws3031/
framework/trunk/testsuite/test/resources/jaxws/jbws3031/WEB-INF/
framework/trunk/testsuite/test/resources/jaxws/jbws3031/WEB-INF/jboss-web.xml
framework/trunk/testsuite/test/resources/jaxws/jbws3031/WEB-INF/web.xml
framework/trunk/testsuite/test/resources/jaxws/jbws3031/WEB-INF/wsdl/
framework/trunk/testsuite/test/resources/jaxws/jbws3031/WEB-INF/wsdl/WSAW2JDLActionTest.wsdl
framework/trunk/testsuite/test/resources/jaxws/jbws3031/custom-client.xml
framework/trunk/testsuite/test/resources/jaxws/jbws3031/custom-server.xml
Modified:
framework/trunk/testsuite/test/ant-import/build-jars-jaxws.xml
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/common/WsaBaseSOAPHandler.java
Log:
[JBWS-3031] providing test case
Modified: framework/trunk/testsuite/test/ant-import/build-jars-jaxws.xml
===================================================================
--- framework/trunk/testsuite/test/ant-import/build-jars-jaxws.xml 2010-05-20 20:27:29 UTC (rev 12295)
+++ framework/trunk/testsuite/test/ant-import/build-jars-jaxws.xml 2010-05-21 06:38:10 UTC (rev 12296)
@@ -963,6 +963,20 @@
</webinf>
</war>
+ <!-- jaxws-jbws3031 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws3031.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws3031/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws3031/service/*.class"/>
+ <include name="org/jboss/test/ws/jaxws/jbws3031/service/*.xml" />
+ <include name="org/jboss/test/ws/jaxws/jbws3031/common/*.class"/>
+ <include name="org/jboss/test/ws/jaxws/common/*.class"/>
+ </classes>
+ <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws3031/WEB-INF">
+ <include name="wsdl/**" />
+ <include name="jboss-web.xml"/>
+ </webinf>
+ </war>
+
<!-- jaxws namespace -->
<war warfile="${tests.output.dir}/test-libs/jaxws-namespace.war" webxml="${tests.output.dir}/test-resources/jaxws/namespace/WEB-INF/web.xml">
<classes dir="${tests.output.dir}/test-classes">
Modified: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/common/WsaBaseSOAPHandler.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/common/WsaBaseSOAPHandler.java 2010-05-20 20:27:29 UTC (rev 12295)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/common/WsaBaseSOAPHandler.java 2010-05-21 06:38:10 UTC (rev 12296)
@@ -606,9 +606,9 @@
throwActionNotSupportedException(expectedAction, currentAction);
}
- protected void assertFaultAction(final String currentRequestName, final String currentDetailName,
- final String currentAction, final String expectedRequestName, final String expectedDetailName,
- final String expectedAction)
+ protected void assertFaultAction(
+ final String currentRequestName, final String currentDetailName, final String currentAction,
+ final String expectedRequestName, final String expectedDetailName, final String expectedAction)
{
final boolean requestNameMatch = currentRequestName.equals(expectedRequestName);
final boolean detailNameMatch = currentDetailName.equals(expectedDetailName);
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbers.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbers.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbers.java 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,94 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws3031;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * <p>Java class for addNumbers complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="addNumbers">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="number1" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * <element name="number2" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "addNumbers", propOrder =
+{"number1", "number2"})
+public class AddNumbers
+{
+
+ protected int number1;
+
+ protected int number2;
+
+ /**
+ * Gets the value of the number1 property.
+ *
+ */
+ public int getNumber1()
+ {
+ return number1;
+ }
+
+ /**
+ * Sets the value of the number1 property.
+ *
+ */
+ public void setNumber1(int value)
+ {
+ this.number1 = value;
+ }
+
+ /**
+ * Gets the value of the number2 property.
+ *
+ */
+ public int getNumber2()
+ {
+ return number2;
+ }
+
+ /**
+ * Sets the value of the number2 property.
+ *
+ */
+ public void setNumber2(int value)
+ {
+ this.number2 = value;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbers2Fault.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbers2Fault.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbers2Fault.java 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,75 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws3031;
+
+import javax.xml.ws.WebFault;
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.2-12/14/2009 02:16 PM(ramkris)-
+ * Generated source version: 2.2
+ *
+ */
+@WebFault(name = "AddNumbers2Fault", targetNamespace = "http://example.com/")
+public class AddNumbers2Fault extends Exception
+{
+
+ /**
+ * Java type that goes as soapenv:Fault detail element.
+ *
+ */
+ private AddNumbersFault faultInfo;
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ */
+ public AddNumbers2Fault(String message, AddNumbersFault faultInfo)
+ {
+ super(message);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ * @param cause
+ */
+ public AddNumbers2Fault(String message, AddNumbersFault faultInfo, Throwable cause)
+ {
+ super(message, cause);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @return
+ * returns fault bean: org.jboss.test.ws.jaxws.jbws3031.AddNumbersFault
+ */
+ public AddNumbersFault getFaultInfo()
+ {
+ return faultInfo;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbers3Fault.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbers3Fault.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbers3Fault.java 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,75 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws3031;
+
+import javax.xml.ws.WebFault;
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.2-12/14/2009 02:16 PM(ramkris)-
+ * Generated source version: 2.2
+ *
+ */
+@WebFault(name = "AddNumbers3Fault", targetNamespace = "http://example.com/")
+public class AddNumbers3Fault extends Exception
+{
+
+ /**
+ * Java type that goes as soapenv:Fault detail element.
+ *
+ */
+ private AddNumbersFault faultInfo;
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ */
+ public AddNumbers3Fault(String message, AddNumbersFault faultInfo)
+ {
+ super(message);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ * @param cause
+ */
+ public AddNumbers3Fault(String message, AddNumbersFault faultInfo, Throwable cause)
+ {
+ super(message, cause);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @return
+ * returns fault bean: org.jboss.test.ws.jaxws.jbws3031.AddNumbersFault
+ */
+ public AddNumbersFault getFaultInfo()
+ {
+ return faultInfo;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbers4Fault.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbers4Fault.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbers4Fault.java 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,75 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws3031;
+
+import javax.xml.ws.WebFault;
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.2-12/14/2009 02:16 PM(ramkris)-
+ * Generated source version: 2.2
+ *
+ */
+@WebFault(name = "AddNumbers4Fault", targetNamespace = "http://example.com/")
+public class AddNumbers4Fault extends Exception
+{
+
+ /**
+ * Java type that goes as soapenv:Fault detail element.
+ *
+ */
+ private AddNumbersFault faultInfo;
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ */
+ public AddNumbers4Fault(String message, AddNumbersFault faultInfo)
+ {
+ super(message);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ * @param cause
+ */
+ public AddNumbers4Fault(String message, AddNumbersFault faultInfo, Throwable cause)
+ {
+ super(message, cause);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @return
+ * returns fault bean: org.jboss.test.ws.jaxws.jbws3031.AddNumbersFault
+ */
+ public AddNumbersFault getFaultInfo()
+ {
+ return faultInfo;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbers5Fault.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbers5Fault.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbers5Fault.java 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,75 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws3031;
+
+import javax.xml.ws.WebFault;
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.2-12/14/2009 02:16 PM(ramkris)-
+ * Generated source version: 2.2
+ *
+ */
+@WebFault(name = "AddNumbers5Fault", targetNamespace = "http://example.com/")
+public class AddNumbers5Fault extends Exception
+{
+
+ /**
+ * Java type that goes as soapenv:Fault detail element.
+ *
+ */
+ private AddNumbersFault faultInfo;
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ */
+ public AddNumbers5Fault(String message, AddNumbersFault faultInfo)
+ {
+ super(message);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ * @param cause
+ */
+ public AddNumbers5Fault(String message, AddNumbersFault faultInfo, Throwable cause)
+ {
+ super(message, cause);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @return
+ * returns fault bean: org.jboss.test.ws.jaxws.jbws3031.AddNumbersFault
+ */
+ public AddNumbersFault getFaultInfo()
+ {
+ return faultInfo;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbers6Fault.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbers6Fault.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbers6Fault.java 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,75 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws3031;
+
+import javax.xml.ws.WebFault;
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.2-12/14/2009 02:16 PM(ramkris)-
+ * Generated source version: 2.2
+ *
+ */
+@WebFault(name = "AddNumbers6Fault", targetNamespace = "http://example.com/")
+public class AddNumbers6Fault extends Exception
+{
+
+ /**
+ * Java type that goes as soapenv:Fault detail element.
+ *
+ */
+ private AddNumbersFault faultInfo;
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ */
+ public AddNumbers6Fault(String message, AddNumbersFault faultInfo)
+ {
+ super(message);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ * @param cause
+ */
+ public AddNumbers6Fault(String message, AddNumbersFault faultInfo, Throwable cause)
+ {
+ super(message, cause);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @return
+ * returns fault bean: org.jboss.test.ws.jaxws.jbws3031.AddNumbersFault
+ */
+ public AddNumbersFault getFaultInfo()
+ {
+ return faultInfo;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbersFault.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbersFault.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbersFault.java 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,113 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws3031;
+
+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 AddNumbersFault complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="AddNumbersFault">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="detail" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="message" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "AddNumbersFault", propOrder =
+{"detail", "message"})
+public class AddNumbersFault
+{
+
+ @XmlElement(required = true)
+ protected String detail;
+
+ @XmlElement(required = true)
+ protected String message;
+
+ /**
+ * Gets the value of the detail property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDetail()
+ {
+ return detail;
+ }
+
+ /**
+ * Sets the value of the detail property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDetail(String value)
+ {
+ this.detail = value;
+ }
+
+ /**
+ * Gets the value of the message property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getMessage()
+ {
+ return message;
+ }
+
+ /**
+ * Sets the value of the message property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setMessage(String value)
+ {
+ this.message = value;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbersFault_Exception.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbersFault_Exception.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbersFault_Exception.java 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,75 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws3031;
+
+import javax.xml.ws.WebFault;
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.2-12/14/2009 02:16 PM(ramkris)-
+ * Generated source version: 2.2
+ *
+ */
+@WebFault(name = "AddNumbersFault", targetNamespace = "http://example.com/")
+public class AddNumbersFault_Exception extends Exception
+{
+
+ /**
+ * Java type that goes as soapenv:Fault detail element.
+ *
+ */
+ private AddNumbersFault faultInfo;
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ */
+ public AddNumbersFault_Exception(String message, AddNumbersFault faultInfo)
+ {
+ super(message);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ * @param cause
+ */
+ public AddNumbersFault_Exception(String message, AddNumbersFault faultInfo, Throwable cause)
+ {
+ super(message, cause);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @return
+ * returns fault bean: org.jboss.test.ws.jaxws.jbws3031.AddNumbersFault
+ */
+ public AddNumbersFault getFaultInfo()
+ {
+ return faultInfo;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbersPortType.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbersPortType.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbersPortType.java 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,156 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws3031;
+
+import javax.jws.HandlerChain;
+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.Action;
+import javax.xml.ws.FaultAction;
+import javax.xml.ws.RequestWrapper;
+import javax.xml.ws.ResponseWrapper;
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.2-12/14/2009 02:16 PM(ramkris)-
+ * Generated source version: 2.2
+ *
+ */
+@WebService(name = "AddNumbersPortType", targetNamespace = "http://example.com/")
+@HandlerChain(file = "AddNumbersPortType_handler.xml")
+@XmlSeeAlso(
+{ObjectFactory.class})
+public interface AddNumbersPortType
+{
+
+ /**
+ *
+ * @param number2
+ * @param number1
+ * @return
+ * returns int
+ * @throws AddNumbersFault_Exception
+ * @throws TooBigNumbersFault_Exception
+ */
+ @WebMethod
+ @WebResult(targetNamespace = "http://example.com/")
+ @RequestWrapper(localName = "addNumbers", targetNamespace = "http://example.com/", className = "org.jboss.test.ws.jaxws.jbws3031.AddNumbers")
+ @ResponseWrapper(localName = "addNumbersResponse", targetNamespace = "http://example.com/", className = "org.jboss.test.ws.jaxws.jbws3031.AddNumbersResponse")
+ public int addNumbers(@WebParam(name = "number1", targetNamespace = "http://example.com/") int number1,
+ @WebParam(name = "number2", targetNamespace = "http://example.com/") int number2)
+ throws AddNumbersFault_Exception, TooBigNumbersFault_Exception;
+
+ /**
+ *
+ * @param number2
+ * @param number1
+ * @return
+ * returns int
+ * @throws AddNumbers2Fault
+ * @throws TooBigNumbers2Fault
+ */
+ @WebMethod
+ @WebResult(targetNamespace = "http://example.com/")
+ @RequestWrapper(localName = "addNumbers2", targetNamespace = "http://example.com/", className = "org.jboss.test.ws.jaxws.jbws3031.AddNumbers")
+ @ResponseWrapper(localName = "addNumbersResponse2", targetNamespace = "http://example.com/", className = "org.jboss.test.ws.jaxws.jbws3031.AddNumbersResponse")
+ @Action(fault =
+ {@FaultAction(className = AddNumbers2Fault.class, value = "add2fault"),
+ @FaultAction(className = TooBigNumbers2Fault.class, value = "toobig2fault")})
+ public int addNumbers2(@WebParam(name = "number1", targetNamespace = "http://example.com/") int number1,
+ @WebParam(name = "number2", targetNamespace = "http://example.com/") int number2) throws AddNumbers2Fault,
+ TooBigNumbers2Fault;
+
+ /**
+ *
+ * @param number2
+ * @param number1
+ * @return
+ * returns int
+ * @throws AddNumbers3Fault
+ * @throws TooBigNumbers3Fault
+ */
+ @WebMethod
+ @WebResult(targetNamespace = "http://example.com/")
+ @RequestWrapper(localName = "addNumbers3", targetNamespace = "http://example.com/", className = "org.jboss.test.ws.jaxws.jbws3031.AddNumbers")
+ @ResponseWrapper(localName = "addNumbersResponse3", targetNamespace = "http://example.com/", className = "org.jboss.test.ws.jaxws.jbws3031.AddNumbersResponse")
+ @Action(fault =
+ {@FaultAction(className = AddNumbers3Fault.class, value = "add3fault")})
+ public int addNumbers3(@WebParam(name = "number1", targetNamespace = "http://example.com/") int number1,
+ @WebParam(name = "number2", targetNamespace = "http://example.com/") int number2) throws AddNumbers3Fault,
+ TooBigNumbers3Fault;
+
+ /**
+ *
+ * @param number2
+ * @param number1
+ * @return
+ * returns int
+ * @throws TooBigNumbers4Fault
+ * @throws AddNumbers4Fault
+ */
+ @WebMethod
+ @WebResult(targetNamespace = "http://example.com/")
+ @RequestWrapper(localName = "addNumbers4", targetNamespace = "http://example.com/", className = "org.jboss.test.ws.jaxws.jbws3031.AddNumbers")
+ @ResponseWrapper(localName = "addNumbersResponse4", targetNamespace = "http://example.com/", className = "org.jboss.test.ws.jaxws.jbws3031.AddNumbersResponse")
+ @Action(fault =
+ {@FaultAction(className = TooBigNumbers4Fault.class, value = "toobig4fault")})
+ public int addNumbers4(@WebParam(name = "number1", targetNamespace = "http://example.com/") int number1,
+ @WebParam(name = "number2", targetNamespace = "http://example.com/") int number2) throws AddNumbers4Fault,
+ TooBigNumbers4Fault;
+
+ /**
+ *
+ * @param number2
+ * @param number1
+ * @return
+ * returns int
+ * @throws AddNumbers5Fault
+ */
+ @WebMethod
+ @WebResult(targetNamespace = "http://example.com/")
+ @RequestWrapper(localName = "addNumbers5", targetNamespace = "http://example.com/", className = "org.jboss.test.ws.jaxws.jbws3031.AddNumbers")
+ @ResponseWrapper(localName = "addNumbersResponse5", targetNamespace = "http://example.com/", className = "org.jboss.test.ws.jaxws.jbws3031.AddNumbersResponse")
+ @Action(input = "ExplicitInput5", output = "ExplicitOutput5", fault =
+ {@FaultAction(className = AddNumbers5Fault.class, value = "fault5")})
+ public int addNumbers5(@WebParam(name = "number1", targetNamespace = "http://example.com/") int number1,
+ @WebParam(name = "number2", targetNamespace = "http://example.com/") int number2) throws AddNumbers5Fault;
+
+ /**
+ *
+ * @param number2
+ * @param number1
+ * @return
+ * returns int
+ * @throws AddNumbers6Fault
+ */
+ @WebMethod
+ @WebResult(targetNamespace = "http://example.com/")
+ @RequestWrapper(localName = "addNumbers6", targetNamespace = "http://example.com/", className = "org.jboss.test.ws.jaxws.jbws3031.AddNumbers")
+ @ResponseWrapper(localName = "addNumbersResponse6", targetNamespace = "http://example.com/", className = "org.jboss.test.ws.jaxws.jbws3031.AddNumbersResponse")
+ @Action(input = "ExplicitInput6")
+ public int addNumbers6(@WebParam(name = "number1", targetNamespace = "http://example.com/") int number1,
+ @WebParam(name = "number2", targetNamespace = "http://example.com/") int number2) throws AddNumbers6Fault;
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbersPortType_handler.xml
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbersPortType_handler.xml (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbersPortType_handler.xml 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?><handler-chains xmlns="http://java.sun.com/xml/ns/javaee">
+ <handler-chain>
+ <port-name-pattern xmlns:ns2="http://example.com/">ns2:AddNumbersPort</port-name-pattern>
+ <handler>
+ <handler-name>ClientSOAPHandler</handler-name>
+ <handler-class>org.jboss.test.ws.jaxws.jbws3031.ClientSOAPHandler</handler-class>
+ </handler>
+ </handler-chain>
+</handler-chains>
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbersResponse.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbersResponse.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbersResponse.java 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,75 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws3031;
+
+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 addNumbersResponse complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="addNumbersResponse">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="return" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "addNumbersResponse", propOrder =
+{"_return"})
+public class AddNumbersResponse
+{
+
+ @XmlElement(name = "return")
+ protected int _return;
+
+ /**
+ * Gets the value of the return property.
+ *
+ */
+ public int getReturn()
+ {
+ return _return;
+ }
+
+ /**
+ * Sets the value of the return property.
+ *
+ */
+ public void setReturn(int value)
+ {
+ this._return = value;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbersService.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbersService.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbersService.java 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,132 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws3031;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+
+import javax.jws.HandlerChain;
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebEndpoint;
+import javax.xml.ws.WebServiceClient;
+import javax.xml.ws.WebServiceException;
+import javax.xml.ws.WebServiceFeature;
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.2-12/14/2009 02:16 PM(ramkris)-
+ * Generated source version: 2.2
+ *
+ */
+@WebServiceClient(name = "AddNumbersService", targetNamespace = "http://example.com/", wsdlLocation = "file:/opt/svn/jbossas/tags/6.0.0.20100429-M3/build/target/jboss-6.0.0.20100429-M3/bin/WSAW2JDLActionTest.wsdl")
+@HandlerChain(file = "AddNumbersService_handler.xml")
+public class AddNumbersService extends Service
+{
+
+ private final static URL ADDNUMBERSSERVICE_WSDL_LOCATION;
+
+ private final static WebServiceException ADDNUMBERSSERVICE_EXCEPTION;
+
+ private final static QName ADDNUMBERSSERVICE_QNAME = new QName("http://example.com/", "AddNumbersService");
+
+ static
+ {
+ URL url = null;
+ WebServiceException e = null;
+ try
+ {
+ url = new URL(
+ "file:/opt/svn/jbossas/tags/6.0.0.20100429-M3/build/target/jboss-6.0.0.20100429-M3/bin/WSAW2JDLActionTest.wsdl");
+ }
+ catch (MalformedURLException ex)
+ {
+ e = new WebServiceException(ex);
+ }
+ ADDNUMBERSSERVICE_WSDL_LOCATION = url;
+ ADDNUMBERSSERVICE_EXCEPTION = e;
+ }
+
+ public AddNumbersService()
+ {
+ super(__getWsdlLocation(), ADDNUMBERSSERVICE_QNAME);
+ }
+
+ public AddNumbersService(WebServiceFeature... features)
+ {
+ super(__getWsdlLocation(), ADDNUMBERSSERVICE_QNAME, features);
+ }
+
+ public AddNumbersService(URL wsdlLocation)
+ {
+ super(wsdlLocation, ADDNUMBERSSERVICE_QNAME);
+ }
+
+ public AddNumbersService(URL wsdlLocation, WebServiceFeature... features)
+ {
+ super(wsdlLocation, ADDNUMBERSSERVICE_QNAME, features);
+ }
+
+ public AddNumbersService(URL wsdlLocation, QName serviceName)
+ {
+ super(wsdlLocation, serviceName);
+ }
+
+ public AddNumbersService(URL wsdlLocation, QName serviceName, WebServiceFeature... features)
+ {
+ super(wsdlLocation, serviceName, features);
+ }
+
+ /**
+ *
+ * @return
+ * returns AddNumbersPortType
+ */
+ @WebEndpoint(name = "AddNumbersPort")
+ public AddNumbersPortType getAddNumbersPort()
+ {
+ return super.getPort(new QName("http://example.com/", "AddNumbersPort"), AddNumbersPortType.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 AddNumbersPortType
+ */
+ @WebEndpoint(name = "AddNumbersPort")
+ public AddNumbersPortType getAddNumbersPort(WebServiceFeature... features)
+ {
+ return super.getPort(new QName("http://example.com/", "AddNumbersPort"), AddNumbersPortType.class, features);
+ }
+
+ private static URL __getWsdlLocation()
+ {
+ if (ADDNUMBERSSERVICE_EXCEPTION != null)
+ {
+ throw ADDNUMBERSSERVICE_EXCEPTION;
+ }
+ return ADDNUMBERSSERVICE_WSDL_LOCATION;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbersService_handler.xml
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbersService_handler.xml (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/AddNumbersService_handler.xml 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?><handler-chains xmlns="http://java.sun.com/xml/ns/javaee">
+ <handler-chain>
+ <port-name-pattern xmlns:ns2="http://example.com/">ns2:AddNumbersPort</port-name-pattern>
+ <handler>
+ <handler-name>ClientSOAPHandler</handler-name>
+ <handler-class>org.jboss.test.ws.jaxws.jbws3031.ClientSOAPHandler</handler-class>
+ </handler>
+ </handler-chain>
+</handler-chains>
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/ClientSOAPHandler.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/ClientSOAPHandler.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/ClientSOAPHandler.java 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,60 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws3031;
+
+import javax.xml.ws.handler.soap.SOAPMessageContext;
+
+import org.jboss.test.ws.jaxws.common.WsaBaseSOAPHandler;
+import org.jboss.test.ws.jaxws.jbws3031.common.TestConstants;
+
+public class ClientSOAPHandler extends WsaBaseSOAPHandler
+{
+ @Override
+ protected void checkInboundAction(final SOAPMessageContext context, final String currentOperation, final String currentAction)
+ {
+ this.assertAction(currentOperation, currentAction, "addNumbersResponse2", TestConstants.ADD_NUMBERS2_OUT_ACTION);
+ this.assertAction(currentOperation, currentAction, "addNumbersResponse3", TestConstants.ADD_NUMBERS3_OUT_ACTION);
+ this.assertAction(currentOperation, currentAction, "addNumbersResponse4", TestConstants.ADD_NUMBERS4_OUT_ACTION);
+ this.assertAction(currentOperation, currentAction, "addNumbersResponse5", TestConstants.ADD_NUMBERS5_OUT_ACTION);
+ this.assertAction(currentOperation, currentAction, "addNumbersReeponse6", TestConstants.ADD_NUMBERS6_OUT_ACTION);
+ }
+
+ @Override
+ protected void checkFaultActions(final String currentRequestName, final String currentDetailName, final String currentAction)
+ {
+ this.assertFaultAction(currentRequestName, currentDetailName, currentAction, "addNumbers", "AddNumbersFault", TestConstants.ADD_NUMBERS_ADDNUMBERS_ACTION);
+ this.assertFaultAction(currentRequestName, currentDetailName, currentAction, "addNumbers", "TooBigNumbersFault", TestConstants.ADD_NUMBERS_TOOBIGNUMBERS_ACTION);
+ this.assertFaultAction(currentRequestName, currentDetailName, currentAction, "addNumbers2", "AddNumbers2Fault", TestConstants.ADD_NUMBERS2_ADDNUMBERS_ACTION);
+ this.assertFaultAction(currentRequestName, currentDetailName, currentAction, "addNumbers2", "TooBigNumbers2Fault", TestConstants.ADD_NUMBERS2_TOOBIGNUMBERS_ACTION);
+ this.assertFaultAction(currentRequestName, currentDetailName, currentAction, "addNumbers3", "AddNumbers3Fault", TestConstants.ADD_NUMBERS3_ADDNUMBERS_ACTION);
+ this.assertFaultAction(currentRequestName, currentDetailName, currentAction, "addNumbers3", "TooBigNumbers3Fault", TestConstants.ADD_NUMBERS3_TOOBIGNUMBERS_ACTION);
+ this.assertFaultAction(currentRequestName, currentDetailName, currentAction, "addNumbers4", "AddNumbers4Fault", TestConstants.ADD_NUMBERS4_ADDNUMBERS_ACTION);
+ this.assertFaultAction(currentRequestName, currentDetailName, currentAction, "addNumbers4", "TooBigNumbers4Fault", TestConstants.ADD_NUMBERS4_TOOBIGNUMBERS_ACTION);
+ this.assertFaultAction(currentRequestName, currentDetailName, currentAction, "addNumbers5", "AdNumbers5Fault", TestConstants.ADD_NUMBERS5_ADDNUMBERS_ACTION);
+ this.assertFaultAction(currentRequestName, currentDetailName, currentAction, "addNumbers6", "AddNumbers6Fault", TestConstants.ADD_NUMBERS6_ADDNUMBERS_ACTION);
+ }
+
+ protected String whichHandler()
+ {
+ return "ClientSOAPHandler";
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/JBWS3031TestCase.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/JBWS3031TestCase.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/JBWS3031TestCase.java 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,211 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws3031;
+
+import java.net.URL;
+
+import junit.framework.Test;
+
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+/**
+ * [JBWS-3031] Use WSDL addressing metadata when addressing related annotations are not present on SEI.
+ *
+ * @author <a href="mailto:ropalka@redhat.com">Richard Opalka</a>
+ */
+public class JBWS3031TestCase extends JBossWSTest
+{
+
+ AddNumbersPortType port;
+
+ public static Test suite()
+ {
+ return new JBossWSTestSetup(JBWS3031TestCase.class, "jaxws-jbws3031.war");
+ }
+
+ public void setUp() throws Exception
+ {
+ if (port == null)
+ {
+ URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jaxws-jbws3031/Endpoint?wsdl");
+ AddNumbersService service = new AddNumbersService(wsdlURL);
+ port = (AddNumbersPortType) service.getPort(AddNumbersPortType.class);
+ }
+ }
+
+ public void testAddNumbersDefaultAddNumbersFaultAction() throws Exception
+ {
+ try
+ {
+ port.addNumbers(-10, 10);
+ fail("AddNumbersFault_Exception must be thrown");
+ }
+ catch (AddNumbersFault_Exception ex)
+ {
+ log.debug("WSA:Action headers are correct");
+ }
+ }
+
+ public void testAddNumbersDefaultTooBigNumbersFaultAction() throws Exception
+ {
+ try
+ {
+ port.addNumbers(20, 20);
+ fail("TooBigNumbersFault_Exception must be thrown");
+ }
+ catch (TooBigNumbersFault_Exception ex)
+ {
+ log.debug("WSA:Action headers are correct");
+ }
+ }
+
+ public void testAddNumbers2ExplicitAddNumbers2FaultAction() throws Exception
+ {
+ try
+ {
+ port.addNumbers2(-10, 10);
+ fail("AddNumbers2Fault must be thrown");
+ }
+ catch (AddNumbers2Fault ex)
+ {
+ log.debug("WSA:Action headers are correct");
+ }
+ }
+
+ public void testAddNumbers2ExplicitTooBigNumbers2FaultAction() throws Exception
+ {
+ try
+ {
+ port.addNumbers2(20, 20);
+ fail("TooBigNumbers2Fault must be thrown");
+ }
+ catch (TooBigNumbers2Fault ex)
+ {
+ log.debug("WSA:Action headers are correct");
+ }
+ }
+
+ public void testAddNumbers3ExplicitAddNumbers3FaultAction() throws Exception
+ {
+ try
+ {
+ port.addNumbers3(-10, 10);
+ fail("AddNumbers3Fault must be thrown");
+ }
+ catch (AddNumbers3Fault ex)
+ {
+ log.debug("WSA:Action headers are correct");
+ }
+ }
+
+ public void testAddNumbers3DefaultTooBigNumbers3FaultAction() throws Exception
+ {
+ try
+ {
+ port.addNumbers3(20, 20);
+ fail("TooBigNumbers3Fault must be thrown");
+ }
+ catch (TooBigNumbers3Fault ex)
+ {
+ log.debug("WSA:Action headers are correct");
+ }
+ }
+
+ public void testAddNumbers4DefaultAddNumbers4FaultAction() throws Exception
+ {
+ try
+ {
+ port.addNumbers4(-10, 10);
+ fail("AddNumbers4Fault must be thrown");
+ }
+ catch (AddNumbers4Fault ex)
+ {
+ log.debug("WSA:Action headers are correct");
+ }
+ }
+
+ public void testAddNumbers4ExplicitTooBigNumbers4FaultAction() throws Exception
+ {
+ try
+ {
+ port.addNumbers4(20, 20);
+ fail("TooBigNumbers4Fault must be thrown");
+ }
+ catch (TooBigNumbers4Fault ex)
+ {
+ log.debug("WSA:Action headers are correct");
+ }
+ }
+
+ public void testAddNumbers5ExplicitAddNumbers5FaultAction() throws Exception
+ {
+ try
+ {
+ port.addNumbers5(-10, 20);
+ fail("AddNumbers5Fault must be thrown");
+ }
+ catch (AddNumbers5Fault ex)
+ {
+ log.debug("WSA:Action headers are correct");
+ }
+ }
+
+ public void testAddNumbers6EmptyAddNumbers6FaultAction() throws Exception
+ {
+ try
+ {
+ port.addNumbers6(-10, 20);
+ fail("AddNumbers6Fault must be thrown");
+ }
+ catch (AddNumbers6Fault ex)
+ {
+ log.debug("WSA:Action headers are correct");
+ }
+ }
+
+ public void testDefaultInputOutputActionExplicitMessageNames() throws Exception
+ {
+ port.addNumbers2(10, 10);
+ }
+
+ public void testDefaultInputOutputAction() throws Exception
+ {
+ port.addNumbers3(10, 10);
+ }
+
+ public void testEmptyInputOutputAction() throws Exception
+ {
+ port.addNumbers4(10, 10);
+ }
+
+ public void testExplicitInputOutputActions() throws Exception
+ {
+ port.addNumbers5(10, 10);
+ }
+
+ public void testExplicitInputDefaultOutputAction() throws Exception
+ {
+ port.addNumbers6(10, 10);
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/ObjectFactory.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/ObjectFactory.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/ObjectFactory.java 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,355 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws3031;
+
+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.jbws3031 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 _AddNumbersResponse6_QNAME = new QName("http://example.com/", "addNumbersResponse6");
+
+ private final static QName _AddNumbers5Fault_QNAME = new QName("http://example.com/", "AddNumbers5Fault");
+
+ private final static QName _AddNumbersResponse2_QNAME = new QName("http://example.com/", "addNumbersResponse2");
+
+ private final static QName _AddNumbersResponse3_QNAME = new QName("http://example.com/", "addNumbersResponse3");
+
+ private final static QName _AddNumbersResponse4_QNAME = new QName("http://example.com/", "addNumbersResponse4");
+
+ private final static QName _AddNumbers_QNAME = new QName("http://example.com/", "addNumbers");
+
+ private final static QName _AddNumbersResponse5_QNAME = new QName("http://example.com/", "addNumbersResponse5");
+
+ private final static QName _TooBigNumbers4Fault_QNAME = new QName("http://example.com/", "TooBigNumbers4Fault");
+
+ private final static QName _TooBigNumbersFault_QNAME = new QName("http://example.com/", "TooBigNumbersFault");
+
+ private final static QName _AddNumbersFault_QNAME = new QName("http://example.com/", "AddNumbersFault");
+
+ private final static QName _TooBigNumbers3Fault_QNAME = new QName("http://example.com/", "TooBigNumbers3Fault");
+
+ private final static QName _AddNumbers6_QNAME = new QName("http://example.com/", "addNumbers6");
+
+ private final static QName _AddNumbers3Fault_QNAME = new QName("http://example.com/", "AddNumbers3Fault");
+
+ private final static QName _AddNumbers5_QNAME = new QName("http://example.com/", "addNumbers5");
+
+ private final static QName _AddNumbers4Fault_QNAME = new QName("http://example.com/", "AddNumbers4Fault");
+
+ private final static QName _AddNumbers4_QNAME = new QName("http://example.com/", "addNumbers4");
+
+ private final static QName _AddNumbers3_QNAME = new QName("http://example.com/", "addNumbers3");
+
+ private final static QName _AddNumbers2_QNAME = new QName("http://example.com/", "addNumbers2");
+
+ private final static QName _AddNumbers6Fault_QNAME = new QName("http://example.com/", "AddNumbers6Fault");
+
+ private final static QName _TooBigNumbers2Fault_QNAME = new QName("http://example.com/", "TooBigNumbers2Fault");
+
+ private final static QName _AddNumbers2Fault_QNAME = new QName("http://example.com/", "AddNumbers2Fault");
+
+ private final static QName _AddNumbersResponse_QNAME = new QName("http://example.com/", "addNumbersResponse");
+
+ /**
+ * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.jboss.test.ws.jaxws.jbws3031
+ *
+ */
+ public ObjectFactory()
+ {
+ }
+
+ /**
+ * Create an instance of {@link AddNumbersFault }
+ *
+ */
+ public AddNumbersFault createAddNumbersFault()
+ {
+ return new AddNumbersFault();
+ }
+
+ /**
+ * Create an instance of {@link AddNumbersResponse }
+ *
+ */
+ public AddNumbersResponse createAddNumbersResponse()
+ {
+ return new AddNumbersResponse();
+ }
+
+ /**
+ * Create an instance of {@link TooBigNumbersFault }
+ *
+ */
+ public TooBigNumbersFault createTooBigNumbersFault()
+ {
+ return new TooBigNumbersFault();
+ }
+
+ /**
+ * Create an instance of {@link AddNumbers }
+ *
+ */
+ public AddNumbers createAddNumbers()
+ {
+ return new AddNumbers();
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersResponse }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "addNumbersResponse6")
+ public JAXBElement<AddNumbersResponse> createAddNumbersResponse6(AddNumbersResponse value)
+ {
+ return new JAXBElement<AddNumbersResponse>(_AddNumbersResponse6_QNAME, AddNumbersResponse.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersFault }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "AddNumbers5Fault")
+ public JAXBElement<AddNumbersFault> createAddNumbers5Fault(AddNumbersFault value)
+ {
+ return new JAXBElement<AddNumbersFault>(_AddNumbers5Fault_QNAME, AddNumbersFault.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersResponse }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "addNumbersResponse2")
+ public JAXBElement<AddNumbersResponse> createAddNumbersResponse2(AddNumbersResponse value)
+ {
+ return new JAXBElement<AddNumbersResponse>(_AddNumbersResponse2_QNAME, AddNumbersResponse.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersResponse }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "addNumbersResponse3")
+ public JAXBElement<AddNumbersResponse> createAddNumbersResponse3(AddNumbersResponse value)
+ {
+ return new JAXBElement<AddNumbersResponse>(_AddNumbersResponse3_QNAME, AddNumbersResponse.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersResponse }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "addNumbersResponse4")
+ public JAXBElement<AddNumbersResponse> createAddNumbersResponse4(AddNumbersResponse value)
+ {
+ return new JAXBElement<AddNumbersResponse>(_AddNumbersResponse4_QNAME, AddNumbersResponse.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbers }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "addNumbers")
+ public JAXBElement<AddNumbers> createAddNumbers(AddNumbers value)
+ {
+ return new JAXBElement<AddNumbers>(_AddNumbers_QNAME, AddNumbers.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersResponse }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "addNumbersResponse5")
+ public JAXBElement<AddNumbersResponse> createAddNumbersResponse5(AddNumbersResponse value)
+ {
+ return new JAXBElement<AddNumbersResponse>(_AddNumbersResponse5_QNAME, AddNumbersResponse.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link TooBigNumbersFault }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "TooBigNumbers4Fault")
+ public JAXBElement<TooBigNumbersFault> createTooBigNumbers4Fault(TooBigNumbersFault value)
+ {
+ return new JAXBElement<TooBigNumbersFault>(_TooBigNumbers4Fault_QNAME, TooBigNumbersFault.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link TooBigNumbersFault }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "TooBigNumbersFault")
+ public JAXBElement<TooBigNumbersFault> createTooBigNumbersFault(TooBigNumbersFault value)
+ {
+ return new JAXBElement<TooBigNumbersFault>(_TooBigNumbersFault_QNAME, TooBigNumbersFault.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersFault }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "AddNumbersFault")
+ public JAXBElement<AddNumbersFault> createAddNumbersFault(AddNumbersFault value)
+ {
+ return new JAXBElement<AddNumbersFault>(_AddNumbersFault_QNAME, AddNumbersFault.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link TooBigNumbersFault }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "TooBigNumbers3Fault")
+ public JAXBElement<TooBigNumbersFault> createTooBigNumbers3Fault(TooBigNumbersFault value)
+ {
+ return new JAXBElement<TooBigNumbersFault>(_TooBigNumbers3Fault_QNAME, TooBigNumbersFault.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbers }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "addNumbers6")
+ public JAXBElement<AddNumbers> createAddNumbers6(AddNumbers value)
+ {
+ return new JAXBElement<AddNumbers>(_AddNumbers6_QNAME, AddNumbers.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersFault }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "AddNumbers3Fault")
+ public JAXBElement<AddNumbersFault> createAddNumbers3Fault(AddNumbersFault value)
+ {
+ return new JAXBElement<AddNumbersFault>(_AddNumbers3Fault_QNAME, AddNumbersFault.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbers }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "addNumbers5")
+ public JAXBElement<AddNumbers> createAddNumbers5(AddNumbers value)
+ {
+ return new JAXBElement<AddNumbers>(_AddNumbers5_QNAME, AddNumbers.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersFault }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "AddNumbers4Fault")
+ public JAXBElement<AddNumbersFault> createAddNumbers4Fault(AddNumbersFault value)
+ {
+ return new JAXBElement<AddNumbersFault>(_AddNumbers4Fault_QNAME, AddNumbersFault.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbers }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "addNumbers4")
+ public JAXBElement<AddNumbers> createAddNumbers4(AddNumbers value)
+ {
+ return new JAXBElement<AddNumbers>(_AddNumbers4_QNAME, AddNumbers.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbers }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "addNumbers3")
+ public JAXBElement<AddNumbers> createAddNumbers3(AddNumbers value)
+ {
+ return new JAXBElement<AddNumbers>(_AddNumbers3_QNAME, AddNumbers.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbers }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "addNumbers2")
+ public JAXBElement<AddNumbers> createAddNumbers2(AddNumbers value)
+ {
+ return new JAXBElement<AddNumbers>(_AddNumbers2_QNAME, AddNumbers.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersFault }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "AddNumbers6Fault")
+ public JAXBElement<AddNumbersFault> createAddNumbers6Fault(AddNumbersFault value)
+ {
+ return new JAXBElement<AddNumbersFault>(_AddNumbers6Fault_QNAME, AddNumbersFault.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link TooBigNumbersFault }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "TooBigNumbers2Fault")
+ public JAXBElement<TooBigNumbersFault> createTooBigNumbers2Fault(TooBigNumbersFault value)
+ {
+ return new JAXBElement<TooBigNumbersFault>(_TooBigNumbers2Fault_QNAME, TooBigNumbersFault.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersFault }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "AddNumbers2Fault")
+ public JAXBElement<AddNumbersFault> createAddNumbers2Fault(AddNumbersFault value)
+ {
+ return new JAXBElement<AddNumbersFault>(_AddNumbers2Fault_QNAME, AddNumbersFault.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersResponse }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "addNumbersResponse")
+ public JAXBElement<AddNumbersResponse> createAddNumbersResponse(AddNumbersResponse value)
+ {
+ return new JAXBElement<AddNumbersResponse>(_AddNumbersResponse_QNAME, AddNumbersResponse.class, null, value);
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/TooBigNumbers2Fault.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/TooBigNumbers2Fault.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/TooBigNumbers2Fault.java 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,75 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws3031;
+
+import javax.xml.ws.WebFault;
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.2-12/14/2009 02:16 PM(ramkris)-
+ * Generated source version: 2.2
+ *
+ */
+@WebFault(name = "TooBigNumbers2Fault", targetNamespace = "http://example.com/")
+public class TooBigNumbers2Fault extends Exception
+{
+
+ /**
+ * Java type that goes as soapenv:Fault detail element.
+ *
+ */
+ private TooBigNumbersFault faultInfo;
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ */
+ public TooBigNumbers2Fault(String message, TooBigNumbersFault faultInfo)
+ {
+ super(message);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ * @param cause
+ */
+ public TooBigNumbers2Fault(String message, TooBigNumbersFault faultInfo, Throwable cause)
+ {
+ super(message, cause);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @return
+ * returns fault bean: org.jboss.test.ws.jaxws.jbws3031.TooBigNumbersFault
+ */
+ public TooBigNumbersFault getFaultInfo()
+ {
+ return faultInfo;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/TooBigNumbers3Fault.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/TooBigNumbers3Fault.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/TooBigNumbers3Fault.java 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,75 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws3031;
+
+import javax.xml.ws.WebFault;
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.2-12/14/2009 02:16 PM(ramkris)-
+ * Generated source version: 2.2
+ *
+ */
+@WebFault(name = "TooBigNumbers3Fault", targetNamespace = "http://example.com/")
+public class TooBigNumbers3Fault extends Exception
+{
+
+ /**
+ * Java type that goes as soapenv:Fault detail element.
+ *
+ */
+ private TooBigNumbersFault faultInfo;
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ */
+ public TooBigNumbers3Fault(String message, TooBigNumbersFault faultInfo)
+ {
+ super(message);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ * @param cause
+ */
+ public TooBigNumbers3Fault(String message, TooBigNumbersFault faultInfo, Throwable cause)
+ {
+ super(message, cause);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @return
+ * returns fault bean: org.jboss.test.ws.jaxws.jbws3031.TooBigNumbersFault
+ */
+ public TooBigNumbersFault getFaultInfo()
+ {
+ return faultInfo;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/TooBigNumbers4Fault.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/TooBigNumbers4Fault.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/TooBigNumbers4Fault.java 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,75 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws3031;
+
+import javax.xml.ws.WebFault;
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.2-12/14/2009 02:16 PM(ramkris)-
+ * Generated source version: 2.2
+ *
+ */
+@WebFault(name = "TooBigNumbers4Fault", targetNamespace = "http://example.com/")
+public class TooBigNumbers4Fault extends Exception
+{
+
+ /**
+ * Java type that goes as soapenv:Fault detail element.
+ *
+ */
+ private TooBigNumbersFault faultInfo;
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ */
+ public TooBigNumbers4Fault(String message, TooBigNumbersFault faultInfo)
+ {
+ super(message);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ * @param cause
+ */
+ public TooBigNumbers4Fault(String message, TooBigNumbersFault faultInfo, Throwable cause)
+ {
+ super(message, cause);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @return
+ * returns fault bean: org.jboss.test.ws.jaxws.jbws3031.TooBigNumbersFault
+ */
+ public TooBigNumbersFault getFaultInfo()
+ {
+ return faultInfo;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/TooBigNumbersFault.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/TooBigNumbersFault.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/TooBigNumbersFault.java 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,113 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws3031;
+
+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 TooBigNumbersFault complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="TooBigNumbersFault">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="detail" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="message" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "TooBigNumbersFault", propOrder =
+{"detail", "message"})
+public class TooBigNumbersFault
+{
+
+ @XmlElement(required = true)
+ protected String detail;
+
+ @XmlElement(required = true)
+ protected String message;
+
+ /**
+ * Gets the value of the detail property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDetail()
+ {
+ return detail;
+ }
+
+ /**
+ * Sets the value of the detail property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDetail(String value)
+ {
+ this.detail = value;
+ }
+
+ /**
+ * Gets the value of the message property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getMessage()
+ {
+ return message;
+ }
+
+ /**
+ * Sets the value of the message property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setMessage(String value)
+ {
+ this.message = value;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/TooBigNumbersFault_Exception.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/TooBigNumbersFault_Exception.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/TooBigNumbersFault_Exception.java 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,75 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws3031;
+
+import javax.xml.ws.WebFault;
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.2-12/14/2009 02:16 PM(ramkris)-
+ * Generated source version: 2.2
+ *
+ */
+@WebFault(name = "TooBigNumbersFault", targetNamespace = "http://example.com/")
+public class TooBigNumbersFault_Exception extends Exception
+{
+
+ /**
+ * Java type that goes as soapenv:Fault detail element.
+ *
+ */
+ private TooBigNumbersFault faultInfo;
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ */
+ public TooBigNumbersFault_Exception(String message, TooBigNumbersFault faultInfo)
+ {
+ super(message);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ * @param cause
+ */
+ public TooBigNumbersFault_Exception(String message, TooBigNumbersFault faultInfo, Throwable cause)
+ {
+ super(message, cause);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @return
+ * returns fault bean: org.jboss.test.ws.jaxws.jbws3031.TooBigNumbersFault
+ */
+ public TooBigNumbersFault getFaultInfo()
+ {
+ return faultInfo;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/common/TestConstants.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/common/TestConstants.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/common/TestConstants.java 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,69 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws3031.common;
+
+public final class TestConstants
+{
+ public static final String ADD_NUMBERS_IN_ACTION = "http://example.com/AddNumbersPortType/add";
+
+ public static final String ADD_NUMBERS_OUT_ACTION = "http://example.com/AddNumbersPortType/addResponse";
+
+ public static final String ADD_NUMBERS2_IN_ACTION = "http://example.com/AddNumbersPortType/add2";
+
+ public static final String ADD_NUMBERS2_OUT_ACTION = "http://example.com/AddNumbersPortType/addResponse2";
+
+ public static final String ADD_NUMBERS3_IN_ACTION = "http://example.com/AddNumbersPortType/addNumbers3Request";
+
+ public static final String ADD_NUMBERS3_OUT_ACTION = "http://example.com/AddNumbersPortType/addNumbers3Response";
+
+ public static final String ADD_NUMBERS4_IN_ACTION = "http://example.com/AddNumbersPortType/addNumbers4Request";
+
+ public static final String ADD_NUMBERS4_OUT_ACTION = "http://example.com/AddNumbersPortType/addNumbers4Response";
+
+ public static final String ADD_NUMBERS5_IN_ACTION = "ExplicitInput5";
+
+ public static final String ADD_NUMBERS5_OUT_ACTION = "ExplicitOutput5";
+
+ public static final String ADD_NUMBERS6_IN_ACTION = "ExplicitInput6";
+
+ public static final String ADD_NUMBERS6_OUT_ACTION = "http://example.com/AddNumbersPortType/addNumbers6Response";
+
+ public static final String ADD_NUMBERS_ADDNUMBERS_ACTION = "http://example.com/AddNumbersPortType/addNumbers/Fault/addFault";
+
+ public static final String ADD_NUMBERS_TOOBIGNUMBERS_ACTION = "http://example.com/AddNumbersPortType/addNumbers/Fault/tooBigFault";
+
+ public static final String ADD_NUMBERS2_ADDNUMBERS_ACTION = "add2fault";
+
+ public static final String ADD_NUMBERS2_TOOBIGNUMBERS_ACTION = "toobig2fault";
+
+ public static final String ADD_NUMBERS3_ADDNUMBERS_ACTION = "add3fault";
+
+ public static final String ADD_NUMBERS3_TOOBIGNUMBERS_ACTION = "http://example.com/AddNumbersPortType/addNumbers3/Fault/tooBig3Fault";
+
+ public static final String ADD_NUMBERS4_ADDNUMBERS_ACTION = "http://example.com/AddNumbersPortType/addNumbers4/Fault/add4Fault";
+
+ public static final String ADD_NUMBERS4_TOOBIGNUMBERS_ACTION = "toobig4fault";
+
+ public static final String ADD_NUMBERS5_ADDNUMBERS_ACTION = "fault5";
+
+ public static final String ADD_NUMBERS6_ADDNUMBERS_ACTION = "http://example.com/AddNumbersPortType/addNumbers6/Fault/add6Fault";
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/package-info.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/package-info.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/package-info.java 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,24 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+(a)javax.xml.bind.annotation.XmlSchema(namespace = "http://example.com/", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
+package org.jboss.test.ws.jaxws.jbws3031;
+
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbers.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbers.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbers.java 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,94 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws3031.service;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * <p>Java class for addNumbers complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="addNumbers">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="number1" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * <element name="number2" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "addNumbers", propOrder =
+{"number1", "number2"})
+public class AddNumbers
+{
+
+ protected int number1;
+
+ protected int number2;
+
+ /**
+ * Gets the value of the number1 property.
+ *
+ */
+ public int getNumber1()
+ {
+ return number1;
+ }
+
+ /**
+ * Sets the value of the number1 property.
+ *
+ */
+ public void setNumber1(int value)
+ {
+ this.number1 = value;
+ }
+
+ /**
+ * Gets the value of the number2 property.
+ *
+ */
+ public int getNumber2()
+ {
+ return number2;
+ }
+
+ /**
+ * Sets the value of the number2 property.
+ *
+ */
+ public void setNumber2(int value)
+ {
+ this.number2 = value;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbers2Fault.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbers2Fault.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbers2Fault.java 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,75 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws3031.service;
+
+import javax.xml.ws.WebFault;
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.2-12/14/2009 02:16 PM(ramkris)-
+ * Generated source version: 2.2
+ *
+ */
+@WebFault(name = "AddNumbers2Fault", targetNamespace = "http://example.com/")
+public class AddNumbers2Fault extends Exception
+{
+
+ /**
+ * Java type that goes as soapenv:Fault detail element.
+ *
+ */
+ private AddNumbersFault faultInfo;
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ */
+ public AddNumbers2Fault(String message, AddNumbersFault faultInfo)
+ {
+ super(message);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ * @param cause
+ */
+ public AddNumbers2Fault(String message, AddNumbersFault faultInfo, Throwable cause)
+ {
+ super(message, cause);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @return
+ * returns fault bean: org.jboss.test.ws.jaxws.jbws3031.service.AddNumbersFault
+ */
+ public AddNumbersFault getFaultInfo()
+ {
+ return faultInfo;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbers3Fault.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbers3Fault.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbers3Fault.java 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,75 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws3031.service;
+
+import javax.xml.ws.WebFault;
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.2-12/14/2009 02:16 PM(ramkris)-
+ * Generated source version: 2.2
+ *
+ */
+@WebFault(name = "AddNumbers3Fault", targetNamespace = "http://example.com/")
+public class AddNumbers3Fault extends Exception
+{
+
+ /**
+ * Java type that goes as soapenv:Fault detail element.
+ *
+ */
+ private AddNumbersFault faultInfo;
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ */
+ public AddNumbers3Fault(String message, AddNumbersFault faultInfo)
+ {
+ super(message);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ * @param cause
+ */
+ public AddNumbers3Fault(String message, AddNumbersFault faultInfo, Throwable cause)
+ {
+ super(message, cause);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @return
+ * returns fault bean: org.jboss.test.ws.jaxws.jbws3031.service.AddNumbersFault
+ */
+ public AddNumbersFault getFaultInfo()
+ {
+ return faultInfo;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbers4Fault.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbers4Fault.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbers4Fault.java 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,75 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws3031.service;
+
+import javax.xml.ws.WebFault;
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.2-12/14/2009 02:16 PM(ramkris)-
+ * Generated source version: 2.2
+ *
+ */
+@WebFault(name = "AddNumbers4Fault", targetNamespace = "http://example.com/")
+public class AddNumbers4Fault extends Exception
+{
+
+ /**
+ * Java type that goes as soapenv:Fault detail element.
+ *
+ */
+ private AddNumbersFault faultInfo;
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ */
+ public AddNumbers4Fault(String message, AddNumbersFault faultInfo)
+ {
+ super(message);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ * @param cause
+ */
+ public AddNumbers4Fault(String message, AddNumbersFault faultInfo, Throwable cause)
+ {
+ super(message, cause);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @return
+ * returns fault bean: org.jboss.test.ws.jaxws.jbws3031.service.AddNumbersFault
+ */
+ public AddNumbersFault getFaultInfo()
+ {
+ return faultInfo;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbers5Fault.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbers5Fault.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbers5Fault.java 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,75 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws3031.service;
+
+import javax.xml.ws.WebFault;
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.2-12/14/2009 02:16 PM(ramkris)-
+ * Generated source version: 2.2
+ *
+ */
+@WebFault(name = "AddNumbers5Fault", targetNamespace = "http://example.com/")
+public class AddNumbers5Fault extends Exception
+{
+
+ /**
+ * Java type that goes as soapenv:Fault detail element.
+ *
+ */
+ private AddNumbersFault faultInfo;
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ */
+ public AddNumbers5Fault(String message, AddNumbersFault faultInfo)
+ {
+ super(message);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ * @param cause
+ */
+ public AddNumbers5Fault(String message, AddNumbersFault faultInfo, Throwable cause)
+ {
+ super(message, cause);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @return
+ * returns fault bean: org.jboss.test.ws.jaxws.jbws3031.service.AddNumbersFault
+ */
+ public AddNumbersFault getFaultInfo()
+ {
+ return faultInfo;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbers6Fault.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbers6Fault.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbers6Fault.java 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,75 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws3031.service;
+
+import javax.xml.ws.WebFault;
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.2-12/14/2009 02:16 PM(ramkris)-
+ * Generated source version: 2.2
+ *
+ */
+@WebFault(name = "AddNumbers6Fault", targetNamespace = "http://example.com/")
+public class AddNumbers6Fault extends Exception
+{
+
+ /**
+ * Java type that goes as soapenv:Fault detail element.
+ *
+ */
+ private AddNumbersFault faultInfo;
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ */
+ public AddNumbers6Fault(String message, AddNumbersFault faultInfo)
+ {
+ super(message);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ * @param cause
+ */
+ public AddNumbers6Fault(String message, AddNumbersFault faultInfo, Throwable cause)
+ {
+ super(message, cause);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @return
+ * returns fault bean: org.jboss.test.ws.jaxws.jbws3031.service.AddNumbersFault
+ */
+ public AddNumbersFault getFaultInfo()
+ {
+ return faultInfo;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbersFault.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbersFault.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbersFault.java 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,113 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws3031.service;
+
+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 AddNumbersFault complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="AddNumbersFault">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="detail" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="message" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "AddNumbersFault", propOrder =
+{"detail", "message"})
+public class AddNumbersFault
+{
+
+ @XmlElement(required = true)
+ protected String detail;
+
+ @XmlElement(required = true)
+ protected String message;
+
+ /**
+ * Gets the value of the detail property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDetail()
+ {
+ return detail;
+ }
+
+ /**
+ * Sets the value of the detail property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDetail(String value)
+ {
+ this.detail = value;
+ }
+
+ /**
+ * Gets the value of the message property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getMessage()
+ {
+ return message;
+ }
+
+ /**
+ * Sets the value of the message property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setMessage(String value)
+ {
+ this.message = value;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbersFault_Exception.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbersFault_Exception.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbersFault_Exception.java 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,75 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws3031.service;
+
+import javax.xml.ws.WebFault;
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.2-12/14/2009 02:16 PM(ramkris)-
+ * Generated source version: 2.2
+ *
+ */
+@WebFault(name = "AddNumbersFault", targetNamespace = "http://example.com/")
+public class AddNumbersFault_Exception extends Exception
+{
+
+ /**
+ * Java type that goes as soapenv:Fault detail element.
+ *
+ */
+ private AddNumbersFault faultInfo;
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ */
+ public AddNumbersFault_Exception(String message, AddNumbersFault faultInfo)
+ {
+ super(message);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ * @param cause
+ */
+ public AddNumbersFault_Exception(String message, AddNumbersFault faultInfo, Throwable cause)
+ {
+ super(message, cause);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @return
+ * returns fault bean: org.jboss.test.ws.jaxws.jbws3031.service.AddNumbersFault
+ */
+ public AddNumbersFault getFaultInfo()
+ {
+ return faultInfo;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbersImpl.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbersImpl.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbersImpl.java 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,138 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws3031.service;
+
+import javax.jws.WebService;
+
+@WebService(portName = "AddNumbersPort", serviceName = "AddNumbersService", targetNamespace = "http://example.com/", wsdlLocation = "WEB-INF/wsdl/WSAW2JDLActionTest.wsdl", endpointInterface = "org.jboss.test.ws.jaxws.jbws3031.service.AddNumbersPortType")
+public class AddNumbersImpl implements AddNumbersPortType
+{
+ public int addNumbers(int number1, int number2) throws AddNumbersFault_Exception, TooBigNumbersFault_Exception
+ {
+ if (number1 < 0 || number2 < 0)
+ {
+ AddNumbersFault faultInfo = createAddNumbersFault(number1, number2);
+ throw new AddNumbersFault_Exception(faultInfo.getMessage(), faultInfo);
+ }
+
+ if (number1 > 10 || number2 > 10)
+ {
+ TooBigNumbersFault faultInfo = createTooBigNumbersFaultInfo(number1, number2);
+ throw new TooBigNumbersFault_Exception(faultInfo.getMessage(), faultInfo);
+ }
+
+ return number1 + number2;
+ }
+
+ public int addNumbers2(int number1, int number2) throws AddNumbers2Fault, TooBigNumbers2Fault
+ {
+ if (number1 < 0 || number2 < 0)
+ {
+ AddNumbersFault faultInfo = createAddNumbersFault(number1, number2);
+ throw new AddNumbers2Fault(faultInfo.getMessage(), faultInfo);
+ }
+
+ if (number1 > 10 || number2 > 10)
+ {
+ TooBigNumbersFault faultInfo = createTooBigNumbersFaultInfo(number1, number2);
+ throw new TooBigNumbers2Fault(faultInfo.getMessage(), faultInfo);
+ }
+
+ return number1 + number2;
+ }
+
+ public int addNumbers3(int number1, int number2) throws AddNumbers3Fault, TooBigNumbers3Fault
+ {
+ if (number1 < 0 || number2 < 0)
+ {
+ AddNumbersFault faultInfo = createAddNumbersFault(number1, number2);
+ throw new AddNumbers3Fault(faultInfo.getMessage(), faultInfo);
+ }
+
+ if (number1 > 10 || number2 > 10)
+ {
+ TooBigNumbersFault faultInfo = createTooBigNumbersFaultInfo(number1, number2);
+ throw new TooBigNumbers3Fault(faultInfo.getMessage(), faultInfo);
+ }
+
+ return number1 + number2;
+ }
+
+ public int addNumbers4(int number1, int number2) throws AddNumbers4Fault, TooBigNumbers4Fault
+ {
+ if (number1 < 0 || number2 < 0)
+ {
+ AddNumbersFault faultInfo = createAddNumbersFault(number1, number2);
+ throw new AddNumbers4Fault(faultInfo.getMessage(), faultInfo);
+ }
+
+ if (number1 > 10 || number2 > 10)
+ {
+ TooBigNumbersFault faultInfo = createTooBigNumbersFaultInfo(number1, number2);
+ throw new TooBigNumbers4Fault(faultInfo.getMessage(), faultInfo);
+ }
+
+ return number1 + number2;
+ }
+
+ public int addNumbers5(int number1, int number2) throws AddNumbers5Fault
+ {
+ if (number1 < 0 || number2 < 0)
+ {
+ AddNumbersFault faultInfo = createAddNumbersFault(number1, number2);
+ throw new AddNumbers5Fault(faultInfo.getMessage(), faultInfo);
+ }
+
+ return number1 + number2;
+ }
+
+ public int addNumbers6(int number1, int number2) throws AddNumbers6Fault
+ {
+ if (number1 < 0 || number2 < 0)
+ {
+ AddNumbersFault faultInfo = createAddNumbersFault(number1, number2);
+ throw new AddNumbers6Fault(faultInfo.getMessage(), faultInfo);
+ }
+
+ return number1 + number2;
+ }
+
+ AddNumbersFault createAddNumbersFault(int number1, int number2)
+ {
+ ObjectFactory of = new ObjectFactory();
+ AddNumbersFault faultInfo = of.createAddNumbersFault();
+ faultInfo.setDetail("Negative numbers cant be added!");
+ faultInfo.setMessage("Numbers: " + number1 + ", " + number2);
+
+ return faultInfo;
+ }
+
+ TooBigNumbersFault createTooBigNumbersFaultInfo(int number1, int number2)
+ {
+ ObjectFactory of = new ObjectFactory();
+ TooBigNumbersFault faultInfo = of.createTooBigNumbersFault();
+ faultInfo.setDetail("Too Big numbers cant be added!");
+ faultInfo.setMessage("Numbers: " + number1 + ", " + number2);
+
+ return faultInfo;
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbersPortType.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbersPortType.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbersPortType.java 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,156 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws3031.service;
+
+import javax.jws.HandlerChain;
+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.Action;
+import javax.xml.ws.FaultAction;
+import javax.xml.ws.RequestWrapper;
+import javax.xml.ws.ResponseWrapper;
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.2-12/14/2009 02:16 PM(ramkris)-
+ * Generated source version: 2.2
+ *
+ */
+@WebService(name = "AddNumbersPortType", targetNamespace = "http://example.com/")
+@HandlerChain(file = "AddNumbersPortType_handler.xml")
+@XmlSeeAlso(
+{ObjectFactory.class})
+public interface AddNumbersPortType
+{
+
+ /**
+ *
+ * @param number2
+ * @param number1
+ * @return
+ * returns int
+ * @throws TooBigNumbersFault_Exception
+ * @throws AddNumbersFault_Exception
+ */
+ @WebMethod
+ @WebResult(targetNamespace = "http://example.com/")
+ @RequestWrapper(localName = "addNumbers", targetNamespace = "http://example.com/", className = "org.jboss.test.ws.jaxws.jbws3031.service.AddNumbers")
+ @ResponseWrapper(localName = "addNumbersResponse", targetNamespace = "http://example.com/", className = "org.jboss.test.ws.jaxws.jbws3031.service.AddNumbersResponse")
+ public int addNumbers(@WebParam(name = "number1", targetNamespace = "http://example.com/") int number1,
+ @WebParam(name = "number2", targetNamespace = "http://example.com/") int number2)
+ throws AddNumbersFault_Exception, TooBigNumbersFault_Exception;
+
+ /**
+ *
+ * @param number2
+ * @param number1
+ * @return
+ * returns int
+ * @throws TooBigNumbers2Fault
+ * @throws AddNumbers2Fault
+ */
+ @WebMethod
+ @WebResult(targetNamespace = "http://example.com/")
+ @RequestWrapper(localName = "addNumbers2", targetNamespace = "http://example.com/", className = "org.jboss.test.ws.jaxws.jbws3031.service.AddNumbers")
+ @ResponseWrapper(localName = "addNumbersResponse2", targetNamespace = "http://example.com/", className = "org.jboss.test.ws.jaxws.jbws3031.service.AddNumbersResponse")
+ @Action(fault =
+ {@FaultAction(className = AddNumbers2Fault.class, value = "add2fault"),
+ @FaultAction(className = TooBigNumbers2Fault.class, value = "toobig2fault")})
+ public int addNumbers2(@WebParam(name = "number1", targetNamespace = "http://example.com/") int number1,
+ @WebParam(name = "number2", targetNamespace = "http://example.com/") int number2) throws AddNumbers2Fault,
+ TooBigNumbers2Fault;
+
+ /**
+ *
+ * @param number2
+ * @param number1
+ * @return
+ * returns int
+ * @throws TooBigNumbers3Fault
+ * @throws AddNumbers3Fault
+ */
+ @WebMethod
+ @WebResult(targetNamespace = "http://example.com/")
+ @RequestWrapper(localName = "addNumbers3", targetNamespace = "http://example.com/", className = "org.jboss.test.ws.jaxws.jbws3031.service.AddNumbers")
+ @ResponseWrapper(localName = "addNumbersResponse3", targetNamespace = "http://example.com/", className = "org.jboss.test.ws.jaxws.jbws3031.service.AddNumbersResponse")
+ @Action(fault =
+ {@FaultAction(className = AddNumbers3Fault.class, value = "add3fault")})
+ public int addNumbers3(@WebParam(name = "number1", targetNamespace = "http://example.com/") int number1,
+ @WebParam(name = "number2", targetNamespace = "http://example.com/") int number2) throws AddNumbers3Fault,
+ TooBigNumbers3Fault;
+
+ /**
+ *
+ * @param number2
+ * @param number1
+ * @return
+ * returns int
+ * @throws AddNumbers4Fault
+ * @throws TooBigNumbers4Fault
+ */
+ @WebMethod
+ @WebResult(targetNamespace = "http://example.com/")
+ @RequestWrapper(localName = "addNumbers4", targetNamespace = "http://example.com/", className = "org.jboss.test.ws.jaxws.jbws3031.service.AddNumbers")
+ @ResponseWrapper(localName = "addNumbersResponse4", targetNamespace = "http://example.com/", className = "org.jboss.test.ws.jaxws.jbws3031.service.AddNumbersResponse")
+ @Action(fault =
+ {@FaultAction(className = TooBigNumbers4Fault.class, value = "toobig4fault")})
+ public int addNumbers4(@WebParam(name = "number1", targetNamespace = "http://example.com/") int number1,
+ @WebParam(name = "number2", targetNamespace = "http://example.com/") int number2) throws AddNumbers4Fault,
+ TooBigNumbers4Fault;
+
+ /**
+ *
+ * @param number2
+ * @param number1
+ * @return
+ * returns int
+ * @throws AddNumbers5Fault
+ */
+ @WebMethod
+ @WebResult(targetNamespace = "http://example.com/")
+ @RequestWrapper(localName = "addNumbers5", targetNamespace = "http://example.com/", className = "org.jboss.test.ws.jaxws.jbws3031.service.AddNumbers")
+ @ResponseWrapper(localName = "addNumbersResponse5", targetNamespace = "http://example.com/", className = "org.jboss.test.ws.jaxws.jbws3031.service.AddNumbersResponse")
+ @Action(input = "ExplicitInput5", output = "ExplicitOutput5", fault =
+ {@FaultAction(className = AddNumbers5Fault.class, value = "fault5")})
+ public int addNumbers5(@WebParam(name = "number1", targetNamespace = "http://example.com/") int number1,
+ @WebParam(name = "number2", targetNamespace = "http://example.com/") int number2) throws AddNumbers5Fault;
+
+ /**
+ *
+ * @param number2
+ * @param number1
+ * @return
+ * returns int
+ * @throws AddNumbers6Fault
+ */
+ @WebMethod
+ @WebResult(targetNamespace = "http://example.com/")
+ @RequestWrapper(localName = "addNumbers6", targetNamespace = "http://example.com/", className = "org.jboss.test.ws.jaxws.jbws3031.service.AddNumbers")
+ @ResponseWrapper(localName = "addNumbersResponse6", targetNamespace = "http://example.com/", className = "org.jboss.test.ws.jaxws.jbws3031.service.AddNumbersResponse")
+ @Action(input = "ExplicitInput6")
+ public int addNumbers6(@WebParam(name = "number1", targetNamespace = "http://example.com/") int number1,
+ @WebParam(name = "number2", targetNamespace = "http://example.com/") int number2) throws AddNumbers6Fault;
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbersPortType_handler.xml
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbersPortType_handler.xml (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbersPortType_handler.xml 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?><handler-chains xmlns="http://java.sun.com/xml/ns/javaee">
+ <handler-chain>
+ <port-name-pattern xmlns:ns2="http://example.com/">ns2:AddNumbersPort</port-name-pattern>
+ <handler>
+ <handler-name>ServerSOAPHandler</handler-name>
+ <handler-class>org.jboss.test.ws.jaxws.jbws3031.service.ServerSOAPHandler</handler-class>
+ </handler>
+ </handler-chain>
+</handler-chains>
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbersResponse.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbersResponse.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbersResponse.java 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,75 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws3031.service;
+
+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 addNumbersResponse complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="addNumbersResponse">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="return" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "addNumbersResponse", propOrder =
+{"_return"})
+public class AddNumbersResponse
+{
+
+ @XmlElement(name = "return")
+ protected int _return;
+
+ /**
+ * Gets the value of the return property.
+ *
+ */
+ public int getReturn()
+ {
+ return _return;
+ }
+
+ /**
+ * Sets the value of the return property.
+ *
+ */
+ public void setReturn(int value)
+ {
+ this._return = value;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbersService.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbersService.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbersService.java 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,132 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws3031.service;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+
+import javax.jws.HandlerChain;
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebEndpoint;
+import javax.xml.ws.WebServiceClient;
+import javax.xml.ws.WebServiceException;
+import javax.xml.ws.WebServiceFeature;
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.2-12/14/2009 02:16 PM(ramkris)-
+ * Generated source version: 2.2
+ *
+ */
+@WebServiceClient(name = "AddNumbersService", targetNamespace = "http://example.com/", wsdlLocation = "file:/opt/svn/jbossas/tags/6.0.0.20100429-M3/build/target/jboss-6.0.0.20100429-M3/bin/WSAW2JDLActionTest.wsdl")
+@HandlerChain(file = "AddNumbersService_handler.xml")
+public class AddNumbersService extends Service
+{
+
+ private final static URL ADDNUMBERSSERVICE_WSDL_LOCATION;
+
+ private final static WebServiceException ADDNUMBERSSERVICE_EXCEPTION;
+
+ private final static QName ADDNUMBERSSERVICE_QNAME = new QName("http://example.com/", "AddNumbersService");
+
+ static
+ {
+ URL url = null;
+ WebServiceException e = null;
+ try
+ {
+ url = new URL(
+ "file:/opt/svn/jbossas/tags/6.0.0.20100429-M3/build/target/jboss-6.0.0.20100429-M3/bin/WSAW2JDLActionTest.wsdl");
+ }
+ catch (MalformedURLException ex)
+ {
+ e = new WebServiceException(ex);
+ }
+ ADDNUMBERSSERVICE_WSDL_LOCATION = url;
+ ADDNUMBERSSERVICE_EXCEPTION = e;
+ }
+
+ public AddNumbersService()
+ {
+ super(__getWsdlLocation(), ADDNUMBERSSERVICE_QNAME);
+ }
+
+ public AddNumbersService(WebServiceFeature... features)
+ {
+ super(__getWsdlLocation(), ADDNUMBERSSERVICE_QNAME, features);
+ }
+
+ public AddNumbersService(URL wsdlLocation)
+ {
+ super(wsdlLocation, ADDNUMBERSSERVICE_QNAME);
+ }
+
+ public AddNumbersService(URL wsdlLocation, WebServiceFeature... features)
+ {
+ super(wsdlLocation, ADDNUMBERSSERVICE_QNAME, features);
+ }
+
+ public AddNumbersService(URL wsdlLocation, QName serviceName)
+ {
+ super(wsdlLocation, serviceName);
+ }
+
+ public AddNumbersService(URL wsdlLocation, QName serviceName, WebServiceFeature... features)
+ {
+ super(wsdlLocation, serviceName, features);
+ }
+
+ /**
+ *
+ * @return
+ * returns AddNumbersPortType
+ */
+ @WebEndpoint(name = "AddNumbersPort")
+ public AddNumbersPortType getAddNumbersPort()
+ {
+ return super.getPort(new QName("http://example.com/", "AddNumbersPort"), AddNumbersPortType.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 AddNumbersPortType
+ */
+ @WebEndpoint(name = "AddNumbersPort")
+ public AddNumbersPortType getAddNumbersPort(WebServiceFeature... features)
+ {
+ return super.getPort(new QName("http://example.com/", "AddNumbersPort"), AddNumbersPortType.class, features);
+ }
+
+ private static URL __getWsdlLocation()
+ {
+ if (ADDNUMBERSSERVICE_EXCEPTION != null)
+ {
+ throw ADDNUMBERSSERVICE_EXCEPTION;
+ }
+ return ADDNUMBERSSERVICE_WSDL_LOCATION;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbersService_handler.xml
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbersService_handler.xml (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/AddNumbersService_handler.xml 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?><handler-chains xmlns="http://java.sun.com/xml/ns/javaee">
+ <handler-chain>
+ <port-name-pattern xmlns:ns2="http://example.com/">ns2:AddNumbersPort</port-name-pattern>
+ <handler>
+ <handler-name>ServerSOAPHandler</handler-name>
+ <handler-class>org.jboss.test.ws.jaxws.jbws3031.service.ServerSOAPHandler</handler-class>
+ </handler>
+ </handler-chain>
+</handler-chains>
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/ObjectFactory.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/ObjectFactory.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/ObjectFactory.java 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,355 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws3031.service;
+
+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.jbws3031.service 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 _AddNumbersResponse6_QNAME = new QName("http://example.com/", "addNumbersResponse6");
+
+ private final static QName _AddNumbers5Fault_QNAME = new QName("http://example.com/", "AddNumbers5Fault");
+
+ private final static QName _AddNumbersResponse2_QNAME = new QName("http://example.com/", "addNumbersResponse2");
+
+ private final static QName _AddNumbersResponse3_QNAME = new QName("http://example.com/", "addNumbersResponse3");
+
+ private final static QName _AddNumbersResponse4_QNAME = new QName("http://example.com/", "addNumbersResponse4");
+
+ private final static QName _AddNumbers_QNAME = new QName("http://example.com/", "addNumbers");
+
+ private final static QName _AddNumbersResponse5_QNAME = new QName("http://example.com/", "addNumbersResponse5");
+
+ private final static QName _TooBigNumbers4Fault_QNAME = new QName("http://example.com/", "TooBigNumbers4Fault");
+
+ private final static QName _TooBigNumbersFault_QNAME = new QName("http://example.com/", "TooBigNumbersFault");
+
+ private final static QName _AddNumbersFault_QNAME = new QName("http://example.com/", "AddNumbersFault");
+
+ private final static QName _TooBigNumbers3Fault_QNAME = new QName("http://example.com/", "TooBigNumbers3Fault");
+
+ private final static QName _AddNumbers6_QNAME = new QName("http://example.com/", "addNumbers6");
+
+ private final static QName _AddNumbers3Fault_QNAME = new QName("http://example.com/", "AddNumbers3Fault");
+
+ private final static QName _AddNumbers5_QNAME = new QName("http://example.com/", "addNumbers5");
+
+ private final static QName _AddNumbers4Fault_QNAME = new QName("http://example.com/", "AddNumbers4Fault");
+
+ private final static QName _AddNumbers4_QNAME = new QName("http://example.com/", "addNumbers4");
+
+ private final static QName _AddNumbers3_QNAME = new QName("http://example.com/", "addNumbers3");
+
+ private final static QName _AddNumbers2_QNAME = new QName("http://example.com/", "addNumbers2");
+
+ private final static QName _AddNumbers6Fault_QNAME = new QName("http://example.com/", "AddNumbers6Fault");
+
+ private final static QName _TooBigNumbers2Fault_QNAME = new QName("http://example.com/", "TooBigNumbers2Fault");
+
+ private final static QName _AddNumbers2Fault_QNAME = new QName("http://example.com/", "AddNumbers2Fault");
+
+ private final static QName _AddNumbersResponse_QNAME = new QName("http://example.com/", "addNumbersResponse");
+
+ /**
+ * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.jboss.test.ws.jaxws.jbws3031.service
+ *
+ */
+ public ObjectFactory()
+ {
+ }
+
+ /**
+ * Create an instance of {@link AddNumbersFault }
+ *
+ */
+ public AddNumbersFault createAddNumbersFault()
+ {
+ return new AddNumbersFault();
+ }
+
+ /**
+ * Create an instance of {@link TooBigNumbersFault }
+ *
+ */
+ public TooBigNumbersFault createTooBigNumbersFault()
+ {
+ return new TooBigNumbersFault();
+ }
+
+ /**
+ * Create an instance of {@link AddNumbers }
+ *
+ */
+ public AddNumbers createAddNumbers()
+ {
+ return new AddNumbers();
+ }
+
+ /**
+ * Create an instance of {@link AddNumbersResponse }
+ *
+ */
+ public AddNumbersResponse createAddNumbersResponse()
+ {
+ return new AddNumbersResponse();
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersResponse }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "addNumbersResponse6")
+ public JAXBElement<AddNumbersResponse> createAddNumbersResponse6(AddNumbersResponse value)
+ {
+ return new JAXBElement<AddNumbersResponse>(_AddNumbersResponse6_QNAME, AddNumbersResponse.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersFault }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "AddNumbers5Fault")
+ public JAXBElement<AddNumbersFault> createAddNumbers5Fault(AddNumbersFault value)
+ {
+ return new JAXBElement<AddNumbersFault>(_AddNumbers5Fault_QNAME, AddNumbersFault.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersResponse }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "addNumbersResponse2")
+ public JAXBElement<AddNumbersResponse> createAddNumbersResponse2(AddNumbersResponse value)
+ {
+ return new JAXBElement<AddNumbersResponse>(_AddNumbersResponse2_QNAME, AddNumbersResponse.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersResponse }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "addNumbersResponse3")
+ public JAXBElement<AddNumbersResponse> createAddNumbersResponse3(AddNumbersResponse value)
+ {
+ return new JAXBElement<AddNumbersResponse>(_AddNumbersResponse3_QNAME, AddNumbersResponse.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersResponse }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "addNumbersResponse4")
+ public JAXBElement<AddNumbersResponse> createAddNumbersResponse4(AddNumbersResponse value)
+ {
+ return new JAXBElement<AddNumbersResponse>(_AddNumbersResponse4_QNAME, AddNumbersResponse.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbers }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "addNumbers")
+ public JAXBElement<AddNumbers> createAddNumbers(AddNumbers value)
+ {
+ return new JAXBElement<AddNumbers>(_AddNumbers_QNAME, AddNumbers.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersResponse }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "addNumbersResponse5")
+ public JAXBElement<AddNumbersResponse> createAddNumbersResponse5(AddNumbersResponse value)
+ {
+ return new JAXBElement<AddNumbersResponse>(_AddNumbersResponse5_QNAME, AddNumbersResponse.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link TooBigNumbersFault }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "TooBigNumbers4Fault")
+ public JAXBElement<TooBigNumbersFault> createTooBigNumbers4Fault(TooBigNumbersFault value)
+ {
+ return new JAXBElement<TooBigNumbersFault>(_TooBigNumbers4Fault_QNAME, TooBigNumbersFault.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link TooBigNumbersFault }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "TooBigNumbersFault")
+ public JAXBElement<TooBigNumbersFault> createTooBigNumbersFault(TooBigNumbersFault value)
+ {
+ return new JAXBElement<TooBigNumbersFault>(_TooBigNumbersFault_QNAME, TooBigNumbersFault.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersFault }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "AddNumbersFault")
+ public JAXBElement<AddNumbersFault> createAddNumbersFault(AddNumbersFault value)
+ {
+ return new JAXBElement<AddNumbersFault>(_AddNumbersFault_QNAME, AddNumbersFault.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link TooBigNumbersFault }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "TooBigNumbers3Fault")
+ public JAXBElement<TooBigNumbersFault> createTooBigNumbers3Fault(TooBigNumbersFault value)
+ {
+ return new JAXBElement<TooBigNumbersFault>(_TooBigNumbers3Fault_QNAME, TooBigNumbersFault.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbers }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "addNumbers6")
+ public JAXBElement<AddNumbers> createAddNumbers6(AddNumbers value)
+ {
+ return new JAXBElement<AddNumbers>(_AddNumbers6_QNAME, AddNumbers.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersFault }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "AddNumbers3Fault")
+ public JAXBElement<AddNumbersFault> createAddNumbers3Fault(AddNumbersFault value)
+ {
+ return new JAXBElement<AddNumbersFault>(_AddNumbers3Fault_QNAME, AddNumbersFault.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbers }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "addNumbers5")
+ public JAXBElement<AddNumbers> createAddNumbers5(AddNumbers value)
+ {
+ return new JAXBElement<AddNumbers>(_AddNumbers5_QNAME, AddNumbers.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersFault }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "AddNumbers4Fault")
+ public JAXBElement<AddNumbersFault> createAddNumbers4Fault(AddNumbersFault value)
+ {
+ return new JAXBElement<AddNumbersFault>(_AddNumbers4Fault_QNAME, AddNumbersFault.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbers }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "addNumbers4")
+ public JAXBElement<AddNumbers> createAddNumbers4(AddNumbers value)
+ {
+ return new JAXBElement<AddNumbers>(_AddNumbers4_QNAME, AddNumbers.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbers }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "addNumbers3")
+ public JAXBElement<AddNumbers> createAddNumbers3(AddNumbers value)
+ {
+ return new JAXBElement<AddNumbers>(_AddNumbers3_QNAME, AddNumbers.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbers }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "addNumbers2")
+ public JAXBElement<AddNumbers> createAddNumbers2(AddNumbers value)
+ {
+ return new JAXBElement<AddNumbers>(_AddNumbers2_QNAME, AddNumbers.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersFault }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "AddNumbers6Fault")
+ public JAXBElement<AddNumbersFault> createAddNumbers6Fault(AddNumbersFault value)
+ {
+ return new JAXBElement<AddNumbersFault>(_AddNumbers6Fault_QNAME, AddNumbersFault.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link TooBigNumbersFault }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "TooBigNumbers2Fault")
+ public JAXBElement<TooBigNumbersFault> createTooBigNumbers2Fault(TooBigNumbersFault value)
+ {
+ return new JAXBElement<TooBigNumbersFault>(_TooBigNumbers2Fault_QNAME, TooBigNumbersFault.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersFault }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "AddNumbers2Fault")
+ public JAXBElement<AddNumbersFault> createAddNumbers2Fault(AddNumbersFault value)
+ {
+ return new JAXBElement<AddNumbersFault>(_AddNumbers2Fault_QNAME, AddNumbersFault.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersResponse }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name = "addNumbersResponse")
+ public JAXBElement<AddNumbersResponse> createAddNumbersResponse(AddNumbersResponse value)
+ {
+ return new JAXBElement<AddNumbersResponse>(_AddNumbersResponse_QNAME, AddNumbersResponse.class, null, value);
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/ServerSOAPHandler.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/ServerSOAPHandler.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/ServerSOAPHandler.java 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,45 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws3031.service;
+
+import javax.xml.ws.handler.soap.SOAPMessageContext;
+
+import org.jboss.test.ws.jaxws.common.WsaBaseSOAPHandler;
+import org.jboss.test.ws.jaxws.jbws3031.common.TestConstants;
+
+public class ServerSOAPHandler extends WsaBaseSOAPHandler
+{
+ protected void checkInboundAction(final SOAPMessageContext context, final String currentOperation, final String currentAction)
+ {
+ this.assertAction(currentOperation, currentAction, "addNumbers", TestConstants.ADD_NUMBERS_IN_ACTION);
+ this.assertAction(currentOperation, currentAction, "addNumbers2", TestConstants.ADD_NUMBERS2_IN_ACTION);
+ this.assertAction(currentOperation, currentAction, "addNumbers3", TestConstants.ADD_NUMBERS3_IN_ACTION);
+ this.assertAction(currentOperation, currentAction, "addNumbers4", TestConstants.ADD_NUMBERS4_IN_ACTION);
+ this.assertAction(currentOperation, currentAction, "addNumbers5", TestConstants.ADD_NUMBERS5_IN_ACTION);
+ this.assertAction(currentOperation, currentAction, "addNumbers6", TestConstants.ADD_NUMBERS6_IN_ACTION);
+ }
+
+ protected String whichHandler()
+ {
+ return "ServerSOAPHandler";
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/TooBigNumbers2Fault.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/TooBigNumbers2Fault.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/TooBigNumbers2Fault.java 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,75 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws3031.service;
+
+import javax.xml.ws.WebFault;
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.2-12/14/2009 02:16 PM(ramkris)-
+ * Generated source version: 2.2
+ *
+ */
+@WebFault(name = "TooBigNumbers2Fault", targetNamespace = "http://example.com/")
+public class TooBigNumbers2Fault extends Exception
+{
+
+ /**
+ * Java type that goes as soapenv:Fault detail element.
+ *
+ */
+ private TooBigNumbersFault faultInfo;
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ */
+ public TooBigNumbers2Fault(String message, TooBigNumbersFault faultInfo)
+ {
+ super(message);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ * @param cause
+ */
+ public TooBigNumbers2Fault(String message, TooBigNumbersFault faultInfo, Throwable cause)
+ {
+ super(message, cause);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @return
+ * returns fault bean: org.jboss.test.ws.jaxws.jbws3031.service.TooBigNumbersFault
+ */
+ public TooBigNumbersFault getFaultInfo()
+ {
+ return faultInfo;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/TooBigNumbers3Fault.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/TooBigNumbers3Fault.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/TooBigNumbers3Fault.java 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,75 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws3031.service;
+
+import javax.xml.ws.WebFault;
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.2-12/14/2009 02:16 PM(ramkris)-
+ * Generated source version: 2.2
+ *
+ */
+@WebFault(name = "TooBigNumbers3Fault", targetNamespace = "http://example.com/")
+public class TooBigNumbers3Fault extends Exception
+{
+
+ /**
+ * Java type that goes as soapenv:Fault detail element.
+ *
+ */
+ private TooBigNumbersFault faultInfo;
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ */
+ public TooBigNumbers3Fault(String message, TooBigNumbersFault faultInfo)
+ {
+ super(message);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ * @param cause
+ */
+ public TooBigNumbers3Fault(String message, TooBigNumbersFault faultInfo, Throwable cause)
+ {
+ super(message, cause);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @return
+ * returns fault bean: org.jboss.test.ws.jaxws.jbws3031.service.TooBigNumbersFault
+ */
+ public TooBigNumbersFault getFaultInfo()
+ {
+ return faultInfo;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/TooBigNumbers4Fault.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/TooBigNumbers4Fault.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/TooBigNumbers4Fault.java 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,75 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws3031.service;
+
+import javax.xml.ws.WebFault;
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.2-12/14/2009 02:16 PM(ramkris)-
+ * Generated source version: 2.2
+ *
+ */
+@WebFault(name = "TooBigNumbers4Fault", targetNamespace = "http://example.com/")
+public class TooBigNumbers4Fault extends Exception
+{
+
+ /**
+ * Java type that goes as soapenv:Fault detail element.
+ *
+ */
+ private TooBigNumbersFault faultInfo;
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ */
+ public TooBigNumbers4Fault(String message, TooBigNumbersFault faultInfo)
+ {
+ super(message);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ * @param cause
+ */
+ public TooBigNumbers4Fault(String message, TooBigNumbersFault faultInfo, Throwable cause)
+ {
+ super(message, cause);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @return
+ * returns fault bean: org.jboss.test.ws.jaxws.jbws3031.service.TooBigNumbersFault
+ */
+ public TooBigNumbersFault getFaultInfo()
+ {
+ return faultInfo;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/TooBigNumbersFault.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/TooBigNumbersFault.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/TooBigNumbersFault.java 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,113 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws3031.service;
+
+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 TooBigNumbersFault complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="TooBigNumbersFault">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="detail" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element name="message" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "TooBigNumbersFault", propOrder =
+{"detail", "message"})
+public class TooBigNumbersFault
+{
+
+ @XmlElement(required = true)
+ protected String detail;
+
+ @XmlElement(required = true)
+ protected String message;
+
+ /**
+ * Gets the value of the detail property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDetail()
+ {
+ return detail;
+ }
+
+ /**
+ * Sets the value of the detail property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDetail(String value)
+ {
+ this.detail = value;
+ }
+
+ /**
+ * Gets the value of the message property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getMessage()
+ {
+ return message;
+ }
+
+ /**
+ * Sets the value of the message property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setMessage(String value)
+ {
+ this.message = value;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/TooBigNumbersFault_Exception.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/TooBigNumbersFault_Exception.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/TooBigNumbersFault_Exception.java 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,75 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws3031.service;
+
+import javax.xml.ws.WebFault;
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.2-12/14/2009 02:16 PM(ramkris)-
+ * Generated source version: 2.2
+ *
+ */
+@WebFault(name = "TooBigNumbersFault", targetNamespace = "http://example.com/")
+public class TooBigNumbersFault_Exception extends Exception
+{
+
+ /**
+ * Java type that goes as soapenv:Fault detail element.
+ *
+ */
+ private TooBigNumbersFault faultInfo;
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ */
+ public TooBigNumbersFault_Exception(String message, TooBigNumbersFault faultInfo)
+ {
+ super(message);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ * @param cause
+ */
+ public TooBigNumbersFault_Exception(String message, TooBigNumbersFault faultInfo, Throwable cause)
+ {
+ super(message, cause);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @return
+ * returns fault bean: org.jboss.test.ws.jaxws.jbws3031.service.TooBigNumbersFault
+ */
+ public TooBigNumbersFault getFaultInfo()
+ {
+ return faultInfo;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/package-info.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/package-info.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3031/service/package-info.java 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,24 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+(a)javax.xml.bind.annotation.XmlSchema(namespace = "http://example.com/", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
+package org.jboss.test.ws.jaxws.jbws3031.service;
+
Added: framework/trunk/testsuite/test/resources/jaxws/jbws3031/WEB-INF/jboss-web.xml
===================================================================
--- framework/trunk/testsuite/test/resources/jaxws/jbws3031/WEB-INF/jboss-web.xml (rev 0)
+++ framework/trunk/testsuite/test/resources/jaxws/jbws3031/WEB-INF/jboss-web.xml 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.4//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd">
+
+<jboss-web>
+ <context-root>/jaxws-jbws3031</context-root>
+</jboss-web>
\ No newline at end of file
Added: framework/trunk/testsuite/test/resources/jaxws/jbws3031/WEB-INF/web.xml
===================================================================
--- framework/trunk/testsuite/test/resources/jaxws/jbws3031/WEB-INF/web.xml (rev 0)
+++ framework/trunk/testsuite/test/resources/jaxws/jbws3031/WEB-INF/web.xml 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="2.4" 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">
+
+ <servlet>
+ <servlet-name>Endpoint</servlet-name>
+ <servlet-class>org.jboss.test.ws.jaxws.jbws3031.service.AddNumbersImpl</servlet-class>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>Endpoint</servlet-name>
+ <url-pattern>/*</url-pattern>
+ </servlet-mapping>
+
+</web-app>
\ No newline at end of file
Added: framework/trunk/testsuite/test/resources/jaxws/jbws3031/WEB-INF/wsdl/WSAW2JDLActionTest.wsdl
===================================================================
--- framework/trunk/testsuite/test/resources/jaxws/jbws3031/WEB-INF/wsdl/WSAW2JDLActionTest.wsdl (rev 0)
+++ framework/trunk/testsuite/test/resources/jaxws/jbws3031/WEB-INF/wsdl/WSAW2JDLActionTest.wsdl 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,261 @@
+<definitions name="AddNumbers" targetNamespace="http://example.com/" xmlns:tns="http://example.com/"
+ xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:wsp="http://www.w3.org/ns/ws-policy"
+ xmlns:wsa="http://www.w3.org/2005/08/addressing"
+ xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata">
+ <types>
+ <xsd:schema xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
+ targetNamespace="http://example.com/">
+
+ <complexType name="addNumbersResponse">
+ <sequence>
+ <element name="return" type="xsd:int"/>
+ </sequence>
+ </complexType>
+ <element name="addNumbersResponse" type="tns:addNumbersResponse"/>
+ <element name="addNumbersResponse2" type="tns:addNumbersResponse"/>
+ <element name="addNumbersResponse3" type="tns:addNumbersResponse"/>
+ <element name="addNumbersResponse4" type="tns:addNumbersResponse"/>
+ <element name="addNumbersResponse5" type="tns:addNumbersResponse"/>
+ <element name="addNumbersResponse6" type="tns:addNumbersResponse"/>
+
+ <complexType name="addNumbers">
+ <sequence>
+ <element name="number1" type="xsd:int"/>
+ <element name="number2" type="xsd:int"/>
+ </sequence>
+ </complexType>
+ <element name="addNumbers" type="tns:addNumbers"/>
+ <element name="addNumbers2" type="tns:addNumbers"/>
+ <element name="addNumbers3" type="tns:addNumbers"/>
+ <element name="addNumbers4" type="tns:addNumbers"/>
+ <element name="addNumbers5" type="tns:addNumbers"/>
+ <element name="addNumbers6" type="tns:addNumbers"/>
+
+ <complexType name="AddNumbersFault">
+ <sequence>
+ <element name="detail" type="xsd:string"/>
+ <element name="message" type="xsd:string"/>
+ </sequence>
+ </complexType>
+ <element name="AddNumbersFault" type="tns:AddNumbersFault"/>
+ <element name="AddNumbers2Fault" type="tns:AddNumbersFault"/>
+ <element name="AddNumbers3Fault" type="tns:AddNumbersFault"/>
+ <element name="AddNumbers4Fault" type="tns:AddNumbersFault"/>
+ <element name="AddNumbers5Fault" type="tns:AddNumbersFault"/>
+ <element name="AddNumbers6Fault" type="tns:AddNumbersFault"/>
+
+ <complexType name="TooBigNumbersFault">
+ <sequence>
+ <element name="detail" type="xsd:string"/>
+ <element name="message" type="xsd:string"/>
+ </sequence>
+ </complexType>
+ <element name="TooBigNumbersFault" type="tns:TooBigNumbersFault"/>
+ <element name="TooBigNumbers2Fault" type="tns:TooBigNumbersFault"/>
+ <element name="TooBigNumbers3Fault" type="tns:TooBigNumbersFault"/>
+ <element name="TooBigNumbers4Fault" type="tns:TooBigNumbersFault"/>
+ </xsd:schema>
+ </types>
+ <message name="addNumbers">
+ <part name="parameters" element="tns:addNumbers"/>
+ </message>
+ <message name="addNumbersResponse">
+ <part name="result" element="tns:addNumbersResponse"/>
+ </message>
+ <message name="addNumbers2">
+ <part name="parameters" element="tns:addNumbers2"/>
+ </message>
+ <message name="addNumbersResponse2">
+ <part name="result" element="tns:addNumbersResponse2"/>
+ </message>
+ <message name="addNumbers3">
+ <part name="parameters" element="tns:addNumbers3"/>
+ </message>
+ <message name="addNumbersResponse3">
+ <part name="result" element="tns:addNumbersResponse3"/>
+ </message>
+ <message name="addNumbers4">
+ <part name="parameters" element="tns:addNumbers4"/>
+ </message>
+ <message name="addNumbersResponse4">
+ <part name="result" element="tns:addNumbersResponse4"/>
+ </message>
+ <message name="addNumbers5">
+ <part name="parameters" element="tns:addNumbers5"/>
+ </message>
+ <message name="addNumbersResponse5">
+ <part name="result" element="tns:addNumbersResponse5"/>
+ </message>
+ <message name="addNumbers6">
+ <part name="parameters" element="tns:addNumbers6"/>
+ </message>
+ <message name="addNumbersResponse6">
+ <part name="result" element="tns:addNumbersResponse6"/>
+ </message>
+ <message name="addNumbersFault">
+ <part name="AddNumbersFault" element="tns:AddNumbersFault"/>
+ </message>
+ <message name="tooBigNumbersFault">
+ <part name="TooBigNumbersFault" element="tns:TooBigNumbersFault"/>
+ </message>
+ <message name="addNumbers2Fault">
+ <part name="AddNumbersFault" element="tns:AddNumbers2Fault"/>
+ </message>
+ <message name="tooBigNumbers2Fault">
+ <part name="TooBigNumbersFault" element="tns:TooBigNumbers2Fault"/>
+ </message>
+ <message name="addNumbers3Fault">
+ <part name="AddNumbersFault" element="tns:AddNumbers3Fault"/>
+ </message>
+ <message name="tooBigNumbers3Fault">
+ <part name="TooBigNumbersFault" element="tns:TooBigNumbers3Fault"/>
+ </message>
+ <message name="addNumbers4Fault">
+ <part name="AddNumbersFault" element="tns:AddNumbers4Fault"/>
+ </message>
+ <message name="tooBigNumbers4Fault">
+ <part name="TooBigNumbersFault" element="tns:TooBigNumbers4Fault"/>
+ </message>
+ <message name="addNumbers5Fault">
+ <part name="AddNumbersFault" element="tns:AddNumbers5Fault"/>
+ </message>
+ <message name="addNumbers6Fault">
+ <part name="AddNumbersFault" element="tns:AddNumbers6Fault"/>
+ </message>
+ <portType name="AddNumbersPortType">
+ <operation name="addNumbers">
+ <input message="tns:addNumbers" name="add"/>
+ <output message="tns:addNumbersResponse" name="addResponse"/>
+ <fault name="addFault" message="tns:addNumbersFault"/>
+ <fault name="tooBigFault" message="tns:tooBigNumbersFault"/>
+ </operation>
+ <operation name="addNumbers2">
+ <input message="tns:addNumbers2" name="add2"/>
+ <output message="tns:addNumbersResponse2" name="addResponse2"/>
+ <fault name="add2Fault" message="tns:addNumbers2Fault" wsam:Action="add2fault"/>
+ <fault name="tooBig2Fault" message="tns:tooBigNumbers2Fault" wsam:Action="toobig2fault"/>
+ </operation>
+ <operation name="addNumbers3">
+ <input message="tns:addNumbers3"/>
+ <output message="tns:addNumbersResponse3"/>
+ <fault name="add3Fault" message="tns:addNumbers3Fault" wsam:Action="add3fault"/>
+ <fault name="tooBig3Fault" message="tns:tooBigNumbers3Fault"/>
+ </operation>
+ <operation name="addNumbers4">
+ <input message="tns:addNumbers4" wsam:Action=""/>
+ <output message="tns:addNumbersResponse4" wsam:Action=""/>
+ <fault name="add4Fault" message="tns:addNumbers4Fault"/>
+ <fault name="tooBig4Fault" message="tns:tooBigNumbers4Fault" wsam:Action="toobig4fault"/>
+ </operation>
+ <operation name="addNumbers5">
+ <input message="tns:addNumbers5" wsam:Action="ExplicitInput5"/>
+ <output message="tns:addNumbersResponse5" wsam:Action="ExplicitOutput5"/>
+ <fault name="add5Fault" message="tns:addNumbers5Fault" wsam:Action="fault5"/>
+ </operation>
+ <operation name="addNumbers6">
+ <input message="tns:addNumbers6" wsam:Action="ExplicitInput6"/>
+ <output message="tns:addNumbersResponse6"/>
+ <fault name="add6Fault" message="tns:addNumbers6Fault" wsam:Action=""/>
+ </operation>
+ </portType>
+ <binding name="AddNumbersBinding" type="tns:AddNumbersPortType">
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
+ <wsp:Policy>
+ <wsam:Addressing wsp:Optional="true">
+ <wsp:Policy/>
+ </wsam:Addressing>
+ </wsp:Policy>
+ <operation name="addNumbers">
+ <soap:operation soapAction=""/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ <fault name="addFault">
+ <soap:fault name="addFault" use="literal"/>
+ </fault>
+ <fault name="tooBigFault">
+ <soap:fault name="tooBigFault" use="literal"/>
+ </fault>
+ </operation>
+ <operation name="addNumbers2">
+ <soap:operation soapAction=""/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ <fault name="add2Fault">
+ <soap:fault name="add2Fault" use="literal"/>
+ </fault>
+ <fault name="tooBig2Fault">
+ <soap:fault name="tooBig2Fault" use="literal"/>
+ </fault>
+ </operation>
+ <operation name="addNumbers3">
+ <soap:operation soapAction=""/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ <fault name="add3Fault">
+ <soap:fault name="add3Fault" use="literal"/>
+ </fault>
+ <fault name="tooBig3Fault">
+ <soap:fault name="tooBig3Fault" use="literal"/>
+ </fault>
+ </operation>
+ <operation name="addNumbers4">
+ <soap:operation soapAction=""/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ <fault name="add4Fault">
+ <soap:fault name="add4Fault" use="literal"/>
+ </fault>
+ <fault name="tooBig4Fault">
+ <soap:fault name="tooBig4Fault" use="literal"/>
+ </fault>
+ </operation>
+ <operation name="addNumbers5">
+ <soap:operation soapAction=""/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ <fault name="add5Fault">
+ <soap:fault name="add5Fault" use="literal"/>
+ </fault>
+ </operation>
+ <operation name="addNumbers6">
+ <soap:operation soapAction=""/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ <fault name="add6Fault">
+ <soap:fault name="add6Fault" use="literal"/>
+ </fault>
+ </operation>
+ </binding>
+ <service name="AddNumbersService">
+ <port name="AddNumbersPort" binding="tns:AddNumbersBinding">
+ <soap:address location="http://foo:9999/bar"/>
+ </port>
+ </service>
+</definitions>
Added: framework/trunk/testsuite/test/resources/jaxws/jbws3031/custom-client.xml
===================================================================
--- framework/trunk/testsuite/test/resources/jaxws/jbws3031/custom-client.xml (rev 0)
+++ framework/trunk/testsuite/test/resources/jaxws/jbws3031/custom-client.xml 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<bindings wsdlLocation="WSAW2JDLActionTest.wsdl" xmlns="http://java.sun.com/xml/ns/jaxws">
+
+ <bindings node="wsdl:definitions" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+ <package name="org.jboss.test.ws.jaxws.jbws3031"/>
+ </bindings>
+
+ <bindings node="wsdl:definitions/wsdl:types/xs:schema[@targetNamespace='http://example.com/']"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+ <jxb:schemaBindings xmlns:jxb="http://java.sun.com/xml/ns/jaxb">
+ <jxb:package name="org.jboss.test.ws.jaxws.jbws3031"/>
+ </jxb:schemaBindings>
+ </bindings>
+
+ <bindings>
+ <handler-chains xmlns="http://java.sun.com/xml/ns/javaee">
+ <handler-chain>
+ <port-name-pattern xmlns:ns2="http://example.com/">ns2:AddNumbersPort</port-name-pattern>
+ <handler>
+ <handler-name>ClientSOAPHandler</handler-name>
+ <handler-class>org.jboss.test.ws.jaxws.jbws3031.ClientSOAPHandler</handler-class>
+ </handler>
+ </handler-chain>
+ </handler-chains>
+ </bindings>
+
+</bindings>
Added: framework/trunk/testsuite/test/resources/jaxws/jbws3031/custom-server.xml
===================================================================
--- framework/trunk/testsuite/test/resources/jaxws/jbws3031/custom-server.xml (rev 0)
+++ framework/trunk/testsuite/test/resources/jaxws/jbws3031/custom-server.xml 2010-05-21 06:38:10 UTC (rev 12296)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<bindings wsdlLocation="WSAW2JDLActionTest.wsdl" xmlns="http://java.sun.com/xml/ns/jaxws">
+
+ <bindings node="wsdl:definitions" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+ <package name="org.jboss.test.ws.jaxws.jbws3031.service"/>
+ </bindings>
+
+ <bindings node="wsdl:definitions/wsdl:types/xs:schema[@targetNamespace='http://example.com/']"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+ <jxb:schemaBindings xmlns:jxb="http://java.sun.com/xml/ns/jaxb">
+ <jxb:package name="org.jboss.test.ws.jaxws.jbws3031.service"/>
+ </jxb:schemaBindings>
+ </bindings>
+
+ <bindings>
+ <handler-chains xmlns="http://java.sun.com/xml/ns/javaee">
+ <handler-chain>
+ <port-name-pattern xmlns:ns2="http://example.com/">ns2:AddNumbersPort</port-name-pattern>
+ <handler>
+ <handler-name>ServerSOAPHandler</handler-name>
+ <handler-class>org.jboss.test.ws.jaxws.jbws3031.service.ServerSOAPHandler</handler-class>
+ </handler>
+ </handler-chain>
+ </handler-chains>
+ </bindings>
+
+</bindings>
15 years, 11 months
JBossWS SVN: r12295 - in spi/tags/jbossws-spi-1.1.2.SP3: src/main/java/org/jboss/wsf/spi/management and 1 other directory.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2010-05-20 16:27:29 -0400 (Thu, 20 May 2010)
New Revision: 12295
Added:
spi/tags/jbossws-spi-1.1.2.SP3/src/main/java/org/jboss/wsf/spi/management/JMSEndpointResolver.java
Modified:
spi/tags/jbossws-spi-1.1.2.SP3/pom.xml
Log:
[JBPAPP-4359] Porting fix to tag, as it's the artifact is not in the repo yet
Modified: spi/tags/jbossws-spi-1.1.2.SP3/pom.xml
===================================================================
--- spi/tags/jbossws-spi-1.1.2.SP3/pom.xml 2010-05-20 20:25:53 UTC (rev 12294)
+++ spi/tags/jbossws-spi-1.1.2.SP3/pom.xml 2010-05-20 20:27:29 UTC (rev 12295)
@@ -29,6 +29,7 @@
<jboss.common.version>1.2.1.GA</jboss.common.version>
<jboss.microcontainer.version>1.0.2</jboss.microcontainer.version>
<jbossxb.version>1.0.0.SP1</jbossxb.version>
+ <jms.api.version>1.1</jms.api.version>
</properties>
<!-- Dependencies -->
@@ -54,6 +55,12 @@
<scope>provided</scope>
</dependency>
<dependency>
+ <groupId>javax.jms</groupId>
+ <artifactId>jms</artifactId>
+ <version>${jms.api.version}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
<groupId>javax.xml.ws</groupId>
<artifactId>jaxws-api</artifactId>
<version>2.1</version>
Copied: spi/tags/jbossws-spi-1.1.2.SP3/src/main/java/org/jboss/wsf/spi/management/JMSEndpointResolver.java (from rev 12293, spi/branches/jbossws-spi-1.1.2/src/main/java/org/jboss/wsf/spi/management/JMSEndpointResolver.java)
===================================================================
--- spi/tags/jbossws-spi-1.1.2.SP3/src/main/java/org/jboss/wsf/spi/management/JMSEndpointResolver.java (rev 0)
+++ spi/tags/jbossws-spi-1.1.2.SP3/src/main/java/org/jboss/wsf/spi/management/JMSEndpointResolver.java 2010-05-20 20:27:29 UTC (rev 12295)
@@ -0,0 +1,36 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.wsf.spi.management;
+
+import javax.jms.Destination;
+
+/**
+ * An endpoint resolver for JMS endpoints
+ *
+ * @author alessio.soldano(a)jboss.com
+ * @since 19-Mar-2010
+ *
+ */
+public interface JMSEndpointResolver extends EndpointResolver
+{
+ public void setDestination(Destination destination);
+}
15 years, 11 months