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.
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
Created attachment 33657 [details] loanRequestor.wsdl is included in the zip file
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.
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.
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.
All the other messages are related to the "Saw null" error. I have checked in the fix. In tomorrows build it should be ok.
Verified on Windows XP with 200609190000. Verified that both scenarios described in this issue do not produce the unexpected errors on XML validation.