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 140667 - Invalid error - when there is duplicate message definition in two WSDLs
Summary: Invalid error - when there is duplicate message definition in two WSDLs
Status: RESOLVED INVALID
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL Validation (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Vladimir Yaroslavskiy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-18 06:29 UTC by Murali Pottlapelli
Modified: 2008-07-18 14:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
project to reproduce the issue (9.58 KB, application/octet-stream)
2008-07-18 06:30 UTC, Murali Pottlapelli
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Murali Pottlapelli 2008-07-18 06:29:00 UTC
C:/Documents and Settings/mpottlapelli/My Documents/NetBeansProjects/WSO2/bpelWS02Proxy/src/bpelProxy.bpel:2,0
Invalid error - when there is duplicate message definition in two WSDLs. Project is attached

ERROR: Documents imported in the process contain conflicting definition of the component "EchoOperationRequest":
C:/Documents and Settings/mpottlapelli/My Documents/NetBeansProjects/WSO2/bpelWS02Proxy/src/ProxyWSDL.wsdl:11: 4
C:/Documents and Settings/mpottlapelli/My Documents/NetBeansProjects/WSO2/bpelWS02Proxy/src/EchoService.wsdl:25: 4

C:/Documents and Settings/mpottlapelli/My Documents/NetBeansProjects/WSO2/bpelWS02Proxy/src/bpelProxy.bpel:2,0
ERROR: Documents imported in the process contain conflicting definition of the component "EchoOperationResponse":
C:/Documents and Settings/mpottlapelli/My Documents/NetBeansProjects/WSO2/bpelWS02Proxy/src/ProxyWSDL.wsdl:14: 4
C:/Documents and Settings/mpottlapelli/My Documents/NetBeansProjects/WSO2/bpelWS02Proxy/src/EchoService.wsdl:28: 4

2 Error(s),  3 Warning(s).
Comment 1 Murali Pottlapelli 2008-07-18 06:30:47 UTC
Created attachment 64912 [details]
project to reproduce the issue
Comment 2 Vladimir Yaroslavskiy 2008-07-18 14:29:43 UTC
Behaviour is correct. See issue 86958 - static rule SA00014:

"A WS-BPEL process definition MUST be rejected if the imported documents contain conflicting definitions of a component
used by the importing process definition (as could be caused, for example, when the XSD redefinition mechanism is used)".

EchoService.wsdl contains

<message name="EchoOperationRequest">
    <part name="buyStocks" element="tns:buyStocks"/>
</message>

while ProxyWSDL.wsdl contains

<message name="EchoOperationRequest">
    <part name="parameters" element="tns:buyStocks"/>
</message>

there is the conflict in the part name: buyStocks and parameters, so validation error occurs.