cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: Consume webservice error in request header ?
Date Fri, 23 Dec 2011 20:41:50 GMT
On Friday, December 23, 2011 6:46:20 AM sebastianv wrote:
> hi, daniel i see in the server , and i have a problem with namespace of
> header
> 
> 
> in the .Net server , i find that the server cant recover the header that i
> mentioned before  , i think that is for the namespace
> "http://P.Autorizaciones.DataContracts/2008/04" and index give me -1
> 
> 
> 
>  int index =
> request.Headers.FindHeader(IDENTIFICADOR1,"http://P.Autorizaciones.DataContr
> acts/2008/04");

Ah.  Easy one then.   Update the QName passed into the CXF Header object to 
include the right namespace.   :-)    I actually should have caught that.   
Headers must be namespace qualified per spec so your code technically would be 
producing invalid SOAP.

Dan


> 
> thanks
> 
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/Consume-webservice-error-in-request-header-
> tp5086333p5097356.html Sent from the cxf-dev mailing list archive at
> Nabble.com.
-- 
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Mime
View raw message