Einfache WSDL, immer eine ConnectException

ich brauche wirklich Hilfe mit den herkömmlichsten Dinge von WSDL.

habe ich die folgende WSDL, die im Grunde nur in den generierten code:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="MyFirstWSDL"
    targetNamespace="http://www.example.org/MyFirstWSDL/"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="http://www.example.org/MyFirstWSDL/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
<wsdl:types>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        targetNamespace="http://www.example.org/MyFirstWSDL/">
        <xsd:element name="getName">
            <xsd:complexType>
                <xsd:sequence>
                    <xsd:element name="in" type="xsd:string"></xsd:element>
                </xsd:sequence>
            </xsd:complexType>
        </xsd:element>
        <xsd:element name="getNameResponse">
            <xsd:complexType>
                <xsd:sequence>
                    <xsd:element name="out" type="xsd:string"></xsd:element>
                </xsd:sequence>
            </xsd:complexType>
        </xsd:element>
    </xsd:schema>
</wsdl:types>

<wsdl:message name="getNameRequest">
    <wsdl:part name="parameters" element="tns:getName"></wsdl:part>
</wsdl:message>

<wsdl:message name="getNameResponse">
    <wsdl:part name="parameters" element="tns:getNameResponse"></wsdl:part>
</wsdl:message>

<wsdl:portType name="MyFirstInterface">
    <wsdl:operation name="getName">
        <wsdl:input message="tns:getNameRequest"></wsdl:input>
        <wsdl:output message="tns:getNameResponse"></wsdl:output>
    </wsdl:operation>
</wsdl:portType>

<wsdl:binding name="NewBinding" type="tns:MyFirstInterface">
    <soap:binding style="document"
        transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="getName">
        <soap:operation
            soapAction="http://www.example.org/MyFirstWSDL/getName" />
        <wsdl:input>
            <soap:body use="literal" />
        </wsdl:input>
        <wsdl:output>
            <soap:body use="literal" />
        </wsdl:output>
    </wsdl:operation>
</wsdl:binding>
<wsdl:service name="MyFirstService">
    <wsdl:port name="MyFirstPort" binding="tns:NewBinding">
        <soap:address location="http://localhost:8197/MyFirstService/" />
    </wsdl:port>
</wsdl:service>

Nun bei der Generierung eines Anbieters und testen Sie den Dienst mit der "Web Services Explorer" ich bekomme immer folgende exception:

IWAB0135E An unexpected error has occurred.
java.net.ConnectException
Connection refused: connect

So, Sie haben keine Ahnung, oder Vorschläge, dieses problem zu lösen?

thx im Voraus, matt

Schreibe einen Kommentar