Re: WSDL Newbie question

Simon Fell <[email protected]> Sun, 4 Jan 2004 17:07:44 -0800
Newsgroups gmane.comp.windows.devel.soap.general
Organization pocketsoap.com
Message-ID <[email protected]>
the port should reference testingsoap not hello_soap, e.g.

<service name=3D"Test Response Service">
        <documentation>This is a WSDL file for my
service</documentation>
        <port name=3D"hellosoapport" binding=3D"tns:testingsoap">
          <soap:address
location=3D"http://web.njit.edu/~djv3/links/testing.php"/>
        </port>
</service>

Cheers
Simon
www.pocketsoap.com

On Sun, 4 Jan 2004 19:26:35 -0500, in soap you wrote:

>Hello all,
>
>I am trying to understand WSDL at the moment and I have created a wsdl
>file that I am running through Microsoft's wsdl validator service to see
>how I am doing. The php script that is referenced in the wsdl file just
>returns the sent string, its just a sample snippet.
>
>The validator says the following to me:
>
>Error: Element binding named hello_soap from namespace
>http://web.njit.edu/~djv3/links/testing.wsdl is missing.This WSDL may be
>naming the input message, but not using the same name within the binding
>section. Try removing the names on the input and output elements within
>the operation elements.
>
>I'm thinking this is just a lack of understanding error but I am not
>sure. If you have any resources that you use to aid in the creation of
>wsdl files I would love to hear about them.
>
>Below is the contents of the wsdl file I am validating.
>
>Thanks,
>Dan
>
><?xml version=3D"1.0"?>
><definitions name=3D"Test Response Service"
>          =
targetNamespace=3D"http://web.njit.edu/~djv3/links/testing.wsdl"
>          xmlns:tns=3D"http://web.njit.edu/~djv3/links/testing.wsdl"
>          xmlns:xsd=3D"http://www.w3.org/2000/10/XMLSchema"
>          xmlns:soap=3D"http://schemas.xmlsoap.org/wsdl/soap/"
>          xmlns=3D"http://schemas.xmlsoap.org/wsdl/">
><message name=3D"incomingMessage">
>        <part name=3D"message" type=3D"xsd:string"/>
></message>
><message name=3D"outputMessage">
>        <part name=3D"retval" type=3D"xsd:string"/>
></message>
><portType name=3D"hello_soap">
>        <operation name=3D"hello_soap">
>                <input message=3D"tns:incomingMessage"/>
>                <output message=3D"tns:outputMessage"/>
>        </operation>
></portType>
><binding type=3D"tns:hello_soap" name=3D"testingsoap">
>        <soap:binding style=3D"document"
>transport=3D"http://schemas.xmlsoap.org/soap/http"/>
>        <operation>
>                <soap:operation
>soapAction=3D"http://web.njit.edu/~djv3/links/testing.php"/>
>                <input>
>                        <soap:body use=3D"literal"/>
>                </input>
>                <output>
>                        <soap:body use=3D"literal"/>
>                </output>
>        </operation>
></binding>
><service name=3D"Test Response Service">
>        <documentation>This is a WSDL file for my =
service</documentation>
>        <port name=3D"hellosoapport" binding=3D"tns:hello_soap">
>          <soap:address
>location=3D"http://web.njit.edu/~djv3/links/testing.php"/>
>        </port>
></service>
></definitions>