Nie jestem pewien czy tutaj powinienem założyć ten temat... :/
Wygenerowałem sobie z eclipse przykładowy plik wsdl. Walidator eclipse zgłasza mi błąd, którego nie potrafię zidentyfikować. Może ktoś mi wskazać gdzie należy wprowadzić poprawki?
<?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.example.org/probe/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="probe" targetNamespace="http://www.example.org/probe/"> <wsdl:types> <xsd:schema targetNamespace="http://www.example.org/probe/"> <xsd:complexType name="PROBE_TYPE"> <xsd:sequence> <xsd:element name="param1" type="xsd:string"></xsd:element> <xsd:element name="param2" type="xsd:string"></xsd:element> </xsd:sequence> </xsd:complexType> </xsd:schema> </wsdl:types> <wsdl:message name="probeOperationRequest"> <wsdl:part name="parameters" type="tns:PROBE_TYPE" /> </wsdl:message> <wsdl:portType name="probe"> <wsdl:operation name="probeOperation"> <wsdl:input message="tns:probeOperationRequest" name="inputParam" /> </wsdl:operation> </wsdl:portType> <wsdl:binding name="probeSOAP" type="tns:probe"> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" /> <wsdl:operation name="probeOperation"> <soap:operation soapAction="" /> <wsdl:input name="inputParam"> <soap:body use="literal" /> </wsdl:input> </wsdl:operation> </wsdl:binding> <wsdl:service name="probe"> <wsdl:port binding="tns:probeSOAP" name="probeSOAP"> <soap:address location="http://www.example.org/" /> </wsdl:port> </wsdl:service> </wsdl:definitions>
Bład jaki mi się wyświetla ma następującą treść:
A document-literal binding contains soapbind:body element(s) that refer to message part element(s) that do not have the element attribute
i pojawia się przy linijce
<wsdl:binding name="probeSOAP" type="tns:probe">
z góry dzięki i pozdrawiam