Thanks for the details. But can you answer the following -

How do I create a connection to my secure service ?

I'm using the following lines of code -

QName serviceName = new QName("http://www.atkinsglobal.com/inform/dataaccess";, 
"DataAccessService");
QName portName = new QName("http://www.atkinsglobal.com/inform/dataaccess";, 
"DataAccessPort");            
DataAccessService dataAccessService = new DataAccessService(new 
URL("https://localhost:9095/DataAccessService?wsdl";), serviceName);    
dataAccess = dataAccessService.getPort(portName, DataAccessI.class);

But this doesn't seem to be using CXF to fetch the wsdl file and therefore 
isn't adding security. I've enabled security in parallel to the CXF security 
which seems all wrong. 

The wsdl that I get back from this service call seems to have the address set 
as http:// instead of https:// 

The hello_world_https sample has a local copy of the wsdl file instead of 
requesting it from the server, should I be doing this.

(For more details please see my other emails).

Richard Shaw

¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤

Richard Shaw  
Technical Design Authority - Information Solutions Consultancy  
Intelligent Transport Systems 

Atkins Highways and Transportation 
Woodcote Grove, Ashley Road, Epsom, Surrey, KT18 5BW

Tel: +44 (0) 1372 756407 
Fax: +44 (0) 1372 740055
Mob: 07740 817586 
E-mail: [EMAIL PROTECTED]

www.atkinsglobal.com/its

-----Original Message-----
From: Fred Dushin [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2007 12:41
To: [email protected]
Subject: Re: Talking to secure service

Hi Richard,

Not sure how "bleeding edge" you are, wrt CXF, but the SSL config model is 
about to go a substantial change.  The old config model (configuring TLS 
paramters on a logical WSDL port) had some issues, particularly in container 
environments where you might have multiple WSDLs with the same http(s) address, 
but with different TLS parameters (or policies, if you will).

Cf http://tinyurl.com/2nldwn

Just a "head's up"

-Fred

On Jun 6, 2007, at 9:48 AM, Shaw, Richard A wrote:

> I've secured my service as per the hello_world_https sample but when I 
> try to talk to my service it fails to get the WSDL.
>
> I'm creating my service as follows -
>
> QName serviceName = new QName("http://www.atkinsglobal.com/inform/
> dataaccess", "DataAccessService");
>
> DataAccessService dataAccessService = new DataAccessService(new URL 
> ("http://localhost:9092/ChannelStore?wsdl";), serviceName);
>
> I guess my problem is that my request for the wsdl is being rejected 
> because I'm not asking for it securely.
>
> My client config contains a the following conduit -
>
>   <http:conduit id="{http://www.atkinsglobal.com/inform/dataaccess}
> DataAccessPort.http-conduit">
>
> How should I fix this ? Should I have a copy of the wsdl file locally 
> ?
>
> Richard Shaw
>
> ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤
>
> Richard Shaw
> Technical Design Authority - Information Solutions Consultancy 
> Intelligent Transport Systems
>
> Atkins Highways and Transportation
> Woodcote Grove, Ashley Road, Epsom, Surrey, KT18 5BW
>
> Tel: +44 (0) 1372 756407
> Fax: +44 (0) 1372 740055
> Mob: 07740 817586
> E-mail: [EMAIL PROTECTED]
>
> www.atkinsglobal.com/its
>
>
>
> This email and any attached files are confidential and copyright 
> protected. If you are not the addressee, any dissemination of this 
> communication is strictly prohibited. Unless otherwise expressly 
> agreed in writing, nothing stated in this communication shall be 
> legally binding.
>
> The ultimate parent company of the Atkins Group is WS Atkins plc.   
> Registered in England No. 1885586.  Registered Office Woodcote Grove, 
> Ashley Road, Epsom, Surrey KT18 5BW.
>
> Consider the environment. Please don't print this e-mail unless you 
> really need to.



This message has been scanned for viruses by MailControl - (see 
http://bluepages.wsatkins.co.uk/?6875772)

Reply via email to