You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Jing Xue <jx...@digizenstudio.com> on 2005/11/29 22:12:28 UTC

wsdlInputSchema causes empty import namespace

Without any wsdlInputSchema, ?wsdl always generates a line:
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
at the begining of the schema.

However, as soon as I added:
<parameter name="wsdlInputSchema"
value="http://127.0.0.1:8080/myservice/my-types.xsd"/>
?wsdl instead would generate simply:
<import namespace=""/>

Which causes the wsdl to become invalid.

my-types.xsd has one simpleType and one complexType, and looks like:
<?xml version="1.0"?>
<schema targetNamespace="http://mycompany.com/myservice"
            xmlns="http://www.w3.org/2001/XMLSchema">

<!-- here goes the types -->

</schema>

Is there anything I'm missing?
Thanks.
--Jing Xue