Buongiorno a tutti e grazie anticipato a chiunque mi risponda per un aiuto,
Ho letto la guida su html.it di Simone D'amico di come creare un servizio soap webservice in php.
Sto utilizzando l'esempio in https://www.html.it/pag/72033/soap-w...erfaccia-wdsl/
dove è evidenziato l'esempio del file wsdl
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="Library"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="Library"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="Library"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<xsd:documentation></xsd:documentation>
<wsdl:types>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="Library">
<xsd:complexType name="book">
<xsd:sequence>
<xsd:element name="name" type="xsd:string"></xsd:element>
<xsd:element name="year" type="tns:integer"></xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
</wsdl:types>
<wsdl:message name="bookRequest">
<wsdl part name="id" type="tns:integer"></wsdl part>
</wsdl:message>
<wsdl:message name="bookResponse">
<wsdl part name="book" type="xsd:book"></wsdl part>
</wsdl:message>
<wsdl portType name="Library">
<wsdl operation name="getBook">
<wsdl:input message="tns:bookRequest"/>
<wsdl iutput message="tns:bookResponse"/>
</wsdl operation>
</wsdl portType>
<wsdl:binding name="Library" type="tns:Library">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl operation name="getBook">
<soap operation soapAction="http://example.com/server.php"/>
<wsdl:input>
<soap:body use="literal" namespace="Library"/>
</wsdl:input>
<wsdl:input>
<soap:body use="literal" namespace="Library"/>
</wsdl:input>
</wsdl operation>
</wsdl:binding>
<wsdl:service name="Library">
<wsdl port binding="tns:Library" name="BookLibrary">
<soap:address location="http://example.com/server.php"/>
</wsdl port>
</wsdl:service>
</wsdl:definitions>
Scusate nel file di esempio wsdl che ho preso dal link in questo post ho dovuto togliere il doppio punto perchè uscivano degli Smiley
ho cambiato http://example.com/server.php con l'indirizzo ip del server http://192.168.70.201/server.php
ho fatto una interrogazione http://192.168.70.201/soap/server.php?wsdl e mi viene esposto correttamente la struttura
Quando effettuo invece una chiamata soap di test da un client esempio SoapUI mi esce questo errore :
Source: http://192.168.70.201/soap/server.php?wsdl
Error: Could not find type 'integer@Library'. Do you mean to refer to the element named integer@http://schemas.xmlsoap.org/soap/encoding/ (in soapEncoding.xsd)?
sono giorni che ci sono sopra e non capisco dove sta il problema
Grazie a tutti
Daniele