Header prefix issue

cameron.murray's picture
 I'm having an issue with a header that I need to pass to my WSDL service.. For what ever reason it keeps prefixing ns0 to my header.. This is my code $header = new WSHeader(array( "ns"=>"http://blergh/blergh", "name"=>"AuthenticationHeader", "data"=>array( new WSHeader(array("name" => "ID", "data" => "xxxx")), new WSHeader(array("name" => "Username", "data" => "xxxx")), new WSHeader(array("name" => "Password", "data" => "xxxx"))), ));   By loading up a packet sniffer I can see that the data being sent to the server is: <soapenv:Header><ns0:AuthenticationHeader xmlns:ns0="http://blergh/blergh""><ID>xxx</ID><Password>xxxx</Password><Username>xxxx</Username></ns0:AuthenticationHeader></soapenv:Header> I need it to be: <soapenv:Header><AuthenticationHeader xmlns="http://blergh/blergh""><ID>xxx</ID><Password>xxxx</Password><Username>xxxx</Username><AuthenticationHeader></soapenv:Header> If I add a prefix="" to the WSHeader, it will remove the prefix ns0 but it also removes the xmlns from the AuthenticationHeader Please help!!
nandika's picture

Re: Header prefix issue.

I think this is a bug in the code. Please raise a jira for this. Regards Nandika
cameron.murray's picture

Done.

Done.
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)