Thanks, that did the trick.  It took a while for me to understand the setup of 
those xml messages :).  First time I'm developing an application who 
communicates with a webservice.  Yesterday I arrived, piece by piece, to a 
solution and this was the missing piece of the puzzle :-).

Thanks a lot for your help guys.

________________________________________
Van: Daniel Kulp [[email protected]]
Verzonden: donderdag 15 april 2010 2:46
Aan: [email protected]
Onderwerp: Re: Authorization for web service

On Wednesday 14 April 2010 10:12:23 am De Bakker, Bjorn wrote:
> No, that's not it.  In our message, we send a Soap Header to provide a
> username and password.  Problem is that I can't find how to add a header
> to the message.  Now I'm looking into an interceptor to make it work, but
> I really don't know how to do this.

See:
http://cxf.apache.org/faq.html#FAQ-HowcanIaddsoapheaderstotherequest%252Fresponse%253F

Dan

>
> XML:
>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:soap="http://lalala"; xmlns:con="http://lalala";> <soapenv:Header>
>       <soap:AuthenticationHeader>
>          <soap:ClientName>CLIENTNAME</soap:ClientName>
>          <soap:UserName>USERNAME</soap:UserName>
>          <soap:Password>PASSWORD</soap:Password>
>       </soap:AuthenticationHeader>
>    </soapenv:Header>
>    <soapenv:Body>
>       <con:GetContactsRequest>
>          <con:ContactSearchCriteria>
>          </con:ContactSearchCriteria>
>       </con:GetContactsRequest>
>    </soapenv:Body>
> </soapenv:Envelope>
>
> ________________________________________
> Van: Glen Mazza [[email protected]]
> Verzonden: woensdag 14 april 2010 15:43
> Aan: [email protected]
> Onderwerp: Re: Authorization for web service
>
> I think you're mixing up transport-layer with message-layer
> security--what's in the soap header or soap body wouldn't matter for
> https:// because it's all encrypted anyway.   You'll probably just need
> simple basic
> authentication for https (Step #7 of
> http://www.jroller.com/gmazza/entry/setting_up_ssl_and_basic).
>
> As for soapUI, I believe there's a Preferences menu where you place in the
> basic auth username and password for https:// for it to work, but am less
> certain here.
>
> HTH,
> Glen
>
> De Bakker, Bjorn wrote:
> > I'm currently developing a client, which has to communicate with a
> > webservice.  This webservice is accessible through https, so we have to
> > provide authentication.
>
> --
> View this message in context:
> http://old.nabble.com/Authorization-for-web-service-tp28241860p28242794.ht
> ml Sent from the cxf-user mailing list archive at Nabble.com.

--
Daniel Kulp
[email protected]
http://dankulp.com/blog

Reply via email to