Hi all,
I've decided to post this since it may be helpful, I've spend a couple of days trying to do this.
In order to use wsdl's specified faults with complex types, i.e:
WSDL definitions:
(xsd:schema namespace, ns1 = target namespace)
WSDL messages:
WSDL port type:
....
You have to specify the response in the detail parameter as an array corresponding the tag names.
PHP Code:
<?phpfunctionoperationTest ($request_param...) {// ...$array_details= array("detail1"=>"Explanation 1","detail2"=>"Explanation 2");
return newSoapFault("Server","example fault string",null,$array_details,"FaultSpecified");
}$server= newSOAPServer("handmade.wsdl");$server->addFunction("operationTest");$server->handle();?>
that should respond something like this:
SOAP-ENV:Server
example fault string
Explanation 1
Explanation 2
I Hope it helps,
Federico.