cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Freeman Fang <freeman.f...@iona.com>
Subject Re: Migration from Celtix
Date Tue, 19 Sep 2006 05:10:11 GMT
Hi Richard,

May be this method in WSDLServiceFactory how Service is created is useful

public Service create() {
        // use wsdl manager to parse wsdl or get cached definition
       
        Definition definition = null;
        try {
            definition = 
getBus().getExtension(WSDLManager.class).getDefinition(wsdlUrl);
        } catch (WSDLException ex) {
            throw new ServiceConstructionException(new 
Message("SERVICE_CREATION_MSG", LOG), ex);
        }
       
        javax.wsdl.Service wsdlService = definition.getService(serviceName);
        ServiceInfo si = new 
WSDLServiceBuilder(getBus()).buildService(definition, wsdlService);
       
        ServiceImpl service = new ServiceImpl(si);
       
        return service;
    }

Cheers

Freeman

Shaw, Richard A wrote:

>The issue is that I don't have the ServiceImpl. My service is derived from Service (not
ServiceImpl) -
>
>public class ExecuteService extends Service { 
>
>So how do I get at the ServiceImpl ?
>
>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: richard.shaw@atkinsglobal.com
>
>www.atkinsglobal.com/its
>
>-----Original Message-----
>From: Freeman Fang [mailto:freeman.fang@iona.com] 
>Sent: 19 September 2006 05:29
>To: cxf-dev@incubator.apache.org
>Subject: Re: Migration from Celtix
>
>Hi Richard,
>
>1. By means of  ServiceImpl.getService().getServiceInfo() you can get serviceInfo
>
>2. The handler demo should be added soon.
>
>
>Thanks very much
>
>Freeman
>
>Shaw, Richard A wrote:
>
>  
>
>>>I've started to migrate my project from Celtix to CXF with some 
>>>success. I have two outstanding issues -
>>>
>>>1 - how do I override the endpoint address from code. In celtix I was 
>>>doing the following -
>>>
>>>               Map<String, Object> requestContext = ((BindingProvider) port).getRequestContext();
>>>               requestContext.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, DataFetchURL);
>>>               int result = port.execute(); I can see that the 
>>>ServiceImpl class has a ServiceInfo class which contains the details, but I can't
get at it from Service - the delegate is private.
>>>
>>>2 - how do I add handlers. There isn't a sample for this yet.
>>>
>>>After I fix these things I will then have to start thinking about how to migrate
our custom transports (FTP) and bindings (CSV). But they are questions for later.
>>>
>>>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: richard.shaw@atkinsglobal.com
>>>
>>>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.
>>
>> 
>>
>>    
>>
>
>
>--
>Freeman Fang
>Software Engineer
>
>IONA Asia Pacific Software Development Center
>No.2 Floor A Unit Information Center
>Zhongguancun Software Park Haidian District, Beijing, P.R.China
>
>Tel.: +86-10-82825151 -  ex. 551
>Fax: +86-10-8282-5210
>freeman.fang@iona.com
>-------------------------------------------------
>Making Software Work Together TM
>
>
>
>
>This message has been scanned for viruses by MailControl - (see http://bluepages.wsatkins.co.uk/?4318150)
>  
>


-- 
Freeman Fang
Software Engineer

IONA Asia Pacific Software Development Center
No.2 Floor A Unit Information Center
Zhongguancun Software Park Haidian District,
Beijing, P.R.China

Tel.: +86-10-82825151 -  ex. 551
Fax: +86-10-8282-5210
freeman.fang@iona.com
-------------------------------------------------
Making Software Work Together TM




Mime
View raw message