Board index » delphi » Invalid WSDL generated by TWSDLHTMLPublish causes problems with Java client

Invalid WSDL generated by TWSDLHTMLPublish causes problems with Java client


2005-08-16 04:01:00 PM
delphi90
Hello,
I'm developing a SOAP server using Delphi 7.
It works great when I use PHP as the SOAP-client. But one of our
clients uses Java and Axis to connect to the server. Axis seems to be
complaining about the WSDL not being valid.
Our partner asked one of the "webservice gurus at axis" and that was
his response:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
The WSDL isn't valid.
Per the WSDL spec, the format of the <binding>element is:
<wsdl:definitions ....>
<wsdl:binding name="nmtoken" type="qname">*
<-- extensibility element (1) -->*
<wsdl:operation name="nmtoken">*
<-- extensibility element (2) -->*
<wsdl:input name="nmtoken"?>?
<-- extensibility element (3) -->
</wsdl:input>
<wsdl:output name="nmtoken"?>?
<-- extensibility element (4) -->*
</wsdl:output>
<wsdl:fault name="nmtoken">*
<-- extensibility element (5) -->*
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
</wsdl:definitions>
The <input>and <output>elements should have a @name attribute,
referencing the name of the <input>and/or <output>element in the
<portType>
You'll also notice that your <portType>definitions are invalid
because they also don't specify the @name attribute. Proper format of
a <portType>is:
<wsdl:definitions ....>
<wsdl:portType ....>*
<wsdl:operation name="nmtoken" parameterOrder="nmtokens">
<wsdl:input name="nmtoken"? message="qname"/>
<wsdl:output name="nmtoken"? message="qname"/>
<wsdl:fault name="nmtoken" message="qname"/>*
</wsdl:operation>
</wsdl:portType>
</wsdl:definitions>
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Also, when I try to analyze the wsdl at
www.mindreef.net/tide/scopeit/start.do I get schema errors.
You can have a look at the generated XML at
www.abee.de/zmi/IZMIWebhandler.xml
Is this a bug in the TWSDLHTMLPublish component? Am I doing something
wrong?
Regards,
Alexander Blach
www.zmi.de
 
 

Re:Invalid WSDL generated by TWSDLHTMLPublish causes problems with Java client

Any idea?