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 141299 - Validation errors in modified SynchronousSample.bpel
Summary: Validation errors in modified SynchronousSample.bpel
Status: NEW
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Sergey Lunegov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-23 11:03 UTC by _ alexpetrov
Modified: 2011-11-30 16:21 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
new project with build errors (28.20 KB, application/octet-stream)
2008-07-23 11:06 UTC, _ alexpetrov
Details
WSDL to be implemented (1.66 KB, text/plain)
2008-07-23 11:07 UTC, _ alexpetrov
Details
WSDL to be invoked (1.65 KB, text/plain)
2008-07-23 11:08 UTC, _ alexpetrov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ alexpetrov 2008-07-23 11:03:40 UTC
This bug description is copied from the bug http://www.netbeans.org/issues/show_bug.cgi?id=137802 (all messages, which
were added there since July 5).
==================================================================================================

Product Version: NetBeans IDE Dev (Build 200807030007)
Java: 1.6.0_06; Java HotSpot(TM) Client VM 10.0-b22
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb) 
-------------------------------------

here are the validation errors I got, attaching new project.

XML validation started.
C:/Documents and Settings/mpottlapelli/My
Documents/NetBeansProjects/Correlation/CorrelationInvokeRecv/CorrelationInvokeRecv/src/SynchronousSample.bpel:75,8
WARNING: The variable "OperationIn1" is initialized and not used.

C:/Documents and Settings/mpottlapelli/My
Documents/NetBeansProjects/Correlation/CorrelationInvokeRecv/CorrelationInvokeRecv/src/BPAsyncServiceRecv.wsdl:6,54
ERROR: s4s-elt-schema-ns: The namespace of element 'definitions' must be from the schema namespace,
'http://www.w3.org/2001/XMLSchema'.

C:/Documents and Settings/mpottlapelli/My
Documents/NetBeansProjects/Correlation/CorrelationInvokeRecv/CorrelationInvokeRecv/src/BPAsyncServiceRecv.wsdl:6,54
ERROR: s4s-elt-invalid: Element 'definitions' is not a valid element in a schema document.

C:/Documents and Settings/mpottlapelli/My
Documents/NetBeansProjects/Correlation/CorrelationInvokeRecv/CorrelationInvokeRecv/src/BPAsyncServiceRecv.wsdl:6,54
ERROR: src-import.2: The root element of document 'BPAsyncServiceRecv.wsdl' has to have the namespace name
'http://www.w3.org/2001/XMLSchema' and the local name 'schema'.

C:/Documents and Settings/mpottlapelli/My
Documents/NetBeansProjects/Correlation/CorrelationInvokeRecv/CorrelationInvokeRecv/src/WizardCorrelationProperties.wsdl:17,8
ERROR: Can not find the element "ns:simpleElement" at the namespace
"http://localhost:12000/repository/repository1/BP10AsyncService/BPAsyncServiceRecv". Expression: "/ns:simpleElement"

C:/Documents and Settings/mpottlapelli/My
Documents/NetBeansProjects/Correlation/CorrelationInvokeRecv/CorrelationInvokeRecv/src/SynchronousSample.bpel:123,16
ERROR: Property "wzrd_prop_simpleElement_simpleElement" does not have a propertyAlias defined for the message where the
correlation set "wzrd_set_Invoke1_Receive1" is being used.

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


In addition I have noted a regression, when "BPAsyncServiceWrapper" WSDL (partnerLinkType associated with two roles) is
dropped on BPEL editor it is creating partner link but it is not recognizing the second role. 

--------------------------------------------------------------------------------------------------
Please follow these steps to reproduce the issue.
1. Create synchronous sample based on Samples/SOA/Synchronous BPEL Process
2. Add BPAsyncServiceRecv.wsdl and BPAsyncServiceInvoke.wsdl to the project
3. Create a WSDL, import  BPAsyncServiceRecv and BPAsyncServiceInvoke WSDLs, define a PLT with two roles.
4. DnD WSDL on to BP canvas, create a PL with my role and partner role.
5. DnD Receive and Invoke activities and configure them.
6. Initiate correlation wizard from Recv, and select Invoke as initiating activity. Do the mapping and associate at
"simpleElement".
7. Build the project.
Comment 1 _ alexpetrov 2008-07-23 11:06:17 UTC
Created attachment 65343 [details]
new project with build errors
Comment 2 _ alexpetrov 2008-07-23 11:07:44 UTC
Created attachment 65344 [details]
WSDL  to be implemented
Comment 3 _ alexpetrov 2008-07-23 11:08:22 UTC
Created attachment 65345 [details]
WSDL to be invoked
Comment 4 Sergey Lunegov 2008-10-01 15:05:08 UTC
Vladimir, please take a look.
Comment 5 Vladimir Yaroslavskiy 2008-10-13 13:21:43 UTC
Nikita, there is XPath issue: Can not find the element <...> at the namespace "...", please, fix it.
Comment 6 Nikita Krjukov 2008-10-17 13:03:43 UTC
The problem not in the validation. There is an absence of understanding if the schema declarations embedded to a WSDL
accessible outside of the WSDL or not. In this case there are 2 WSDL files. One has embedded schema with a type
declaration inside. Another WSDL file tries access that type. 
Any considerations don't make sense until we figure out if it possible and if possible then how if should look.