Was ist falsch an meiner WSDL Datei?

beemix

Mitglied
Hallo,

habe mir nun eine WSDL Datei umgebaut um die funktion einer Hashmap bzw. von komplexen Datentypen zu testen.

Für das erstellen des Webservices benutze ich die Axis2 Eclipse Plugins, beim benutzen meiner WSDL kommt jedoch folgender Fehler (Fehlermeldung Eclipse), d.h. meine Datei ist irgendwie nicht vollständig?

Folgendermaßen sieht meine WSDL Datei aus:

[XML]
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://www.example.org/student_new/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.example.org/student_new/">
<wsdl:documentation>StudentenService</wsdl:documentation>
<wsdl:types>
<xsd:schema targetNamespace="http://www.example.org/student_new/">
<xsd:element name="getAllStudents">
<xsd:complexType>
<xsd:sequence>

</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="getAllStudentsResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Students" type="tns:Map"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="selectStudent">
<xsd:complexType>
<xsd:sequence>

<xsd:element name="in" type="xsd:string"></xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="selectStudentResponse">
<xsd:complexType>
<xsd:sequence>

<xsd:element name="out" type="tns:Student"></xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="setAllStudents">
<xsd:complexType>
<xsd:sequence>

<xsd:element name="in" type="tns:Map"></xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="setAllStudentsResponse">
<xsd:complexType>
<xsd:sequence>

<xsd:element name="out" type="tns:Map"></xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:complexType name="Student">
<xsd:sequence>
<xsd:element name="id" type="xsd:string"></xsd:element>
<xsd:element name="name" type="xsd:string"></xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Map">
<xsd:sequence>
<xsd:element name="item" type="tns:mapItem" minOccurs="0" maxOccurs="unbounded"></xsd:element>
</xsd:sequence>
</xsd:complexType>

<xsd:complexType name="mapItem">
<xsd:sequence>
<xsd:element name="key" type="xsd:string"></xsd:element>
<xsd:element name="value" type="xsd:string"></xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
</wsdl:types>
<wsdl:message name="getAllStudentsRequest">
<wsdl:part element="tns:getAllStudents" name="parameters"/>
</wsdl:message>
<wsdl:message name="getAllStudentsResponse">
<wsdl:part element="tns:getAllStudentsResponse" name="parameters"/>
</wsdl:message>
<wsdl:message name="selectStudentRequest">
<wsdl:part name="parameters" element="tns:selectStudent"></wsdl:part>
</wsdl:message>
<wsdl:message name="selectStudentResponse">
<wsdl:part name="parameters" element="tns:selectStudentResponse"></wsdl:part>
</wsdl:message>
<wsdl:message name="setAllStudentsRequest">
<wsdl:part name="parameters" element="tns:setAllStudents"></wsdl:part>
</wsdl:message>
<wsdl:message name="setAllStudentsResponse">
<wsdl:part name="parameters" element="tns:setAllStudentsResponse"></wsdl:part>
</wsdl:message>
<wsdl:portType name="Studenten">
<wsdl:eek:peration name="getAllStudents">
<wsdl:input message="tns:getAllStudentsRequest"/>
<wsdl:eek:utput message="tns:getAllStudentsResponse"/>
</wsdl:eek:peration>
<wsdl:eek:peration name="selectStudent">
<wsdl:input message="tns:selectStudentRequest"></wsdl:input>
<wsdl:eek:utput message="tns:selectStudentResponse"></wsdl:eek:utput>
</wsdl:eek:peration>
<wsdl:eek:peration name="setAllStudents">
<wsdl:input message="tns:setAllStudentsRequest"></wsdl:input>
<wsdl:eek:utput message="tns:setAllStudentsResponse"></wsdl:eek:utput>
</wsdl:eek:peration>
</wsdl:portType>
<wsdl:binding name="Studenten_Binding" type="tns:Studenten">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:eek:peration name="getAllStudents">
<soap:eek:peration soapAction="http://www.example.org/student_new/getAllStudents"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:eek:utput>
<soap:body use="literal"/>
</wsdl:eek:utput>
</wsdl:eek:peration>
<wsdl:eek:peration name="selectStudent">
<soap:eek:peration soapAction="http://www.example.org/student_new/selectStudent"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:eek:utput>
<soap:body use="literal"/>
</wsdl:eek:utput>
</wsdl:eek:peration>
<wsdl:eek:peration name="setAllStudents">
<soap:eek:peration soapAction="http://www.example.org/student_new/setAllStudents"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:eek:utput>
<soap:body use="literal"/>
</wsdl:eek:utput>
</wsdl:eek:peration>
</wsdl:binding>
</wsdl:binding>
<wsdl:service name="StudentenService">
<wsdl:port binding="tns:Studenten_Binding" name="Studenten">
<soap:address location="http://localhost:8080/services/StudentService"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
[/XML]

ich hoffe mir kann jmd sagen was da nicht stimmt? Anhand von Tutorials oder anderen WSDL Dateien habe ich schon abgeglichen aber jetzt keine Fehler erkannt :( Vielen Dank!
 
N

nillehammer

Gast
Du hast den <wsdl:binding>-Tag aus Versehen zwei Mal geschlossen (Zeilen 137,138).
 

beemix

Mitglied
ahhh ok vielen Dank! genau das war das Problem!

Habe es gerade per Zufall über den Design Reiter selber zum laufen bekommen. Warum dort aber ein zweites Binding abgebildet war, war mir nicht klar.

Dank deinem Beitrag is mir der Fehlern nun aber nachvollziehbar :)
 
Zuletzt bearbeitet:

Ähnliche Java Themen

Neue Themen


Oben