How to define a SoapVar namespace?
问题 I need to have this node in my SOAP Request (using 1.1): <CredentialsHeader xmlns="http://www.url.com/Services/P24ListingService11" <EMail>ricky@email.net</EMail> <Password>password</Password> </CredentialsHeader> So I have the following PHP: $client = new SoapClient("https://exdev.www.example.com/Services/example.asmx?WSDL", array( "trace" => 1, "exceptions" => 0, "cache_wsdl" => 0, 'soap_version' => SOAP_1_1 ) ); $CredentialObject = new SoapVar(array('EMail' => 'ricky@email.net', 'Password'