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 ?
<?xml version="1.0" encoding="UTF-8"?> <definitions name="HaryApi" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:http="http://www.w3.org/2003/05/soap/bindings/HTTP/" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"> <types> <xsd:schema targetNamespace="typens"> <xsd:import namespace="http://schemas.xmlsoap.org/wsdl/"/> <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/> <xsd:complexType name="Client2"> <xsd:all> <xsd:element name="Name" type="xsd:string" minOccurs="1" /> </xsd:all> </xsd:complexType> <xsd:complexType name="Person"> <xsd:all> <xsd:element name="id" type="xsd:int" minOccurs="0" maxOccurs="1" default="0" /> <xsd:element name="Street" type="Client2" minOccurs="0" /> </xsd:all> </xsd:complexType> </xsd:schema> </types> <message name="AddOper"> <part name="nip" type="xsd:string"/> <part name="client" type="Person"/> </message> </definitions>