You need to declare some namespaces in your <wsdl:definitions> statement, e.g.,
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap=" http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tns="urn:ifxforum-org:WSDL:1:PortType"
xmlns:types="urn:ifxforum-org:WSDL:1:PortType:types"
xmlns:ifx="urn:ufxforum-org:XSD:1"
I'm not sure I understand Dies's first recommendation. The targetNamespace of the "types" schema should NOT be the same as the imported namespace, "ifx". (If you want to incorporate a namespace of the same name, you must use <xsd:include> rather than <xsd:import>). You might want to verify the namespace URI of the imported schema. Should it be "urn:ifxforum-org:XSD:1" rather than "urn:ufxforum-org:XSD:1"?
Dies's second point is accurate. (Drop the prefix, or just remove the name attributes.)
Anne
On 4/20/06, Dies Koper <
[EMAIL PROTECTED]> wrote:
Hello Dink,
Maybe you can use www.ws-i.org's WS-I test tool to check your WSDL.
1. The target name of your schema ("http://www.ifxforum.org") should be
the same as the namespace (now "urn:ifxforum-org") you specify in the
xsd:import.
2. The names of the wsdl:input elements ("tns:DoIFXRqMsg" and
"tns:DoIFXRsMsg" are not valid NCName values.
Other than that it looks okay to me.
Regards,
Dies
Dink wrote:
> Hello all,
>
> I have created a WSDL for a web service called "WS017". The WSDL is
> put on http://mis.ccu.edu.tw/~dink/WS017.wsdl . However I can't use
> the Axis WSDL2Java tool to produce the stub for this service. Can
> somebody help me to check if the WSDL is error? Anyone can use the
> command line "java org.apache.axis.wsdl.WSDL2Java
> http://mis.ccu.edu.tw/~dink/WS017.wsdl -p stub" to test the WSDL.
>
> Best Regard, Dink Lo
