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 84385 - Validate XMl fails
Summary: Validate XMl fails
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: WSDL Tools (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Shivanand Kini
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-06 23:34 UTC by Sherry Barkodar
Modified: 2006-09-19 18:31 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
loanRequestor.wsdl is included in the zip file (11.09 KB, application/octet-stream)
2006-09-06 23:35 UTC, Sherry Barkodar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sherry Barkodar 2006-09-06 23:34:13 UTC
using build 060905
Create a BPEL Project
Creat a WSDL file:
Select New -> WSDL.
From the New WSDL wizard:
-Type LoanRequestor for the name.
-Check the Import XML Schema File and Browse to existing schema.
Double click the LoanRequestor.wsdl file then Validate XML gives me the
following error msgs:
XML validation started.

D:/sherrydev/SOA/postbeta/LoanRequestor/src/LoanRequestor.wsdl:2,0
s4s-elt-character: Non-whitespace characters are not allowed in schema elements
other than 'xs:appinfo' and 'xs:documentation'. Saw 'null'.

D:/sherrydev/SOA/postbeta/LoanRequestor/src/LoanRequestor.wsdl:12,4
XML document structures must start and end within the same entity.

D:/sherrydev/SOA/postbeta/LoanRequestor/src/LoanRequestor.wsdl:12,4
XML document structures must start and end within the same entity.

3 Error(s),  0 Warning(s).
XML validation finished.
Attached are the zip file for the application that includes the LoanRequestor.wsdl
Comment 1 Sherry Barkodar 2006-09-06 23:35:27 UTC
Created attachment 33657 [details]
loanRequestor.wsdl is included in the zip file
Comment 2 Sherry Barkodar 2006-09-07 19:36:03 UTC
New observation:
create a BPEL project.
Create a schema. SynchronousSample.xsd
Rightclick the Process File node, New - > WSDL.SynchronousSample.wsdl
In the WSDL wizard check the Import XML schema File
Browse to Source package and select SynchronousSample.xsd.
Double click SynchronousSample.wsdl
rigthclick -> validate XML 
I get the following err msg:
XML validation started.

C:/Documents and
Settings/Administrator/SynchronousSample/src/SynchronousSample.wsdl:19,2
Message "SynchronousSampleRequest" does not have any child part elements
defined. : Specify at least one part child element.

C:/Documents and
Settings/Administrator/SynchronousSample/src/SynchronousSample.wsdl:23,2
Message "SynchronousSampleResponse" does not have any child part elements
defined. : Specify at least one part child element.

C:/Documents and
Settings/Administrator/SynchronousSample/src/SynchronousSample.wsdl:2,0
s4s-elt-character: Non-whitespace characters are not allowed in schema elements
other than 'xs:appinfo' and 'xs:documentation'. Saw 'null'.

C:/Documents and
Settings/Administrator/SynchronousSample/src/SynchronousSample.wsdl:12,4
XML document structures must start and end within the same entity.

C:/Documents and
Settings/Administrator/SynchronousSample/src/SynchronousSample.wsdl:12,4
XML document structures must start and end within the same entity.

C:/Documents and
Settings/Administrator/SynchronousSample/src/SynchronousSample.wsdl:58,6
The <soap:address> element must have a location attribute that is a valid URL.


However, if I create the wsdl without using the Import XML check box.
and then import the schema after the wsdl is created, the validation has no
problem, no error.
Comment 3 Shivanand Kini 2006-09-07 20:01:44 UTC
Fixed the "saw null" part.

For the following:
C:/Documents and
Settings/Administrator/SynchronousSample/src/SynchronousSample.wsdl:19,2
Message "SynchronousSampleRequest" does not have any child part elements
defined. : Specify at least one part child element.

C:/Documents and
Settings/Administrator/SynchronousSample/src/SynchronousSample.wsdl:23,2
Message "SynchronousSampleResponse" does not have any child part elements
defined. : Specify at least one part child element.

The reason is that the template wsdl file doesnt create a part by default. This
will be fixed with the new wsdl wizard.
Comment 4 Sherry Barkodar 2006-09-07 20:24:02 UTC
There are several error messages in the output file. One of them was due to the
child part elements. What about other messages?
-Non-whitespace characters are not allowed in schema elements
other than 'xs:appinfo' and 'xs:documentation'. Saw 'null'.
-XML document structures must start and end within the same entity.


Comment 5 Shivanand Kini 2006-09-07 22:10:46 UTC
All the other messages are related to the "Saw null" error. I have checked in
the fix. In tomorrows build it should be ok.
Comment 6 jlautz 2006-09-19 18:31:23 UTC
Verified on Windows XP with 200609190000.

Verified that both scenarios described in this issue do not produce the
unexpected errors on XML validation.