Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [SOAP][WSDL] Problem z widocznością typu własnego, Could not find type ...
haryb
post
Post #1





Grupa: Zarejestrowani
Postów: 137
Pomógł: 0
Dołączył: 9.11.2004
Skąd: Gdańsk

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


WItam,

Mam przykładowego
WSDLa którego testuje SoupUI
Dostaje jednak bład:
Error: Could not find type 'Client2@http://schemas.xmlsoap.org/wsdl/'. Do you mean to refer to the type named Client2@typens (in api.php.xml)?

Nie wiem dlaczego on nie widzi tego typu przy definicji kolejnego ?

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <definitions name="HaryApi"
  3. xmlns="http://schemas.xmlsoap.org/wsdl/"
  4. xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  5. xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
  6. xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
  7. xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
  8. xmlns:http="http://www.w3.org/2003/05/soap/bindings/HTTP/"
  9. xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl">
  10.  
  11. <types>
  12. <xsd:schema targetNamespace="typens">
  13. <xsd:import namespace="http://schemas.xmlsoap.org/wsdl/"/>
  14. <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
  15.  
  16. <xsd:complexType name="Client2">
  17. <xsd:all>
  18. <xsd:element name="Name" type="xsd:string" minOccurs="1" />
  19. </xsd:all>
  20. </xsd:complexType>
  21.  
  22. <xsd:complexType name="Person">
  23. <xsd:all>
  24. <xsd:element name="id" type="xsd:int" minOccurs="0" maxOccurs="1" default="0" />
  25. <xsd:element name="Street" type="Client2" minOccurs="0" />
  26. </xsd:all>
  27. </xsd:complexType>
  28. </xsd:schema>
  29. </types>
  30.  
  31. <message name="AddOper">
  32. <part name="nip" type="xsd:string"/>
  33. <part name="client" type="Person"/>
  34. </message>
  35. </definitions>
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 21.08.2025 - 07:19