• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

BP Analyzer  RSS feed

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try changing

to

Apparently the parser is getting upset about some whitespace.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!