*
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes BP Analyzer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "BP Analyzer" Watch "BP Analyzer" New topic
Author

BP Analyzer

Eva Van Shtock
Greenhorn

Joined: Jun 02, 2006
Posts: 28
Hi,

I'm playing with WS-I Analyzer.
I get this error (line 2 of wsdl), the wsdl file first few lines are given below.
Does anyone know what is the error?

Thanks

Eva

-- FIRST FEW LINES OF WSDL FILE ------------------

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<definitions xmlns:tns="http://beanexport_second_time" xmlns:wsr="http://www.openuri.org/2002/10/soap/reliability/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap12enc="http://www.w3.org/2003/05/soap-encoding" xmlns:conv="http://www.openuri.org/2002/04/wsdl/conversation/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://beanexport_second_time">
<types>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:stns="http://beanexport_second_time" elementFormDefault="qualified" attributeFormDefault="qualified" targetNamespace="http://beanexport_second_time">

----------- THE OUTPUT FOR FAILED TEST -----------------------

Result failed
Failure Message WSDL definition does not conform to the schema located at http://schemas.xmlsoap.org/wsdl/soap/2003-02-11.xsd for some element using the WSDL-SOAP binding namespace, or does not conform to the schema located at http://schemas.xmlsoap.org/wsdl/2003-02-11.xsd for some element using the WSDL namespace.
Failure Detail Message Exception:
org.xml.sax.SAXException: Error: cvc-complex-type.2.1: Element 'soap:binding' must have no character or element information item [children], because the type's content type is empty.
at org.wsi.xml.XMLUtils$ErrHandler.error(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.elementLocallyValidComplexType(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.elementLocallyValidType(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.processElementContent(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.handleEndElement(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.wsi.xml.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at org.wsi.xml.XMLUtils.parseXML(Unknown Source)
at org.wsi.xml.XMLUtils.parseXMLDocument(Unknown Source)
at org.wsi.test.profile.validator.impl.wsdl.BP2703.validate(Unknown Source)
at org.wsi.test.profile.validator.impl.BaseValidatorImpl.processAssertions(Unknown Source)
at org.wsi.test.profile.validator.impl.wsdl.WSDLValidatorImpl.processDefinitionAssertions(Unknown Source)
at org.wsi.test.profile.validator.impl.wsdl.WSDLValidatorImpl.validate(Unknown Source)
at org.wsi.test.analyzer.BasicProfileAnalyzer.validateWSDL(Unknown Source)
at org.wsi.test.analyzer.BasicProfileAnalyzer.validateConformance(Unknown Source)
at org.wsi.test.analyzer.BasicProfileAnalyzer.main(Unknown Source)


Element Location:
lineNumber=2
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
Originally posted by Eva Van Shtock:
Result failed
Failure Message WSDL definition does not conform to the schema located at http://schemas.xmlsoap.org/wsdl/soap/2003-02-11.xsd for some element using the WSDL-SOAP binding namespace, or does not conform to the schema located at http://schemas.xmlsoap.org/wsdl/2003-02-11.xsd for some element using the WSDL namespace.
Failure Detail Message Exception:
org.xml.sax.SAXException: Error: cvc-complex-type.2.1: Element 'soap:binding' must have no character or element information item [children], because the type's content type is empty.


So the problem must be inside the WSDL Binding element, specifically in the 'soap:binding' element.
Eva Van Shtock
Greenhorn

Joined: Jun 02, 2006
Posts: 28
Here is the whole wsdl

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<definitions xmlns:tns="http://beanexport_second_time" xmlns:wsr="http://www.openuri.org/2002/10/soap/reliability/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap12enc="http://www.w3.org/2003/05/soap-encoding" xmlns:conv="http://www.openuri.org/2002/04/wsdl/conversation/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://beanexport_second_time">
<types>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:stns="http://beanexport_second_time" elementFormDefault="qualified" attributeFormDefault="qualified" targetNamespace="http://beanexport_second_time">
<xsd:element type="xsd:string" name="getSampleResponse" nillable="true">
</xsd:element>
<xsd:element type="xsd:string" name="setSample" nillable="true">
</xsd:element>
</xsd:schema>
</types>
<message name="getSample">
</message>
<message name="getSampleResponse">
<part xmlns artns="http://beanexport_second_time" name="result" element="partns:getSampleResponse">
</part>
</message>
<message name="setSample">
<part xmlns artns="http://beanexport_second_time" name="string" element="partns:setSample">
</part>
</message>
<message name="setSampleResponse">
</message>
<portType name="Bean1Port">
<operation name="getSample">
<input message="tns:getSample">
</input>
<output message="tns:getSampleResponse">
</output>
</operation>
<operation name="setSample">
<input message="tns:setSample">
</input>
<output message="tns:setSampleResponse">
</output>
</operation>
</portType>
<binding type="tns:Bean1Port" name="Bean1Port">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http">
</soap:binding>
<operation name="getSample">
<soap peration style="document" soapAction="">
</soap peration>
<input>
<soap:body namespace="http://beanexport_second_time" use="literal">
</soap:body>
</input>
<output>
<soap:body namespace="http://beanexport_second_time" use="literal">
</soap:body>
</output>
</operation>
<operation name="setSample">
<soap peration style="document" soapAction="">
</soap peration>
<input>
<soap:body namespace="http://beanexport_second_time" use="literal">
</soap:body>
</input>
<output>
<soap:body namespace="http://beanexport_second_time" use="literal">
</soap:body>
</output>
</operation>
</binding>
<service name="Bean1">
<port name="Bean1Port" binding="tns:Bean1Port">
<soap:address location="http://localhost:7001/web-services/Bean1">
</soap:address>
</port>
</service>
</definitions>
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
Try changing

to

Apparently the parser is getting upset about some whitespace.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: BP Analyzer
 
Similar Threads
string[] definiton error in xsd file generated with WSAD
Glue WSDL2JAVA exception
ws-i compliance questions
simple array in WSAD 5.0 web service. is it possible?
XSD Schema Error in WSAD