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

[email protected] ("nick.weavers") Wed, 6 Oct 2010 01:14:48 -0700 (PDT)
Newsgroups php.soap
Message-ID <[email protected]>
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.