[
https://issues.apache.org/jira/browse/XMLSCHEMA-4?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Benson Margulies resolved XMLSCHEMA-4.
--------------------------------------
Resolution: Fixed
Fix Version/s: XmlSchema 2.0
> java.lang.RuntimeException/XmlSchemaException on MS web-service
> ----------------------------------------------------------------
>
> Key: XMLSCHEMA-4
> URL: https://issues.apache.org/jira/browse/XMLSCHEMA-4
> Project: XmlSchema
> Issue Type: Bug
> Affects Versions: XmlSchema 1.4.5, XmlSchema 1.4.6
> Environment: Maven version: 2.0.10
> Java version: 1.6.0_07
> OS name: "mac os x" version: "10.5.7" arch: "x86_64" Family: "mac"
> Reporter: Valerio Schiavoni
> Priority: Blocker
> Fix For: XmlSchema 2.0
>
>
> I get the following error (thrown by cxf which includes XmlSchema 1.4.5):
> Caused by: java.lang.RuntimeException:
> org.apache.ws.commons.schema.XmlSchemaException: An imported schema was
> announced to have the namespace http://tempuri.org/, but has the namespace
> http://api.microsofttranslator.com/v1/soap.svc
> at
> org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1907)
> at
> org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:1615)
> at
> org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:224)
> at
> org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:523)
> at
> org.apache.cxf.common.xmlschema.SchemaCollection.read(SchemaCollection.java:176)
> at org.apache.cxf.wsdl11.SchemaUtil.extractSchema(SchemaUtil.java:133)
> at org.apache.cxf.wsdl11.SchemaUtil.getSchemas(SchemaUtil.java:73)
> at
> org.apache.cxf.tools.validator.internal.WSDLRefValidator.getSchemas(WSDLRefValidator.java:115)
> at
> org.apache.cxf.tools.validator.internal.WSDLRefValidator.processSchemas(WSDLRefValidator.java:127)
> ... 29 more
> Caused by: org.apache.ws.commons.schema.XmlSchemaException: An imported
> schema was announced to have the namespace http://tempuri.org/, but has the
> namespace http://api.microsofttranslator.com/v1/soap.svc
> at
> org.apache.ws.commons.schema.SchemaBuilder$1.validate(SchemaBuilder.java:1605)
> at
> org.apache.ws.commons.schema.SchemaBuilder.setNamespaceAttributes(SchemaBuilder.java:369)
> at
> org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:134)
> at
> org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:121)
> at
> org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:509)
> at
> org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:382)
> at
> org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1901)
> ... 37 more
> The input WSDL is at this address:
> http://api.microsofttranslator.com/V1/Soap.svc?WSDL
--
This message is automatically generated by JIRA.
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]