PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

SoapServer->addFunction()> <SoapHeader->__construct()
Last updated: Fri, 10 Oct 2008

view this page in

SoapParam->__construct()

(No version information available, might be only in CVS)

SoapParam->__construct() SoapParam-Konstruktor

Beschreibung

SoapParam
__construct ( mixed $data , string $name )

Erzeugt ein neues SoapParam-Objekt.

Parameter-Liste

data

Die Daten die übergeben oder zurückgegeben werden. Die Werte können auch direkt als PHP-Wert übergeben werden. In diesem Fall werden sie mittels paramN benannt und der SOAP-Service könnte Probleme mit der Interpretation bekommen.

name

Parametername.

Beispiele

Beispiel #1 Beispiele

<?php
$client 
= new SoapClient(null,array('location' => "http://localhost/soap.php",
                                    
'uri'      => "http://test-uri/"));
$client->SomeFunction(new SoapParam($a"a"),
                      new 
SoapParam($b"b"),
                      new 
SoapParam($c"c"));
?>



add a note add a note User Contributed Notes
SoapParam->__construct()
barryking93 at gmail dot com
05-Dec-2007 02:42
You have to use SoapVar instead of SoapParam if you want it to do something fancy like using different opening and closing tags.  I ran into this using the SOAP API for Zimbra.
Jeremy
12-Jul-2007 08:31
Is there anyway to create a SOAP parameter like:

<a n="something">DATA</a>

If I try to form a param using the following code the resulting request is:

Code: SoapParam("DATA", "a n=\"something\"");
Result: <a n="something">DATA</a n="something">

This is giving me an error from the SOAP server because its expecting a properly formed closing tag without the encapsulated attribute.

SoapServer->addFunction()> <SoapHeader->__construct()
Last updated: Fri, 10 Oct 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites