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
art element="tns:getAllStudents" name="parameters"/>
</wsdl:message>
<wsdl:message name="getAllStudentsResponse">
<wsdl
art element="tns:getAllStudentsResponse" name="parameters"/>
</wsdl:message>
<wsdl:message name="selectStudentRequest">
<wsdl
art name="parameters" element="tns:selectStudent"></wsdl
art>
</wsdl:message>
<wsdl:message name="selectStudentResponse">
<wsdl
art name="parameters" element="tns:selectStudentResponse"></wsdl
art>
</wsdl:message>
<wsdl:message name="setAllStudentsRequest">
<wsdl
art name="parameters" element="tns:setAllStudents"></wsdl
art>
</wsdl:message>
<wsdl:message name="setAllStudentsResponse">
<wsdl
art name="parameters" element="tns:setAllStudentsResponse"></wsdl
art>
</wsdl:message>
<wsdl
ortType name="Studenten">
<wsdl
peration name="getAllStudents">
<wsdl:input message="tns:getAllStudentsRequest"/>
<wsdl
utput message="tns:getAllStudentsResponse"/>
</wsdl
peration>
<wsdl
peration name="selectStudent">
<wsdl:input message="tns:selectStudentRequest"></wsdl:input>
<wsdl
utput message="tns:selectStudentResponse"></wsdl
utput>
</wsdl
peration>
<wsdl
peration name="setAllStudents">
<wsdl:input message="tns:setAllStudentsRequest"></wsdl:input>
<wsdl
utput message="tns:setAllStudentsResponse"></wsdl
utput>
</wsdl
peration>
</wsdl
ortType>
<wsdl:binding name="Studenten_Binding" type="tns:Studenten">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl
peration name="getAllStudents">
<soap
peration soapAction="http://www.example.org/student_new/getAllStudents"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl
utput>
<soap:body use="literal"/>
</wsdl
utput>
</wsdl
peration>
<wsdl
peration name="selectStudent">
<soap
peration soapAction="http://www.example.org/student_new/selectStudent"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl
utput>
<soap:body use="literal"/>
</wsdl
utput>
</wsdl
peration>
<wsdl
peration name="setAllStudents">
<soap
peration soapAction="http://www.example.org/student_new/setAllStudents"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl
utput>
<soap:body use="literal"/>
</wsdl
utput>
</wsdl
peration>
</wsdl:binding>
</wsdl:binding>
<wsdl:service name="StudentenService">
<wsdl
ort binding="tns:Studenten_Binding" name="Studenten">
<soap:address location="http://localhost:8080/services/StudentService"/>
</wsdl
ort>
</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!
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
</wsdl:message>
<wsdl:message name="getAllStudentsResponse">
<wsdl
</wsdl:message>
<wsdl:message name="selectStudentRequest">
<wsdl
</wsdl:message>
<wsdl:message name="selectStudentResponse">
<wsdl
</wsdl:message>
<wsdl:message name="setAllStudentsRequest">
<wsdl
</wsdl:message>
<wsdl:message name="setAllStudentsResponse">
<wsdl
</wsdl:message>
<wsdl
<wsdl
<wsdl:input message="tns:getAllStudentsRequest"/>
<wsdl
</wsdl
<wsdl
<wsdl:input message="tns:selectStudentRequest"></wsdl:input>
<wsdl
</wsdl
<wsdl
<wsdl:input message="tns:setAllStudentsRequest"></wsdl:input>
<wsdl
</wsdl
</wsdl
<wsdl:binding name="Studenten_Binding" type="tns:Studenten">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl
<soap
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl
<soap:body use="literal"/>
</wsdl
</wsdl
<wsdl
<soap
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl
<soap:body use="literal"/>
</wsdl
</wsdl
<wsdl
<soap
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl
<soap:body use="literal"/>
</wsdl
</wsdl
</wsdl:binding>
</wsdl:binding>
<wsdl:service name="StudentenService">
<wsdl
<soap:address location="http://localhost:8080/services/StudentService"/>
</wsdl
</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