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 90585 - BPEL 1.0 files should be validated against BPEL 1.0 schema
Summary: BPEL 1.0 files should be validated against BPEL 1.0 schema
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL Validation (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Denis Anisimov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-05 12:42 UTC by Michael Frisino
Modified: 2007-03-06 09:45 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 Michael Frisino 2006-12-05 12:42:46 UTC
Use case: User opens a .bpel file containing BPEL 1.0 source code *i.e. based on
BPEL 1.0 xsd)

xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/" 
   

Problem - when user runs the Validate XML action user receives the following erorr:

XML validation started.

C:/Documents and
Settings/Mike/TravelReservationService9/TravelReservationService9/src/Test1.0.bpel:2,660
cvc-elt.1: Cannot find the declaration of element 'process'.

1 Error(s),  0 Warning(s).
XML validation finished.

--------------

This is not an appropriate message. This file is a valid BPEL 1.0 file. It
should be validated against the BPEL 1.0 schema as expressed in its namespace
declaration.

The problem is that our Validate XML action is trying to validate the object
model and the object model is based on assumption that user is working with BPEL
2.0 source. Since this is not a valid BPEL 2.0 source, it will not be possible
to create a BPEL 2.0 object model. This is why validation is failing today.
However, I think this is wrong behavior for IDE. Users should be allowed to edit
and validate BPEL 1.0 source code. It is valid XML and the Validate XML should
respect this. Therefore, I believe our current behavior is a defect. Yes, the
user will not be able to edit this BPEL visually. Yes, they will not be able to
deploy this to Sun BPEL SE. But they should be able to edit it at a source code
level and receive expected validation from XML source editor.

Recommendation - IDE should recognize that user is working with BPEL 1.0 source.
The Validate XML action should be adjusted to simply pass the file to the
default validate xml utility. This may require that the action be conditionalized:

if ( isBPEL2() ) {
  // use existing OM based validation story
}
else ( isBPEL1() ) {

 // fall back to standard XML validation story
}


Note: This solution may require that the BPEL 1.0 schema be added to the
NetBeans xsd catalog.
Comment 1 Denis Anisimov 2007-01-30 16:33:47 UTC
Fix is committed.

xmlns "http://schemas.xmlsoap.org/ws/2003/03/business-process/" correspond to 
BPEL 1.1 ( not BPEL 1.0 ).
So I have added code that will recognize this namespace in bpel file
and perform manual validation against BPEL 1.1 schema file.
Comment 2 Mikhail Kondratyev 2007-03-06 09:45:54 UTC
Verified