Re: [SOAP] Need help generating a response that matches wsdl

From: Date: Wed, 06 Oct 2010 08:14:48 +0000
Subject: Re: [SOAP] Need help generating a response that matches wsdl
References: 1  Groups: php.soap 
Request: Send a blank email to php-soap+get-3112@lists.php.net to get a copy of this message
It appears that the response array should not contain the top output wsdl message element, but start with the first child element.... changing my server to the following solved my problem: [quote] function ConsumeLead($data) $response = array('ConsumeLeadResult' => array( 'LeadReceived' => 'true' ) ); return $response; } [/quote] The response is now working: [quote] Response: <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.paaleads.com/LeadConsumerService/"><SOAP-ENV:Body><ns1:ConsumeLeadResponse><ns1:ConsumeLeadResult><ns1:LeadReceived>true</ns1:LeadReceived></ns1:ConsumeLeadResult></ns1:ConsumeLeadResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> [/quote] That only took me 4 hours to solve using the Monte Carlo problem solving technique %-| -- View this message in context: http://old.nabble.com/Need-help-generating-a-response-that-matches-wsdl-tp29890878p29894412.html Sent from the Php - Soap mailing list archive at Nabble.com.

« previous php.soap (#3112) next »