Re: SOAP client connecting to .net webservice

[email protected] (Ammarmar)
Newsgroups php.soap
Message-ID <[email protected]>
Dnia 27-08-2007 o 21:32:21 Milo van der Linden <[email protected]> napisał(a):

> $x=new SoapVar($x,SOAP_ENC_OBJECT);
> $y["AuthenticationHeader"]=$x;
> $y=new SoapVar($y,SOAP_ENC_OBJECT);
>
>
> I cannot figure out how to set the namespace parameters!
>

You can specify the namespace (and type name) in SoapVar constructor, e.g:

$x = new SoapVar($x, SOAP_ENC_OBJECT, "AuthenticationHeader",  
"http://www.itworks.nl/");

see manual:

http://php.net/manual/en/function.soap-soapvar-construct.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.