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 164476 - Opposite bpel validation rules in case WSDL messages with ommited parts
Summary: Opposite bpel validation rules in case WSDL messages with ommited parts
Status: CLOSED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL Validation (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vladimir Yaroslavskiy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-05 13:00 UTC by Vitaly Bychkov
Modified: 2009-12-07 23:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Sample project (9.62 KB, text/plain)
2009-05-05 13:17 UTC, Vitaly Bychkov
Details
Sample project (9.62 KB, application/x-compressed)
2009-05-05 13:17 UTC, Vitaly Bychkov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vitaly Bychkov 2009-05-05 13:00:39 UTC
Opposite bpel validation rules in case WSDL messages with ommited parts. 
There are several use cases when bpel validation rules are inconsistent each other:

Invocation issue:
1. For <invoke>, request-response invocation requires both an inputVariable (or its equivalent <toPart> elements)
and an outputVariable (or its equivalent <fromPart> elements). And at the same time: "If a WSDL message definition does
not contain any parts, then the associated attributes, inputVariable or outputVariable, MAY be omitted, [SA00047] and
the <fromParts> or <toParts> construct MUST be omitted." Similar for the one way invocation. i.e. it is not required to
define inputVariable or outputVariable if the correspondent message parts are ommitted.

But in case inputVariable or outputVariable are ommited because the correspondent message parts are ommited the
validation error is appeared:
"
For <invoke>, request-response invocation requires both an inputVariable (or its equivalent <toPart> elements) and an
outputVariable (or its equivalent <fromPart> elements)"



receive/reply issues:
Similar for the receive(reply) inputVariable(outputVariable) is not required if the correspondent input(output) message
doesn't have any parts. But if inputVariable(outputVariable)is ommited then the following validation error is appeared:
"
For <receive> variable attribute (or its equivalent <fromPart> elements) must be specified. If a WSDL message definition
does not contain any parts, then the <fromParts> construct must be omitted.
"
("For <reply> variable attribute (or its equivalent <toPart> elements) must be specified. If a WSDL message definition
does not contain any parts, then the <toParts> construct must be omitted.
")


See also issue 109292.
Comment 1 Vitaly Bychkov 2009-05-05 13:18:32 UTC
Created attachment 81540 [details]
Sample project
Comment 2 Vladimir Yaroslavskiy 2009-05-05 15:15:28 UTC
fixed in soa-dev65: http://hg.netbeans.org/soa-dev65/rev/b9f6948fbc97
fixed in  gfesbv21: http://hg.netbeans.org/gfesbv21/rev/0711cef0cf1f
Comment 3 Alexander Permyakov 2009-12-07 07:49:51 UTC
verified
Comment 4 umeshvats 2009-12-07 23:40:35 UTC
Tested with 6-dec-09 build of GFESBV2.2 with attached projects. Working fine. So closing ticket.
Comment 5 umeshvats 2009-12-07 23:41:58 UTC
Changing the milestone to 6.7.