[ http://issues.apache.org/jira/browse/WODEN-26?page=comments#action_12415863 ]
Jeremy Hughes commented on WODEN-26: ------------------------------------ Let me restate the problem ... Giving this WSDL to the converter: http://people.apache.org/~hughesj/wsdl11to20/GrainsOfSandCounter.wsdl First few lines: <?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions targetNamespace="http://grainsofsand.beach" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://grainsofsand.beach" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <wsdl:types> <schema elementFormDefault="qualified" targetNamespace="http://grainsofsand.beach" xmlns="http://www.w3.org/2001/XMLSchema"> <element name="getGrainCount"> <complexType> <sequence> <element name="arg_0_0" nillable="true" type="xsd:string" /> ... I get <description xmlns="http://www.w3.org/2006/01/wsdl" targetNamespace="http://grainsofsand.beach" xmlns:tns="http://grainsofsand.beach" xmlns:wsoap="http://www.w3.org/2006/01/wsdl/soap"> <types> <schema elementFormDefault="qualified" targetNamespace="http://grainsofsand.beach" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <element name="getGrainCount"> <complexType> <sequence> <element name="arg_0_0" nillable="true" type="xsd:string"/> ... The xsd namespace declaration is missing from the <description> where I'd expect it to be. I suspect it was ommitted because the converter couldn't see anything using the namespace in the WSDL document, but didn't check in the inlined <schema> Adding the xsd declaration in either the <description> or the <schema> corrects the problem. So this is purely a Woden converter issue. > <types> is missing prefix declarations > -------------------------------------- > > Key: WODEN-26 > URL: http://issues.apache.org/jira/browse/WODEN-26 > Project: Woden > Type: Bug > Components: Tools > Reporter: Jeremy Hughes > > Using this WSDL 1.1 document > http://people.apache.org/~hughesj/wsdl11to20/GrainsOfSandCounter.wsdl > which starts like this: > <?xml version="1.0" encoding="UTF-8"?> > <wsdl:definitions targetNamespace="http://grainsofsand.beach" > xmlns="http://schemas.xmlsoap.org/wsdl/" > xmlns:impl="http://grainsofsand.beach" > xmlns:intf="http://grainsofsand.beach" > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" > xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" > xmlns:xsd="http://www.w3.org/2001/XMLSchema"> > <wsdl:types> > <schema elementFormDefault="qualified" > targetNamespace="http://grainsofsand.beach" > xmlns="http://www.w3.org/2001/XMLSchema"> > <element name="getGrainCount"> > <complexType> > <sequence> > <element name="arg_0_0" > nillable="true" > type="xsd:string" /> > </sequence> > </complexType> > </element> > <element name="getGrainCountResponse"> > <complexType> > <sequence> > <element > name="getGrainCountReturn" type="xsd:double" /> > </sequence> > </complexType> > </element> > </schema> > </wsdl:types> > I get a types section like this: > <description xmlns="http://www.w3.org/2006/01/wsdl" > targetNamespace="http://grainsofsand.beach" > xmlns:tns="http://grainsofsand.beach" > xmlns:impl="http://grainsofsand.beach" > xmlns:wsoap="http://www.w3.org/2006/01/wsdl/soap" > xmlns:intf="http://grainsofsand.beach"> > <types> > <schema elementFormDefault="qualified" > targetNamespace="http://grainsofsand.beach" > xmlns="http://www.w3.org/2001/XMLSchema"> > <element name="getGrainCount"> > <complexType> > <sequence> > <element name="arg_0_0" > nillable="true" type="xsd:string"/> > </sequence> > </complexType> > </element> > <element name="getGrainCountResponse"> > <complexType> > <sequence> > <element > name="getGrainCountReturn" type="xsd:double"/> > </sequence> > </complexType> > </element> > </schema> > </types> > which causes this Woden error: > [Error] GrainsOfSandCounter.wsdl2:12:66: UndeclaredPrefix: Cannot resolve > 'xsd:string' as a QName: the prefix 'xsd' is not declared. > [Error] GrainsOfSandCounter.wsdl2:12:66: cvc-attribute.3: The value > 'xsd:string' of attribute 'type' on element 'element' is not valid with > respect to its type, 'QName'. > [Error] GrainsOfSandCounter.wsdl2:19:62: UndeclaredPrefix: Cannot resolve > 'xsd:double' as a QName: the prefix 'xsd' is not declared. > [Error] GrainsOfSandCounter.wsdl2:19:62: cvc-attribute.3: The value > 'xsd:double' of attribute 'type' on element 'element' is not valid with > respect to its type, 'QName'. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]