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