Re: PHP 5 soap and XML custom soap header
- From: "Matthew Harvey" <harvtokyo@xxxxxxxxx>
- Date: 15 Sep 2005 21:01:37 -0700
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
.
- Follow-Ups:
- Re: PHP 5 soap and XML custom soap header
- From: Darkstar 3D
- Re: PHP 5 soap and XML custom soap header
- References:
- PHP 5 soap and XML custom soap header
- From: Matthew Harvey
- Re: PHP 5 soap and XML custom soap header
- From: Darkstar 3D
- PHP 5 soap and XML custom soap header
- Prev by Date: Re: Changing values of $_POST considered bad style?
- Next by Date: Re: Programming for bank
- Previous by thread: Re: PHP 5 soap and XML custom soap header
- Next by thread: Re: PHP 5 soap and XML custom soap header
- Index(es):
Relevant Pages
|