[JBossWS] - Re: jbossws-2.0.1 released
by richard_opalka
Here are the files you are missing:
jboss-service-no-ejb3.xml
| <?xml version="1.0" encoding="UTF-8"?>
|
| <!-- $Id: jboss-service-no-ejb3.xml 4122 2007-08-02 20:46:09Z thomas.diesler(a)jboss.com $ -->
|
| <server>
|
| <!--
| Bind JAXRPC ServiceRefs
| -->
| <mbean name="jboss.ws:service=WebServiceClientDeployer" code="org.jboss.wsf.container.jboss40.WebServiceClientDeployer">
| <depends>jboss:service=Naming</depends>
| </mbean>
|
| <!--
| A deployer service for JSE endpoints.
| -->
| <mbean name="jboss.ws:service=DeployerInterceptorJSE" code="org.jboss.wsf.container.jboss40.DeployerInterceptorJSE">
| <depends-list optional-attribute-name="Interceptables">
| <depends-list-element>jboss.web:service=WebServer</depends-list-element>
| </depends-list>
| </mbean>
|
| <!--
| A deployer service for EJB2.1 endpoints.
| -->
| <mbean name="jboss.ws:service=DeployerInterceptorEJB21" code="org.jboss.wsf.container.jboss40.DeployerInterceptorEJB21">
| <depends-list optional-attribute-name="Interceptables">
| <depends-list-element>jboss.ejb:service=EJBDeployer</depends-list-element>
| </depends-list>
| </mbean>
|
| </server>
|
jboss-beans-no-ejb3.xml
| <deployment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:jboss:bean-deployer bean-deployer_1_0.xsd" xmlns="urn:jboss:bean-deployer">
|
| <!-- An abstraction of server configuration aspects. -->
| <bean name="WSServerConfig" class="org.jboss.wsf.stack.jbws.NativeServerConfig">
| <property name="mbeanServer"><inject bean="WSMBeanServerLocator" property="mbeanServer"/></property>
|
| <!--
| The WSDL, that is a required deployment artifact for an endpoint, has a <soap:address>
| element which points to the location of the endpoint. JBoss supports rewriting of that SOAP address.
|
| If the content of <soap:address> is a valid URL, JBossWS will not rewrite it unless 'modifySOAPAddress' is true.
| If the content of <soap:address> is not a valid URL, JBossWS will rewrite it using the attribute values given below.
|
| If 'webServiceHost' is not set, JBossWS uses requesters protocol host when rewriting the <soap:address>.
| -->
| <property name="webServiceHost">${jboss.bind.address}</property>
| <property name="modifySOAPAddress">true</property>
|
| <!--
| Set these properties to explicitly define the ports that will be used for rewriting the SOAP address.
| Otherwise the ports will be identified by querying the list of installed connectors.
| If multiple connectors are found the port of the first connector is used.
| <property name="webServiceSecurePort">8443</property>
| <property name="webServicePort">8080</property>
| -->
| </bean>
|
| <!-- The registry for web service endpoints -->
| <bean name="WSEndpointRegistry" class="org.jboss.wsf.framework.management.ManagedEndpointRegistry">
| <property name="mbeanServer"><inject bean="WSMBeanServerLocator" property="mbeanServer"/></property>
| </bean>
|
| <!-- A subscription manager for WS-Eventing -->
| <bean name="WSSubscriptionManager" class="org.jboss.ws.extensions.eventing.mgmt.SubscriptionManager">
| <property name="bindAddress">${jboss.bind.address}</property>
| </bean>
|
| <!--
| The stack specific deployment aspects
| -->
| <bean name="WSNativeContextPropertiesDeploymentAspect" class="org.jboss.wsf.framework.deployment.ContextPropertiesDeploymentAspect">
| <property name="provides">ContextProperties, StackDescriptor</property>
| <property name="contextProperties">
| <map keyClass="java.lang.String" valueClass="java.lang.String">
| <entry><key>org.jboss.ws.webapp.ServletClass</key><value>org.jboss.wsf.stack.jbws.EndpointServlet</value></entry>
| </map>
| </property>
| </bean>
|
| <bean name="WSNativeEagerInitializeDeploymentAspect" class="org.jboss.wsf.stack.jbws.EagerInitializeDeploymentAspect">
| <property name="requires">UnifiedMetaDataModel</property>
| <property name="provides">InitializedMetaDataModel</property>
| </bean>
|
| <bean name="WSNativeEndpointHandlerDeploymentAspect" class="org.jboss.wsf.framework.deployment.EndpointHandlerDeploymentAspect">
| <property name="requires">ContainerEndpointHandler, ContainerMetaData</property>
| <property name="provides">StackEndpointHandler</property>
| </bean>
|
| <bean name="WSNativeEventingDeploymentAspect" class="org.jboss.wsf.stack.jbws.EventingDeploymentAspect">
| <property name="requires">UnifiedMetaDataModel</property>
| </bean>
|
| <bean name="WSNativePublishContractDeploymentAspect" class="org.jboss.wsf.stack.jbws.PublishContractDeploymentAspect">
| <property name="requires">UnifiedMetaDataModel</property>
| <property name="provides">PublishedContract</property>
| </bean>
|
| <bean name="WSNativeServiceEndpointInvokerDeploymentAspect" class="org.jboss.wsf.stack.jbws.ServiceEndpointInvokerDeploymentAspect">
| <property name="requires">UnifiedMetaDataModel</property>
| </bean>
|
| <bean name="WSNativeUnifiedMetaDataDeploymentAspect" class="org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect">
| <property name="requires">RuntimeLoader, ContainerMetaData, URLPattern, VFSRoot</property>
| <property name="provides">UnifiedMetaDataModel</property>
| </bean>
|
| <!-- Deployment aspect installers -->
| <!-- Phase 1 -->
| <bean name="WSNativeDeploymentAspectInstallerPreJSE" class="org.jboss.wsf.framework.deployment.DeploymentAspectInstaller">
| <property name="manager"><inject bean="WSDeploymentAspectManagerPreJSE"/></property>
| <property name="sortAspectsOnCreate">true</property>
| <property name="aspects">
| <set class="java.util.HashSet" elementClass="org.jboss.wsf.spi.deployment.DeploymentAspect">
| <inject bean="WSNativeContextPropertiesDeploymentAspect"/>
| </set>
| </property>
| <depends>WSDeploymentAspectInstallerPreJSE</depends>
| </bean>
| <!-- Phase 2 -->
| <bean name="WSNativeDeploymentAspectInstallerPostJSE" class="org.jboss.wsf.framework.deployment.DeploymentAspectInstaller">
| <property name="manager"><inject bean="WSDeploymentAspectManagerPostJSE"/></property>
| <property name="sortAspectsOnCreate">true</property>
| <property name="aspects">
| <set class="java.util.HashSet" elementClass="org.jboss.wsf.spi.deployment.DeploymentAspect">
| <inject bean="WSNativeEndpointHandlerDeploymentAspect"/>
| <inject bean="WSNativeEventingDeploymentAspect"/>
| <inject bean="WSNativePublishContractDeploymentAspect"/>
| <inject bean="WSNativeServiceEndpointInvokerDeploymentAspect"/>
| <inject bean="WSNativeUnifiedMetaDataDeploymentAspect"/>
| <inject bean="WSNativeEagerInitializeDeploymentAspect"/>
| </set>
| </property>
| <depends>WSDeploymentAspectInstallerPostJSE</depends>
| </bean>
|
| <bean name="WSNativeDeploymentAspectInstallerEJB" class="org.jboss.wsf.framework.deployment.DeploymentAspectInstaller">
| <property name="manager"><inject bean="WSDeploymentAspectManagerEJB"/></property>
| <property name="sortAspectsOnCreate">true</property>
| <property name="aspects">
| <set class="java.util.HashSet" elementClass="org.jboss.wsf.spi.deployment.DeploymentAspect">
| <inject bean="WSNativeContextPropertiesDeploymentAspect"/>
| <inject bean="WSNativeEagerInitializeDeploymentAspect"/>
| <inject bean="WSNativeEndpointHandlerDeploymentAspect"/>
| <inject bean="WSNativeEventingDeploymentAspect"/>
| <inject bean="WSNativePublishContractDeploymentAspect"/>
| <inject bean="WSNativeServiceEndpointInvokerDeploymentAspect"/>
| <inject bean="WSNativeUnifiedMetaDataDeploymentAspect"/>
| </set>
| </property>
| <depends>WSDeploymentAspectInstallerEJB</depends>
| </bean>
|
| <bean name="WSNativeDeploymentAspectInstallerEndpointAPI" class="org.jboss.wsf.framework.deployment.DeploymentAspectInstaller">
| <property name="manager"><inject bean="WSDeploymentAspectManagerEndpointAPI"/></property>
| <property name="sortAspectsOnCreate">true</property>
| <property name="aspects">
| <set class="java.util.HashSet" elementClass="org.jboss.wsf.spi.deployment.DeploymentAspect">
| <inject bean="WSNativeContextPropertiesDeploymentAspect"/>
| <inject bean="WSNativeEagerInitializeDeploymentAspect"/>
| <inject bean="WSNativeEndpointHandlerDeploymentAspect"/>
| <inject bean="WSNativeEventingDeploymentAspect"/>
| <inject bean="WSNativePublishContractDeploymentAspect"/>
| <inject bean="WSNativeServiceEndpointInvokerDeploymentAspect"/>
| <inject bean="WSNativeUnifiedMetaDataDeploymentAspect"/>
| </set>
| </property>
| <depends>WSDeploymentAspectInstallerEndpointAPI</depends>
| </bean>
|
| <!-- Locate the single instance of the kernel -->
| <bean name="WSKernelLocator" class="org.jboss.wsf.spi.util.KernelLocator">
| <property name="kernel"><inject bean="jboss.kernel:service=Kernel"/></property>
| </bean>
|
| <!-- Locate the single instance of the MBeanServer -->
| <bean name="WSMBeanServerLocator" class="org.jboss.wsf.framework.management.MBeanServerLocator"/>
|
| <!-- The HTTPServer used by the JAXWS Endpoint API -->
| <bean name="WSHTTPServer" class="org.jboss.wsf.container.jboss40.DeploymentAspectHttpServer"/>
|
| <!--
| *********************************************************************************************************************
| Web Service deployment
|
| There are three deployer interceptors registered with the JBoss Deployers.
|
| 1) DeployerInterceptorJSE
| 2) DeployerInterceptorEJB21
|
| Each interceptor has a number of DeployerHooks registerd with it
|
| Conceptually, each of these hooks implements the following pattern:
|
| DployerHook.deploy(unit)
| if(isWebServiceDeployment)
| Deployment dep = createDeployment(unit)
| DeploymentAspectManager.deploy(dep)
|
| DeployerHook.undeploy(unit)
| Deployment dep = getDeployment(unit)
| DeploymentAspectManager.undeploy(dep)
|
| Each deployer hook has a web service DeployerManager injected into it.
| A web service DeployerManager maintains a list of Deployers, each of which
| handles a single aspect of web service deployment.
|
| Finally, each Endpoint is registered with the EndpointRegistry.
|
| *********************************************************************************************************************
| -->
|
| <!--
| Register DeployerHooks with JBoss deployers
| -->
| <!-- Phase 1-->
| <bean name="WSDeployerHook_JAXRPC_PRE_JSE" class="org.jboss.wsf.container.jboss40.JAXRPCDeployerHookPreJSE">
| <property name="deploymentManagerName">WSDeploymentAspectManagerPreJSE</property>
| <property name="phaseOneInterceptors">
| <list class="java.util.LinkedList" elementClass="javax.management.ObjectName">
| <value>jboss.ws:service=DeployerInterceptorJSE</value>
| </list>
| </property>
| </bean>
| <!-- Phase 2 -->
| <bean name="WSDeployerHook_JAXRPC_POST_JSE" class="org.jboss.wsf.container.jboss40.JAXRPCDeployerHookPostJSE">
| <property name="deploymentManagerName">WSDeploymentAspectManagerPostJSE</property>
| <property name="phaseTwoInterceptors">
| <list class="java.util.LinkedList" elementClass="javax.management.ObjectName">
| <value>jboss.ws:service=DeployerInterceptorJSE</value>
| </list>
| </property>
| </bean>
|
| <bean name="WSDeployerHook_JAXRPC_EJB21" class="org.jboss.wsf.container.jboss40.JAXRPCDeployerHookEJB21">
| <property name="deploymentManagerName">WSDeploymentAspectManagerEJB</property>
| <property name="phaseTwoInterceptors">
| <list class="java.util.LinkedList" elementClass="javax.management.ObjectName">
| <value>jboss.ws:service=DeployerInterceptorEJB21</value>
| </list>
| </property>
| </bean>
|
| <bean name="WSDeployerHook_JAXWS_PRE_JSE" class="org.jboss.wsf.container.jboss40.JAXWSDeployerHookPreJSE">
| <property name="deploymentManagerName">WSDeploymentAspectManagerPreJSE</property>
| <property name="phaseOneInterceptors">
| <list class="java.util.LinkedList" elementClass="javax.management.ObjectName">
| <value>jboss.ws:service=DeployerInterceptorJSE</value>
| </list>
| </property>
| </bean>
| <!-- Phase 2 -->
| <bean name="WSDeployerHook_JAXWS_JSE2" class="org.jboss.wsf.container.jboss40.JAXWSDeployerHookPostJSE">
| <property name="deploymentManagerName">WSDeploymentAspectManagerPostJSE</property>
| <property name="phaseTwoInterceptors">
| <list class="java.util.LinkedList" elementClass="javax.management.ObjectName">
| <value>jboss.ws:service=DeployerInterceptorJSE</value>
| </list>
| </property>
| </bean>
|
| <!--
| Each DeploymentAspectManger maintains a list of DeploymentAspects
| -->
| <bean name="WSDeploymentAspectManagerPreJSE" class="org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl">
| <property name="name">WSDeploymentAspectManagerPreJSE</property>
| </bean>
| <bean name="WSDeploymentAspectManagerPostJSE" class="org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl">
| <property name="parent"><inject bean="WSDeploymentAspectManagerPreJSE"/></property>
| <property name="name">WSDeploymentAspectManagerPostJSE</property>
| </bean>
| <bean name="WSDeploymentAspectManagerEJB" class="org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl">
| <property name="name">WSDeploymentAspectManagerEJB</property>
| </bean>
| <bean name="WSDeploymentAspectManagerEndpointAPI" class="org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl">
| <property name="name">WSDeploymentAspectManagerEndpointAPI</property>
| </bean>
|
| <!--
| The container deployment aspects
| -->
| <bean name="WSContainerMetaDataDeploymentAspect" class="org.jboss.wsf.container.jboss40.ContainerMetaDataDeploymentAspect">
| <property name="provides">ContainerMetaData, VFSRoot</property>
| <property name="metaDataAdapter"><inject bean="WSContainerMetaDataAdapter"/></property>
| </bean>
|
| <bean name="WSContextRootDeploymentAspect" class="org.jboss.wsf.framework.deployment.BackwardCompatibleContextRootDeploymentAspect">
| <property name="requires">ContainerMetaData</property>
| <property name="provides">ContextRoot</property>
| </bean>
|
| <bean name="WSEndpointAddressDeploymentAspect" class="org.jboss.wsf.framework.deployment.EndpointAddressDeploymentAspect">
| <property name="requires">URLPattern</property>
| <property name="provides">EndpointAddress</property>
| </bean>
|
| <bean name="WSEndpointAPIDeploymentAspect" class="org.jboss.wsf.framework.deployment.EndpointAPIDeploymentAspect">
| <property name="provides">ContainerMetaData, RuntimeLoader, URLPattern, VFSRoot</property>
| </bean>
|
| <bean name="WSEndpointHandlerDeploymentAspect" class="org.jboss.wsf.framework.deployment.EndpointHandlerDeploymentAspect">
| <property name="requires">ContainerMetaData</property>
| <property name="provides">ContainerEndpointHandler</property>
| </bean>
|
| <bean name="WSEndpointLifecycleDeploymentAspect" class="org.jboss.wsf.framework.deployment.EndpointLifecycleDeploymentAspect">
| <property name="requires">LAST_DEPLOYMENT_ASPECT</property>
| </bean>
|
| <bean name="WSEndpointMetricsDeploymentAspect" class="org.jboss.wsf.framework.deployment.EndpointMetricsDeploymentAspect">
| <property name="provides">EndpointMetrics</property>
| </bean>
|
| <bean name="WSEndpointNameDeploymentAspect" class="org.jboss.wsf.framework.deployment.EndpointNameDeploymentAspect">
| <property name="requires">URLPattern</property>
| <property name="provides">EndpointName</property>
| </bean>
|
| <bean name="WSEndpointRegistryDeploymentAspect" class="org.jboss.wsf.framework.deployment.EndpointRegistryDeploymentAspect">
| <property name="requires">EndpointName</property>
| <property name="provides">RegisteredEndpoint</property>
| </bean>
|
| <bean name="WSModifyWebMetaDataDeploymentAspect" class="org.jboss.wsf.container.jboss40.ModifyWebMetaDataDeploymentAspect">
| <property name="requires">ContextProperties, ContainerMetaData</property>
| <property name="webXMLRewriter"><inject bean="WSWebXMLRewriter"/></property>
| </bean>
|
| <bean name="WSRuntimeLoaderDeploymentAspect" class="org.jboss.wsf.container.jboss40.RuntimeLoaderDeploymentAspect">
| <property name="requires">ContainerMetaData</property>
| <property name="provides">RuntimeLoader</property>
| </bean>
|
| <bean name="WSURLPatternDeploymentAspect" class="org.jboss.wsf.framework.deployment.BackwardCompatibleURLPatternDeploymentAspect">
| <property name="requires">ContextRoot, ContainerMetaData</property>
| <property name="provides">URLPattern</property>
| </bean>
|
| <bean name="WSWebAppDeploymentAspect" class="org.jboss.wsf.container.jboss40.WebAppDeploymentAspect">
| <property name="requires">WebMetaData, ContextProperties</property>
| <property name="webXMLRewriter"><inject bean="WSWebXMLRewriter"/></property>
| </bean>
|
| <bean name="WSWebAppGeneratorDeploymentAspect" class="org.jboss.wsf.framework.deployment.WebAppGeneratorDeploymentAspect">
| <property name="requires">URLPattern</property>
| <property name="provides">WebMetaData</property>
| <property name="securityHandlerEJB21"><inject bean="WSSecurityHandlerEJB21"/></property>
| </bean>
|
| <!-- Deployment aspect helper beans -->
| <bean name="WSApplicationMetaDataAdapterEJB21" class="org.jboss.wsf.container.jboss40.EJBArchiveMetaDataAdapterEJB21"/>
| <bean name="WSContainerMetaDataAdapter" class="org.jboss.wsf.container.jboss40.ContainerMetaDataAdapter">
| <property name="applicationMetaDataAdapterEJB21"><inject bean="WSApplicationMetaDataAdapterEJB21"/></property>
| <property name="webMetaDataAdapter"><inject bean="WSWebMetaDataAdapter"/></property>
| </bean>
| <bean name="WSSecurityHandlerEJB21" class="org.jboss.wsf.container.jboss40.SecurityHandlerEJB21"/>
| <bean name="WSServiceRefMetaDataAdapter" class="org.jboss.wsf.container.jboss40.ServiceRefMetaDataAdapter"/>
| <bean name="WSWebAppDesciptorModifier" class="org.jboss.wsf.container.jboss40.DefaultWebAppDesciptorModifierImpl"/>
| <bean name="WSWebMetaDataAdapter" class="org.jboss.wsf.container.jboss40.JSEArchiveMetaDataAdapter"/>
| <bean name="WSWebXMLRewriter" class="org.jboss.wsf.container.jboss40.WebXMLRewriterImpl">
| <property name="desciptorModifier"><inject bean="WSWebAppDesciptorModifier"/></property>
| </bean>
|
| <!-- Deployment aspect installers -->
|
| <!-- Phase 1 -->
| <bean name="WSDeploymentAspectInstallerPreJSE" class="org.jboss.wsf.framework.deployment.DeploymentAspectInstaller">
| <property name="manager"><inject bean="WSDeploymentAspectManagerPreJSE"/></property>
| <property name="sortAspectsOnCreate">false</property>
| <property name="aspects">
| <set class="java.util.HashSet" elementClass="org.jboss.wsf.spi.deployment.DeploymentAspect">
| <inject bean="WSContainerMetaDataDeploymentAspect"/>
| <inject bean="WSContextRootDeploymentAspect"/>
| <inject bean="WSEndpointAddressDeploymentAspect"/>
| <inject bean="WSEndpointHandlerDeploymentAspect"/>
| <inject bean="WSEndpointMetricsDeploymentAspect"/>
| <inject bean="WSEndpointNameDeploymentAspect"/>
| <inject bean="WSEndpointRegistryDeploymentAspect"/>
| <inject bean="WSModifyWebMetaDataDeploymentAspect"/>
| <inject bean="WSURLPatternDeploymentAspect"/>
| </set>
| </property>
| </bean>
|
| <!-- Phase 2 -->
| <bean name="WSDeploymentAspectInstallerPostJSE" class="org.jboss.wsf.framework.deployment.DeploymentAspectInstaller">
| <property name="manager"><inject bean="WSDeploymentAspectManagerPostJSE"/></property>
| <property name="sortAspectsOnCreate">false</property>
| <property name="aspects">
| <set class="java.util.HashSet" elementClass="org.jboss.wsf.spi.deployment.DeploymentAspect">
| <inject bean="WSEndpointLifecycleDeploymentAspect"/>
| <inject bean="WSRuntimeLoaderDeploymentAspect"/>
| </set>
| </property>
| <depends>WSDeploymentAspectInstallerPreJSE</depends>
| </bean>
|
| <bean name="WSDeploymentAspectInstallerEJB" class="org.jboss.wsf.framework.deployment.DeploymentAspectInstaller">
| <property name="manager"><inject bean="WSDeploymentAspectManagerEJB"/></property>
| <property name="sortAspectsOnCreate">false</property>
| <property name="aspects">
| <set class="java.util.HashSet" elementClass="org.jboss.wsf.spi.deployment.DeploymentAspect">
| <inject bean="WSContainerMetaDataDeploymentAspect"/>
| <inject bean="WSContextRootDeploymentAspect"/>
| <inject bean="WSEndpointAddressDeploymentAspect"/>
| <inject bean="WSEndpointHandlerDeploymentAspect"/>
| <inject bean="WSEndpointLifecycleDeploymentAspect"/>
| <inject bean="WSEndpointMetricsDeploymentAspect"/>
| <inject bean="WSEndpointNameDeploymentAspect"/>
| <inject bean="WSEndpointRegistryDeploymentAspect"/>
| <inject bean="WSRuntimeLoaderDeploymentAspect"/>
| <inject bean="WSURLPatternDeploymentAspect"/>
| <inject bean="WSWebAppDeploymentAspect"/>
| <inject bean="WSWebAppGeneratorDeploymentAspect"/>
| </set>
| </property>
| </bean>
|
| <bean name="WSDeploymentAspectInstallerEndpointAPI" class="org.jboss.wsf.framework.deployment.DeploymentAspectInstaller">
| <property name="manager"><inject bean="WSDeploymentAspectManagerEndpointAPI"/></property>
| <property name="sortAspectsOnCreate">false</property>
| <property name="aspects">
| <set class="java.util.HashSet" elementClass="org.jboss.wsf.spi.deployment.DeploymentAspect">
| <inject bean="WSEndpointAPIDeploymentAspect"/>
| <inject bean="WSEndpointAddressDeploymentAspect"/>
| <inject bean="WSEndpointHandlerDeploymentAspect"/>
| <inject bean="WSEndpointLifecycleDeploymentAspect"/>
| <inject bean="WSEndpointMetricsDeploymentAspect"/>
| <inject bean="WSEndpointNameDeploymentAspect"/>
| <inject bean="WSEndpointRegistryDeploymentAspect"/>
| <inject bean="WSWebAppDeploymentAspect"/>
| <inject bean="WSWebAppGeneratorDeploymentAspect"/>
| </set>
| </property>
| </bean>
|
| </deployment>
|
|
Richard
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093290#4093290
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093290
17 years
[JBossWS] - SoapFault on returning the web service response
by ggary
I have created a simple JAX-WS web service to process spam complaints
Here is the Java code of it:
@WebService(targetNamespace="http://service.responsys.com/rsystools/ws/SpamComplaintWS/1.0")
| public class SpamComplaintWS
| {
| @WebMethod(operationName="processSpamComplaints")
| @WebResult(name="SpamResult")
| @ResponseWrapper(className="com.rsys.rsystools.ws.SpamResult")
| public SpamResult processSpamComplaints(
| @WebParam(name = "email") String email,
| @WebParam(name = "fromAddress") String fromAddress,
| @WebParam(name = "mailDate") String mailDate,
| @WebParam(name = "complaintDate") String complaintDate,
| @WebParam(name = "mailbox") String mailbox,
| @WebParam(name = "complainer") String complainer,
| @WebParam(name = "xRext") String xRext,
| @WebParam(name = "accountName") String accountName)
| {
| responsys.prodtools.SpammerTables st = new responsys.prodtools.SpammerTables();
| String[] res = st.processSpamRecord(email, fromAddress, mailDate, complaintDate, mailbox, complainer, xRext, accountName);
| return (new SpamResult(res[0],res[1],res[2],res[3],res[4],res[5],res[6],res[7],res[8],res[9],res[10],res[11],res[12],res[13]));
| }
| }
|
It compiles and deploys successfully, however, generated wsdl is not what I expected to see:
- <definitions name="SpamComplaintWSService" targetNamespace="http://service.responsys.com/rsystools/ws/SpamComplaintWS/1.0" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://service.responsys.com/rsystools/ws/SpamComplaintWS/1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
| - <types>
| - <xs:schema targetNamespace="http://service.responsys.com/rsystools/ws/SpamComplaintWS/1.0" version="1.0" xmlns:tns="http://service.responsys.com/rsystools/ws/SpamComplaintWS/1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
| <xs:element name="processSpamComplaints" type="tns:processSpamComplaints" />
| <xs:element name="processSpamComplaintsResponse" type="tns:processSpamComplaintsResponse" />
| - <xs:complexType name="processSpamComplaints">
| - <xs:sequence>
| <xs:element minOccurs="0" name="email" type="xs:string" />
| <xs:element minOccurs="0" name="fromAddress" type="xs:string" />
| <xs:element minOccurs="0" name="mailDate" type="xs:string" />
| <xs:element minOccurs="0" name="complaintDate" type="xs:string" />
| <xs:element minOccurs="0" name="mailbox" type="xs:string" />
| <xs:element minOccurs="0" name="complainer" type="xs:string" />
| <xs:element minOccurs="0" name="xRext" type="xs:string" />
| <xs:element minOccurs="0" name="accountName" type="xs:string" />
| </xs:sequence>
| </xs:complexType>
| - <xs:complexType name="processSpamComplaintsResponse">
| - <xs:sequence>
| <xs:element minOccurs="0" name="SpamResult" type="tns:processSpamComplaintsResponse" />
| </xs:sequence>
| </xs:complexType>
| </xs:schema>
| </types>
| - <message name="SpamComplaintWS_processSpamComplaints">
| <part element="tns:processSpamComplaints" name="processSpamComplaints" />
| </message>
| - <message name="SpamComplaintWS_processSpamComplaintsResponse">
| <part element="tns:processSpamComplaintsResponse" name="processSpamComplaintsResponse" />
| </message>
| - <portType name="SpamComplaintWS">
| - <operation name="processSpamComplaints" parameterOrder="processSpamComplaints">
| <input message="tns:SpamComplaintWS_processSpamComplaints" />
| <output message="tns:SpamComplaintWS_processSpamComplaintsResponse" />
| </operation>
| </portType>
| - <binding name="SpamComplaintWSBinding" type="tns:SpamComplaintWS">
| <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
| - <operation name="processSpamComplaints">
| <soap:operation soapAction="" />
| - <input>
| <soap:body use="literal" />
| </input>
| - <output>
| <soap:body use="literal" />
| </output>
| </operation>
| </binding>
| - <service name="SpamComplaintWSService">
| - <port binding="tns:SpamComplaintWSBinding" name="SpamComplaintWSPort">
| <soap:address location="http://127.0.0.1:80/RsysTools/ws/SpamComplaintWS" />
| </port>
| </service>
| </definitions>
|
(It is copied from the browser, so, don't mind dashes).
As you can see, I explicitly stated the name and class for my return value but wsdl ignores that part. I mean @WebResult and @ResponceWrapper annotations.
I can call the web service in it successfully performs its job (I know it by the results of the database transaction) by I still getting an exception on result return:
javax.xml.ws.soap.SOAPFaultException: java.lang.reflect.UndeclaredThrowableException
| at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:171)
| at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:94)
| at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:240)
| at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:210)
| at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:103)
| at $Proxy29.processSpamComplaints(Unknown Source)
| at com.rsys.rsystools.client.SpamComplainClient.doComplain(SpamComplainClient.java:409)
|
Can someone tells me what is wrong with my code and how to make it work.
I am doing it on JBoss 4.2.1 with the JBossWS 2.0.1GA
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093226#4093226
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093226
17 years