SERPland Flugverkehr/Airtraffic Zürich – Auto Direktimport Dänemark – Disneyland Paris – Legoland Deutschland

24May/110

PHP and PEAR SOAP: How to pass attributes to a webservice operation (xml-wsdl)

Basing a PHP SOAP Client on a webservice’s WSDL is very easy using PEAR’s SOAP package.

Usually you can pass tons of XML ELEMENTS to the webservice. But how to pass XML ATTRIBUTES?

 

Sample XML REQUEST structure:

<airline id=”12”>Air Congo<airline>

 

With PHP PEAR SOAP I was thinking to use it this way:

 

$params = array(“airline" “ => array(“_” => “Air Congo”, “id” => “12”));

$result = $client->getAirline($params);

 

… but unfortunatelly this doesn’t work …

Related Posts:

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

No trackbacks yet.