[Design of JBoss Web Services] - metadata integration
by scott.stark@jboss.org
It looks like the only integration point for creation of a ObjectModelFactory based impl that hands off to a ServiceRefHandler impl from the ws spi. Can we get the ws spi to provide a jaxb annotated element ala this from the metadata project instead?
| package org.jboss.metadata.javaee.spec;
|
| import javax.xml.bind.annotation.XmlElement;
| import javax.xml.bind.annotation.XmlType;
| import javax.xml.namespace.QName;
|
| import org.jboss.metadata.javaee.support.ResourceInjectionMetaDataWithDescriptionGroup;
|
| /**
| * ServiceReferenceMetaData.
| *
| * @author <a href="adrian(a)jboss.com">Adrian Brock</a>
| * @version $Revision: 1.1 $
| */
| @XmlType(name="service-refType")
| public class ServiceReferenceMetaData extends ResourceInjectionMetaDataWithDescriptionGroup
| {
| /** The serialVersionUID */
| private static final long serialVersionUID = 5693673588576610322L;
|
| /** The service interface */
| private String serviceInterface;
|
| /** The service reference type */
| private String serviceRefType;
|
| /** The wsdl file */
| private String wsdlFile;
|
| /** The jaxrpc mapping file */
| private String jaxrpcMappingFile;
|
| /** The service qname */
| private QName serviceQname;
|
| /** The handlers */
| private ServiceReferenceHandlersMetaData handlers;
|
| /** The handler chains */
| private ServiceReferenceHandlerChainsMetaData handlerChains;
|
| /**
| * Create a new ServiceReferenceMetaData.
| */
| public ServiceReferenceMetaData()
| {
| // For serialization
| }
|
| /**
| * Get the serviceRefName.
| *
| * @return the serviceRefName.
| */
| public String getServiceRefName()
| {
| return getName();
| }
|
| /**
| * Set the serviceRefName.
| *
| * @param serviceRefName the serviceRefName.
| * @throws IllegalArgumentException for a null serviceRefName
| */
| public void setServiceRefName(String serviceRefName)
| {
| setName(serviceRefName);
| }
|
| /**
| * Get the jaxrpcMappingFile.
| *
| * @return the jaxrpcMappingFile.
| */
| public String getJaxrpcMappingFile()
| {
| return jaxrpcMappingFile;
| }
|
| /**
| * Set the jaxrpcMappingFile.
| *
| * @param jaxrpcMappingFile the jaxrpcMappingFile.
| * @throws IllegalArgumentException for a null jaxrpcMappingFile
| */
| public void setJaxrpcMappingFile(String jaxrpcMappingFile)
| {
| if (jaxrpcMappingFile == null)
| throw new IllegalArgumentException("Null jaxrpcMappingFile");
| this.jaxrpcMappingFile = jaxrpcMappingFile;
| }
|
| /**
| * Get the serviceInterface.
| *
| * @return the serviceInterface.
| */
| public String getServiceInterface()
| {
| return serviceInterface;
| }
|
| /**
| * Set the serviceInterface.
| *
| * @param serviceInterface the serviceInterface.
| * @throws IllegalArgumentException for a null serviceInterface
| */
| public void setServiceInterface(String serviceInterface)
| {
| if (serviceInterface == null)
| throw new IllegalArgumentException("Null serviceInterface");
| this.serviceInterface = serviceInterface;
| }
|
| /**
| * Get the serviceQname.
| *
| * @return the serviceQname.
| */
| public QName getServiceQname()
| {
| return serviceQname;
| }
|
| /**
| * Set the serviceQname.
| *
| * @param serviceQname the serviceQname.
| * @throws IllegalArgumentException for a null serviceQname
| */
| public void setServiceQname(QName serviceQname)
| {
| if (serviceQname == null)
| throw new IllegalArgumentException("Null serviceQname");
| this.serviceQname = serviceQname;
| }
|
| /**
| * Get the serviceRefType.
| *
| * @return the serviceRefType.
| */
| public String getServiceRefType()
| {
| return serviceRefType;
| }
|
| /**
| * Set the serviceRefType.
| *
| * @param serviceRefType the serviceRefType.
| * @throws IllegalArgumentException for a null serviceRefType
| */
| //@SchemaProperty(mandatory=false)
| @XmlElement(required=false)
| public void setServiceRefType(String serviceRefType)
| {
| if (serviceRefType == null)
| throw new IllegalArgumentException("Null serviceRefType");
| this.serviceRefType = serviceRefType;
| }
|
| /**
| * Get the wsdlFile.
| *
| * @return the wsdlFile.
| */
| public String getWsdlFile()
| {
| return wsdlFile;
| }
|
| /**
| * Set the wsdlFile.
| *
| * @param wsdlFile the wsdlFile.
| * @throws IllegalArgumentException for a null wsdlFile
| */
| public void setWsdlFile(String wsdlFile)
| {
| if (wsdlFile == null)
| throw new IllegalArgumentException("Null wsdlFile");
| this.wsdlFile = wsdlFile;
| }
|
| /**
| * Get the handlers.
| *
| * @return the handlers.
| */
| public ServiceReferenceHandlersMetaData getHandlers()
| {
| return handlers;
| }
|
| /**
| * Set the handlers.
| *
| * @param handlers the handlers.
| * @throws IllegalArgumentException for a null handlers
| */
| @XmlElement(name="handler")
| public void setHandlers(ServiceReferenceHandlersMetaData handlers)
| {
| if (handlers == null)
| throw new IllegalArgumentException("Null handlers");
| this.handlers = handlers;
| }
|
| /**
| * Get the handlerChains.
| *
| * @return the handlerChains.
| */
| public ServiceReferenceHandlerChainsMetaData getHandlerChains()
| {
| return handlerChains;
| }
|
| /**
| * Set the handlerChains.
| *
| * @param handlerChains the handlerChains.
| * @throws IllegalArgumentException for a null handlerChains
| */
| //@SchemaProperty(mandatory=false)
| @XmlElement(required=false)
| public void setHandlerChains(ServiceReferenceHandlerChainsMetaData handlerChains)
| {
| if (handlerChains == null)
| throw new IllegalArgumentException("Null handlerChains");
| this.handlerChains = handlerChains;
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091801#4091801
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091801
17 years, 3 months
missing header
by Thomas Diesler
Hi Richard,
all files that you commit must have a copyright header. You can get it
from any other file. Please setup your IDE, such that the header and SVN
$Id:$ is included automatically.
Test cases that we create for a specific jira issue have a descriptive
header like this:
/**
* [JBWS-1611] SOAPAction is not sent in dispath requests
*
* http://jira.jboss.org/jira/browse/JBWS-1611
*
* @author Thomas.Diesler(a)jboss.org
* @since 14-Jun-2007
*/
Tests that are not expected to pass should be disabled with a FIXME.
Hudson should not fail for tests that we expect to fail. This makes it
easy to detect regression.
I fixed a test compilation issue in
jaxws/jbws1795/generated/TravelAgentBeanService.java
Was this file generated with our tools? If so it is a bug that it
contained references to the jaxws-2.1 API. Please get in touch with
Heiko to discuss this possible tools issue.
cheers
-thomas
--
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thomas Diesler
Web Service Lead
JBoss, a division of Red Hat
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
17 years, 3 months
[Design of JBoss Web Services] - Re: Exception propagation for one way messaqges
by jason.greene@jboss.com
"adinn" wrote :
| CXF notifies the error by returning a 500 code error to the http client. This results in the JaxWS proxy throwing an exception
|
This isn't correct either. A one way message is not guaranteed to be processed when you submit it, so the response just indicates whether or not transmission, not the processing of the message is successful. So it would not be portable to return a 500 as a fault, nor would it be portable to interpret a 500 from a one way service as meaning anything more than a transmission problem.
Relevant sections:
"The HTTP response to a one-way operation indicates the success or failure of the transmission of the message."
"R2727 For one-way operations, a CONSUMER MUST NOT interpret a successful HTTP response status code (i.e., 2xx) to mean the message is valid or that the receiver would process it."
-Jason
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090660#4090660
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090660
17 years, 3 months
jboss50 excludes
by Heiko Braun
I see a bunch of jboss50 excludes that go back to really old issues.
What's the status of this? Shouldn't the JIRA's be re-opened for them?
org/jboss/test/ws/jaxrpc/jbws124/JBWS124TestCase.*
org/jboss/test/ws/jaxrpc/jbws128/JBWS128TestCase.*
org/jboss/test/ws/jaxrpc/jbws153/JBWS153TestCase.*
/Heiko
17 years, 3 months