Re: PHP 5 soap and XML custom soap header



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

.



Relevant Pages

  • Re: Crystal Reports Cascading parameters dont get preserved between postbacks
    ... provide users with ability to "save as" what's embedded inside a popup, ... > HTML headers but it does make sense that the header tags can control this. ... >> When I click export button of a webviewer, it does open a popup window ... >> think it's part of PDF object embedded within a browser. ...
    (microsoft.public.vb.crystal)
  • Re: Crystal Reports Cascading parameters dont get preserved between postbacks
    ... provide users with ability to "save as" what's embedded inside a popup, ... > HTML headers but it does make sense that the header tags can control this. ... >> When I click export button of a webviewer, it does open a popup window ... >> think it's part of PDF object embedded within a browser. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: If null skip/ignore
    ... Vanderghast, Access MVP ... customers, as the auth name is customers, the imp name is users and the ... blank and fill in the third popup it does not give any results even ...
    (microsoft.public.access.queries)
  • Re: when does physical % complete get updated from 0% to 100%?
    ... header you get a small popup. ... Click the hyperlink and you jump straight into ...
    (microsoft.public.project)
  • Re: Javascript includes not recognised
    ... When I do the virtual the alerts fire but the popup menu ... > for the header. ... Isn't this the IIS General Newsgroup? ...
    (microsoft.public.inetserver.asp.general)