Re: About accessing CXF Webservice

2013-02-25 Thread Daniel Kulp

On Feb 23, 2013, at 1:58 AM, Dhiego Abrantes de Oliveira Martins 
 wrote:

> Hi,
> 
> I'm trying to access my cxf webservice running in felix container.
> 
> Code to try access:
> 
> JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
> 
> factory.getInInterceptors().add(new LoggingInInterceptor());
> factory.getOutInterceptors().add(new LoggingOutInterceptor());
> factory.setServiceClass(AdderService.class);
> factory.setAddress("http://localhost:9090/adder";);
> AdderService client = (AdderService) factory.create();

The response message is sending the "return" element as a fully namespace 
qualified element.  That's not the default for JAX-WS.   Can I see your 
@WebResult annotation on the add method?   It likely needs to have the 
targetNamespace attribute added to it.

Dan


> 
> *String a = client.add();*
> System.out.println(a);
> 
> So...
> 
> When the bold line is executed, the service is accessed and executed (the
> service writes a word in console when called) successfuly. However, the
> value returned is null and I dont understand why...
> 
> The following message is written in console when the bold line above is
> executed:
> 
> Fev 23, 2013 3:50:44 AM
> org.springframework.context.support.AbstractApplicationContext
> prepareRefresh
> INFO: Refreshing org.apache.cxf.bus.spring.BusApplicationContext@6d36d73:
> display name [org.apache.cxf.bus.spring.BusApplicationContext@6d36d73];
> startup date [Sat Feb 23 03:50:44 BRT 2013]; root of context hierarchy
> Fev 23, 2013 3:50:44 AM org.apache.cxf.bus.spring.BusApplicationContext
> getConfigResources
> INFO: No cxf.xml configuration file detected, relying on defaults.
> Fev 23, 2013 3:50:44 AM
> org.springframework.context.support.AbstractApplicationContext
> obtainFreshBeanFactory
> INFO: Bean factory for application context
> [org.apache.cxf.bus.spring.BusApplicationContext@6d36d73]:
> org.springframework.beans.factory.support.DefaultListableBeanFactory@7c9aff86
> Fev 23, 2013 3:50:44 AM
> org.springframework.beans.factory.support.DefaultListableBeanFactory
> preInstantiateSingletons
> INFO: Pre-instantiating singletons in
> org.springframework.beans.factory.support.DefaultListableBeanFactory@7c9aff86:
> defining beans
> [cxf,org.apache.cxf.bus.spring.BusApplicationListener,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.apache.cxf.configuration.Configurer,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.endpoint.ServiceContractResolverRegistry,org.apache.cxf.jaxws.context.WebServiceContextResourceResolver,org.apache.cxf.jaxws.context.WebServiceContextImpl,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,org.apache.cxf.binding.xml.XMLBindingFactory,org.apache.cxf.ws.addressing.policy.AddressingAssertionBuilder,org.apache.cxf.ws.addressing.policy.AddressingPolicyInterceptorProvider,org.apache.cxf.ws.addressing.policy.UsingAddressingAssertionBuilder,org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder,org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder,org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider,org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory];
> root of factory hierarchy
> Fev 23, 2013 3:50:45 AM
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean
> buildServiceFromClass
> INFO: Creating Service {
> http://adder.remote.ipojo.felix.apache.org/}AdderServiceService from class
> org.apache.felix.ipojo.remote.adder.AdderService
> Fev 23, 2013 3:50:47 AM
> org.apache.cxf.interceptor.LoggingOutInterceptor$LoggingCallback onClose
> INFO: Outbound Message
> ---
> ID: 1
> Address: http://localhost:9090/adder
> Encoding: UTF-8
> Content-Type: text/xml
> Headers: {SOAPAction=[""], Accept=[*/*]}
> Payload: http://schemas.xmlsoap.org/soap/envelope/";>http://adder.remote.ipojo.felix.apache.org/"/>
> --
> Fev 23, 2013 3:50:47 AM org.apache.cxf.interceptor.LoggingInInterceptor
> logging
> INFO: Inbound Message
> 
> ID: 1
> Encoding: UTF-8
> Content-Type: text/xml;charset=UTF-8
> Headers: {content-type=[text/xml;charset=UTF-8], Content-Length=[231],
> Server=[Jetty(7.x.y-SNAPSHOT)]

RE: [VOTE] - Release Apache Fediz 1.0.3

2013-02-25 Thread Beucher Thierry
+1

TBR

-Message d'origine-
De : Oliver Wulff [mailto:owu...@talend.com]
Envoyé : mercredi 20 février 2013 15:36
À : dev@cxf.apache.org; cohei...@apache.org
Objet : RE: [VOTE] - Release Apache Fediz 1.0.3


+1

Oli


From: Colm O hEigeartaigh [cohei...@apache.org]
Sent: 19 February 2013 18:05
To: dev@cxf.apache.org
Subject: [VOTE] - Release Apache Fediz 1.0.3

This is a vote to release Apache Fediz 1.0.3. This is a bug-fix release with an 
upgraded CXF 2.6.6 dependency.

Release notes:

https://issues.apache.org/jira/browse/FEDIZ/fixforversion/12323485

SVN tag:

http://svn.apache.org/viewvc/cxf/fediz/tags/fediz-1.0.3/

Artifacts:

https://repository.apache.org/content/repositories/orgapachecxf-267/

Here is my +1.

Colm.


--
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com


Ce message et les pièces jointes sont confidentiels et réservés à l'usage 
exclusif de ses destinataires. Il peut également être protégé par le secret 
professionnel. Si vous recevez ce message par erreur, merci d'en avertir 
immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant 
être assurée sur Internet, la responsabilité d'Atos ne pourra être recherchée 
quant au contenu de ce message. Bien que les meilleurs efforts soient faits 
pour maintenir cette transmission exempte de tout virus, l'expéditeur ne donne 
aucune garantie à cet égard et sa responsabilité ne saurait être recherchée 
pour tout dommage résultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for 
the addressee; it may also be privileged. If you receive this e-mail in error, 
please notify the sender immediately and destroy it. As its integrity cannot be 
secured on the Internet, the Atos liability cannot be triggered for the message 
content. Although the sender endeavours to maintain a computer virus-free 
network, the sender does not warrant that this transmission is virus-free and 
will not be liable for any damages resulting from any virus transmitted.