Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> walidacja pliku wsdl, walidacja pliku wsdl zgłasza błędy
ryszawa
post
Post #1





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 3.07.2005

Ostrzeżenie: (0%)
-----


hejka

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?

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
  3. xmlns:tns="http://www.example.org/probe/"
  4. xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
  5. xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="probe"
  6. targetNamespace="http://www.example.org/probe/">
  7.  
  8. <wsdl:types>
  9. <xsd:schema targetNamespace="http://www.example.org/probe/">
  10. <xsd:complexType name="PROBE_TYPE">
  11. <xsd:sequence>
  12. <xsd:element name="param1" type="xsd:string"></xsd:element>
  13. <xsd:element name="param2" type="xsd:string"></xsd:element>
  14. </xsd:sequence>
  15. </xsd:complexType>
  16. </xsd:schema>
  17. </wsdl:types>
  18. <wsdl:message name="probeOperationRequest">
  19. <wsdl:part name="parameters" type="tns:PROBE_TYPE" />
  20. </wsdl:message>
  21. <wsdl:portType name="probe">
  22. <wsdl:operation name="probeOperation">
  23. <wsdl:input message="tns:probeOperationRequest" name="inputParam" />
  24. </wsdl:operation>
  25. </wsdl:portType>
  26. <wsdl:binding name="probeSOAP" type="tns:probe">
  27. <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
  28. <wsdl:operation name="probeOperation">
  29. <soap:operation soapAction="" />
  30. <wsdl:input name="inputParam">
  31. <soap:body use="literal" />
  32. </wsdl:input>
  33. </wsdl:operation>
  34. </wsdl:binding>
  35. <wsdl:service name="probe">
  36. <wsdl:port binding="tns:probeSOAP" name="probeSOAP">
  37. <soap:address location="http://www.example.org/" />
  38. </wsdl:port>
  39. </wsdl:service>
  40. </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
  1. <wsdl:binding name="probeSOAP" type="tns:probe">


z góry dzięki i pozdrawiam
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 24.08.2025 - 22:46