Web студия "GrandView"
  Главная   Написать Контакты
   
   
О проекте
Руководство php
 

SoapParam->__construct()

(no version information, might be only in CVS)

SoapParam->__construct() --  SoapParam constructor

Описание

class SoapParam {

__construct ( mixed data, string name )

}

Constructs a new SoapParam object.

Список параметров

data

The data to pass or return. You can pass this parameter directly as PHP value, but in this case it will be named as paramN and the SOAP Service may not understand it.

name

The parameter name.

Примеры

Пример 1. Some examples

<?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()
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: Sat, 27 Jan 2007
 
 
Новости
11 июля 2007
Сайт запущен
© 2007 info@grandviewstudio.com

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/sites/grandviewstudiocom/www/65f67d67a94ad980786580ae69e11c07/sape.php on line 324

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/sites/grandviewstudiocom/www/65f67d67a94ad980786580ae69e11c07/sape.php on line 330
Z058440144362 Z348613067571