
Fatal error: Uncaught SoapFault exception: [HTTP] Internal Server Error in /var/www/Test/Soap.php:7 Stack trace: #0 [internal function]: SoapClient->__doRequest('__call('hello', Array) #2 /var/www/Test/Soap.php(7): SoapClient->hello(Array) #3 {main} thrown in /var/www/Test/Soap.php on line 7
Natomiast gdy zwracam string'a normalnie go wyświetla.
Ktoś byłby tak miły i wytłumaczyłby mi o co chodzi?
Poniżej załączam plik wsdl.
<?xml version="1.0" encoding="UTF-8" ?> <definitions name="HelloWebService" targetNamespace="urn:hellowebservice" xmlns:tns="urn:hellowebservice" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/"> <types> <xsd:schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:hellowebservice"> <xsd:complexType name="ArrayOfString"> <xsd:complexContent> <xsd:restriction base="soapenc:Array"> <xsd:attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]" /> </xsd:restriction> </xsd:complexContent> </xsd:complexType> </xsd:schema> </types> <message name="helloRequest"> <part name="name" type="xsd:ArrayOfString" /> </message> <message name="helloResponse"> <part name="return" type="xsd:ArrayOfString" /> </message> <portType name="HelloService"> <operation name="hello"> <input message="tns:helloRequest"/> <output message="tns:helloResponse"/> </operation> </portType> <binding name="HelloServiceBinding" type="tns:HelloService"> <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <operation name="hello"> <soap:operation soapAction="urn:arnleadservicewsdl#hello" style="rpc"/> <input> <soap:body use="encoded" namespace="urn:hellowebservice" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:hellowebservice" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> </binding> <service name="HelloService"> <port name="HelloServicePort" binding="tns:HelloServiceBinding"> <soap:address location="http://hello.pl/api/soap" /> </port> </service> </definitions>