Re: Need help generating a response that matches wsdl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.


-- 
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux