[JBoss JIRA] Created: (JBWS-3011) Make the default JAX-WS Client and Endpoint Configuration configurable
by David Boeren (JIRA)
Make the default JAX-WS Client and Endpoint Configuration configurable
----------------------------------------------------------------------
Key: JBWS-3011
URL: https://jira.jboss.org/jira/browse/JBWS-3011
Project: JBoss Web Services
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: jbossws-native
Affects Versions: jbossws-native-3.3.0.CR2
Reporter: David Boeren
Priority: Minor
I would like to have a possibility to configure the default JAX-WS Client and Endpoint Configuration. Currently the "Standard Client" (in file "standard-jaxws-client-config.xml") and "Standard Endpoint" (in file "standard-jaxws-endpoint-config.xml") are hardcoded in the interface org.jboss.ws.metadata.config.ConfigurationProvider as default configurations.
If a common enterprise specific configuration is in available then it would be nice to have the possibility to set it by default. Currently, every endpoint or client must define the annotation @EndpointConfig and @HandlerChain respectively.
A possibility would be to have two system properties to define the default configuration name for clients and endpoints for a JBoss server. I think from a JBoss/JBossWS perspective it makes sense to name them something like jbossws.jaxws.default.endpoint.config and jbossws.jaxws.default.client.config
By-the-way: It probably make also sense to make the default configuration filename configurable. The filename is more or less at the same place in the code. The solution could look similar as described for configuration name. However, configurable default filenames is not a requirement for me.
As a test, I have patched three classes in my JBoss in order to have a possibility to set the default configuration by system property.
For client configuration:
- org.jboss.ws.metadata.umdm.ClientEndpointMetaData
- org.jboss.ws.tools.metadata.ToolsEndpointMetaData
For endpoint configuration:
- org.jboss.ws.metadata.umdm.ServerEndpointMetaData
For example, I have only replaced the line
String configName = ConfigurationProvider.DEFAULT_ENDPOINT_CONFIG_NAME;
with the following
String configName = System.getProperty("jbossws.jaxws.default.endpoint.config", "AXA Standard Endpoint");
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 12 months
[JBoss JIRA] Created: (JBWS-3320) JBoss Native WS - problem with Abstract class as output Parameter in WebService
by prakash pethe (JIRA)
JBoss Native WS - problem with Abstract class as output Parameter in WebService
-------------------------------------------------------------------------------
Key: JBWS-3320
URL: https://issues.jboss.org/browse/JBWS-3320
Project: JBoss Web Services
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: jbossws-native
Environment: - jboss-5.1.0.GA
- eclipseHelios
-windowsXp- SP3
Reporter: prakash pethe
I've a problem to use abstract class in a Web Service like WebMethod output parameter.
I'm using JBOSS-5.1.0.GA and java runtime Version 6. It always return emtpry tag for abstract tag.
I have completed below step as well
When running under Java 6 you need to manually copy the following libraries from the JBOSS_HOME/client directory to the JBOSS_HOME/lib/endorsed directory, so that the JAX-WS 2.0 apis supported by JBossWS are used:
jbossws-native-saaj.jar
jbossws-native-jaxrpc.jar
jbossws-native-jaxws.jar
jbossws-native-jaxws-ext.jar
for below section of WSDL:
<xsd:complexType name="Personne" abstract="true" />
<xsd:complexType name="PersonnePhysique">
<xsd:complexContent>
<xsd:extension base="Personne">
Getting below error stack:
javax.xml.ws.WebServiceException: javax.xml.bind.UnmarshalException: Unable to create an instance of com.sfr.sigc.rechercherpersonneetroles.Personne
- with linked exception:
[java.lang.InstantiationException]
at org.jboss.ws.core.jaxws.JAXBDeserializer.handleUnmarshallException(JAXBDeserializer.java:110)
at org.jboss.ws.core.jaxws.JAXBDeserializer.deserialize(JAXBDeserializer.java:78)
at org.jboss.ws.core.binding.DeserializerSupport.deserialize(DeserializerSupport.java:58)
at org.jboss.ws.core.soap.XMLContent.unmarshallObjectContents(XMLContent.java:179)
at org.jboss.ws.core.soap.XMLContent.transitionTo(XMLContent.java:96)
at org.jboss.ws.core.soap.SOAPContentElement.transitionTo(SOAPContentElement.java:140)
at org.jboss.ws.core.soap.SOAPBodyElementDoc.transitionTo(SOAPBodyElementDoc.java:85)
at org.jboss.ws.core.soap.SOAPContentElement.getObjectValue(SOAPContentElement.java:172)
at org.jboss.ws.core.EndpointInvocation.transformPayloadValue(EndpointInvocation.java:261)
at org.jboss.ws.core.EndpointInvocation.getReturnValue(EndpointInvocation.java:195)
at org.jboss.ws.core.CommonClient.syncOutputParams(CommonClient.java:511)
at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:397)
at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:290)
at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:170)
at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150)
at $Proxy309.rechercherPersonneEtRoles(Unknown Source)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 12 months
[JBoss JIRA] Created: (JBWS-3165) Add support for jax-ws xml catalog to be spec-compliant
by Robert Dale (JIRA)
Add support for jax-ws xml catalog to be spec-compliant
-------------------------------------------------------
Key: JBWS-3165
URL: https://jira.jboss.org/browse/JBWS-3165
Project: JBoss Web Services
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Reporter: Robert Dale
<ropalka> rdale, OK, JAXWS 2.2 - section 4.4
<ropalka> ---
<ropalka> The catalog is assembled by taking into account all accessible resources whose name is META-INF/jax-
<ropalka> -ws-catalog.xml. Each resource MUST be a valid entity catalog according to the XML Catalogs 1.1
<ropalka> specification. When running on the Java SE platform, the current context class loader MUST be used to
<ropalka> retrieve all the resources with the specified name. Relative URIs inside a catalog file are relative to the
<ropalka> location of the catalog that contains them.
<ropalka> ---
<ropalka> rdale, AFAIK Native doesn't support it. It uses proprietary jbossws-entities.properties approach
<ropalka> rdale, CXF should support it.
<ropalka> rdale, Do U use JBossWS Native or JBossWS CXF?
<darran> ropalka, CXF does, we are using it in SOA-P 5.1
<ropalka> rdale, I confirm JBossWS Native doesn't support it (although this is required by JAX-WS spec). The reason is this is not tested in TCK6 (certification suites) and we didn't have feature request to implement it yet.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 12 months