Reply to Re: PHP 5 soap and XML custom soap header

Your name:

Reply:


Posted by Matthew Harvey on 09/16/05 07:01

I thank you for your reply, Sorry about the popup page, not sure how
that got in there.
I am currently using the following:
$param = array('Authstuff' => $auth);
$auth = new authstuff('myuser','mypassword');
$authvalues=new SoapVar($auth,SOAP_ENC_OBJECT);
$header = new
SoapHeader("http://schemas.xmlsoap.org/soap/envelope/",notneeded,$authvalues);

$client = new SoapClient(null,
array(
"location" => "http://localhost:8181/devserv",
"uri" => "",
"style" => SOAP_RPC,
"use" => SOAP_ENCODED
));
and getting:
<SOAP-ENV:Header>
<SOAP-ENV:notneeded>
<USER>myuser</USER>
<PASSWORD> mypassword</PASSWORD>
</SOAP-ENV:notneeded>
</SOAP-ENV:Header>

Any idea how to get rid of the ":notneeded" parts, if I put them as
null I get:
Fatal error: SoapHeader::__construct(): Invalid parameters. Invalid
header name.

any help appreciated

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация