[
https://issues.jboss.org/browse/JBWS-3628?page=com.atlassian.jira.plugin....
]
Alessio Soldano commented on JBWS-3628:
---------------------------------------
I agree on the complexity of plugging into CXF processing of wsdl. That's why I
suggested considering feeding CXF with an already modified wsdl document. Post-processing
the wsdl after org.jboss.wsf.stack.cxf.deployment.EndpointImpl call to
super.doPublish(addr) is not going to work, as CXF would run using the wsdl with
references to the properties (not expanded).
Perhaps we can pre-process the wsdl (as an XML doc, not as a javax.wsdl.Definition) to
expand the properties, write it somewhere, set it into the EndpointImpl (see e.g.
NonSpringBusHolder#configure(...) method) and let CXF rely on it. I'm saying
"perhaps", as I fear there might be some places where CXF is looking for
@WebService annotations and directly getting the wsdlLocation, but we should verify and
perhaps that's not correct when the EndpointImpl wsdlLocation is set).
Add property expansion capability to .wsdl files
------------------------------------------------
Key: JBWS-3628
URL:
https://issues.jboss.org/browse/JBWS-3628
Project: JBoss Web Services
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: jbossws-cxf
Reporter: david.boeren
Assignee: R Searls
Priority: Minor
Fix For: jbossws-cxf-5.0
The customer is doing JMS-based webservices using the following declarations in their
wsdl file (referred to using the wsdllocation annotation):
<soapjms:jndiConnectionFactoryName>myqueue</soapjms:jndiConnectionFactoryName>
<soapjms:jndiInitialContextFactory>com.vendor.InitialContextFactory</soapjms:jndiInitialContextFactory>
<soapjms:jndiURL>$MY_URL</soapjms:jndiURL>
The $MY_URL is the url of the messaging server. Since property replacement does not work
for wsdl files they need to manually modify this before deploying and package separate
versions of their app for each environment. If property expansion worked in the .wsdl
this would no longer be necessary.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)