This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 100522 - WSDL Validation fails to catch invalid wsdl binding for jms message
Summary: WSDL Validation fails to catch invalid wsdl binding for jms message
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: Binding Components (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: James Tran
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-10 20:41 UTC by malkit
Modified: 2007-10-12 00:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description malkit 2007-04-10 20:41:17 UTC
I erroneously added jms message properties for jms message in wsdl binding as below:
    <binding name="CorrtestBinding" type="tns:CorrtestPortType">
        <jms:binding/>
        <wsdl:operation name="CorrtestOperation">
            <jms:operation destination="Queue1" destinationType="Queue"/>
            <wsdl:input name="input1">
                <jms:message messageType="TextMessage" textPart="part1"/>
                <jms:properties>
                        <jms:property part="IdProperty" type="long"
name="correlationId"></jms:property>
                </jms:properties>                  
            </wsdl:input>
        </wsdl:operation>
    </binding>

The validation did not complain. The above definition of input message is
incorrect, the correct definition of message property in binding should be as
below (jms properties to be child of jms message):
    <binding name="binding1" type="tns:CorrtestPortType1">
        <jms:binding/>
        <wsdl:operation name="CorrtestOperation">
            <jms:operation destination="Queue2"
destinationType="Queue"></jms:operation>
            <wsdl:input name="input1">
                <jms:message messageType="TextMessage" textPart="part1">
                    <jms:properties>
                        <jms:property part="IdProperty" type="long"
name="correlationId"></jms:property>
                    </jms:properties>                
                </jms:message>
            </wsdl:input>
        </wsdl:operation>
    </binding>

Please note that if the editor is used, it places the jms properties correctly
under the jms message element. 

Since the user could hand code the wsdl, the wsdl validation need to catch this
as error and report appropriately.
Comment 1 James Tran 2007-04-14 00:19:48 UTC
Checking in src/org/netbeans/modules/wsdlextensions/jms/validator/Bundle.properties;
/cvs/enterprise/wsdlextensions/jms/src/org/netbeans/modules/wsdlextensions/jms/validator/Bundle.properties,v
 <--  Bundle.properties
new revision: 1.7; previous revision: 1.6
done
Checking in
src/org/netbeans/modules/wsdlextensions/jms/validator/JMSComponentValidator.java;
/cvs/enterprise/wsdlextensions/jms/src/org/netbeans/modules/wsdlextensions/jms/validator/JMSComponentValidator.java,v
 <
--  JMSComponentValidator.java
new revision: 1.9; previous revision: 1.8
done
Comment 2 pchen 2007-10-12 00:38:50 UTC
Using build 200710100000 on Windows XP
Fix verified