Unexpected input on wsdl:input if empty wsdl:message #122

Closed
hedefalk opened this Issue Nov 28, 2011 · 1 comment

Comments

Projects
None yet
2 participants
@hedefalk

The following wsdl:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://www.hedefalk.se/test/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
targetNamespace="http://www.hedefalk.se/test/">
    <wsdl:message name="MessageIn">
    </wsdl:message>
    <wsdl:message name="MessageOut">
    </wsdl:message>
    <wsdl:portType name="PortType1">
        <wsdl:operation name="Operation1">
            <wsdl:input message="tns:MessageIn" />
            <wsdl:output message="tns:MessageOut" />
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:portType name="PortType2">
        <wsdl:operation name="Operation2">
            <wsdl:input message="tns:MessageIn" />
            <wsdl:output message="tns:MessageOut" />
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="Binding1" type="tns:PortType1">
        <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
        <wsdl:operation name="Operation1">
            <soap:operation soapAction="http://hedefalk.se/test" style="document" />
            <wsdl:input>
                <soap:body use="literal" />
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal" />
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:binding name="Binding2" type="tns:PortType2">
        <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
        <wsdl:operation name="Operation2">
            <soap:operation soapAction="http://hedefalk.se/test" style="document" />
            <wsdl:input>
                <soap:body use="literal" />
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal" />
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="service">
        <wsdl:port binding="tns:Binding1" name="Port1">
        </wsdl:port>
        <wsdl:port binding="tns:Binding2" name="Port2">
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>

gives me the following error:

unexpected input: XParamType(None,None,{http://www.hedefalk.se/test/}MessageIn)

If I remove the

<wsdl:input message="tns:MessageIn" />

lines it works. Also if I add some content to the wsdl:message's it works:

 <wsdl:message name="MessageIn">
        <wsdl:part name="in" type="xsd:string" />
    </wsdl:message>
    <wsdl:message name="MessageOut">
        <wsdl:part name="out" type="xsd:string" />
    </wsdl:message>

@eed3si9n eed3si9n closed this in 73bde84 Nov 29, 2011

@eed3si9n

This comment has been minimized.

Show comment
Hide comment
@eed3si9n

eed3si9n Nov 29, 2011

Owner

fixed in 0.6.7-SNAPSHOT. it should be up on scala-tools.

Owner

eed3si9n commented Nov 29, 2011

fixed in 0.6.7-SNAPSHOT. it should be up on scala-tools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment