Bug 780994 (SOA-3471)

Summary: Please make WISE client properties available for variable substitutions
Product: [JBoss] JBoss Enterprise SOA Platform 5 Reporter: Rick Wagner <rwagner>
Component: 3rd PartyAssignee: Nobody <nobody>
Status: VERIFIED --- QA Contact: Gui Jospin <gjospin>
Severity: high Docs Contact:
Priority: high    
Version: 5.1.0 GACC: jpechane, ldimaggi, tcunning
Target Milestone: ER1   
Target Release: 5.3.0 GA   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/SOA-3471
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
There was some inconsistency when using the WISE SOAPClient. The client used a properties file to specify configuration values in the same way as a working directory. Because of this, properties could not be substituted like in other XML configuration files. The user can now provide values in the file which will substitute the properties correctly.
Story Points: ---
Clone Of: Environment:
All current SOA-P
Last Closed: Type: Feature Request
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
customer_fix.zip none

Description Rick Wagner 2011-10-10 13:40:20 UTC
Help Desk Ticket Reference: https://c.na7.visual.force.com/apex/Case_View?id=500A0000008SDZa&sfdc.override=1
project_key: SOA

The Wise SOAPClient currently uses a properties file to specify configuration values like a working directory.  These are not subject to property substitution like everything we have in our XML configuration files.  Please move the properties into XML configuration (perhaps in the Action configuration in jboss-esb.xml) so our customers will have a consistent substitution mechanism.

Comment 1 Rick Wagner 2011-10-10 14:12:27 UTC
Attached is a customer-provided fix, well documented and easy to read.  Please consider this as we build an implementation.

Comment 2 Rick Wagner 2011-10-10 14:12:27 UTC
Attachment: Added: customer_fix.zip


Comment 3 JBoss JIRA Server 2012-03-27 04:47:04 UTC
Tom Cunningham <tcunning> updated the status of jira JBESB-3765 to Resolved

Comment 4 JBoss JIRA Server 2012-03-27 04:47:04 UTC
Tom Cunningham <tcunning> made a comment on jira JBESB-3765

Incorporate fix.     Read in a wise-config property from the configTree that contains wise-property elements.    Subsitute based on values provided.

Comment 5 JBoss JIRA Server 2012-03-27 04:47:13 UTC
Tom Cunningham <tcunning> updated the status of jira JBESB-3765 to Closed

Comment 6 Suz 2012-06-13 01:39:38 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
There was some inconsistency when using the WISE SOAPClient. The client used a properties file to specify configuration values in the same way as a working directory. Because of this, properties could not be substituted like in other XML configuration files. The user can now provide values in the file which will substitute the properties correctly.

Comment 7 Jiri Pechanec 2012-06-18 14:19:28 UTC
JBossESB schema does not support wise-config and wise-property elements

Comment 8 Jiri Pechanec 2012-06-18 14:30:55 UTC
Disregard - misconfiguration

Comment 9 Jiri Pechanec 2012-06-20 06:33:53 UTC
The configuration is not implemented properly.

This snippet

<property name="wise-config">
<wise-property name="wise.tmpDir" value="/home/jpechane/workspace/soa/tests/quickstarts/webservice_consumer_wise_inline_properties/build/tmp"/>
<wise-property name="wise.forceImportObject" value="true"/>
<wise-property name="wise.keepGeneratedSources" value="true"/>
<wise-property name="wise.wsImporter.verbose" value="true"/>
</property>

is translated into
Breakpoint hit: "thread=pool-34-thread-1", org.jboss.soa.esb.actions.soap.wise.SOAPClient.<init>(), line=198 bci=51

pool-34-thread-1[1] print config
config = "<action EndPointName="HelloWorldPort" SOAPAction="sayHello" action="soapui-client-action" class="org.jboss.soa.esb.samples.quickstart.webservice_consumer_wise_inline_properties.SOAPClientAction" get-payload-location="helloworld-request-parameters" serviceName="HelloWorldWS" set-payload-location="helloworld-response" wsdl="http://127.0.0.1:8080/Quickstart_webservice_consumer_wise_inline_properties/HelloWorldWS?wsdl">
<wise-property name="wise.tmpDir" value="/home/jpechane/workspace/soa/tests/quickstarts/webservice_consumer_wise_inline_properties/build/tmp"/>
<wise-property name="wise.forceImportObject" value="true"/>
<wise-property name="wise.keepGeneratedSources" value="true"/>
<wise-property name="wise.wsImporter.verbose" value="true"/>
</action>"

It means that the line ConfigTree[] wiseConfig = config.getChildren("wise-config"); will alway receive no element

Comment 10 Filip Elias 2012-07-12 08:14:44 UTC
Verified in SOA-P 5.3.ER4

Comment 11 PnT Account Manager 2017-12-07 23:54:34 UTC
Employee 'felias' has left the company.