Re: policy Reference URIs

2017-04-17 Thread XiLai Dai
Hi, Phillip, Have you tried using PolicyReference and classpath? like this: {code} http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:cxf="http://cxf.apache.org/core"; xmlns:jaxws="http://cxf.apache.org/jaxws"; xmlns:p="htt

RE: Using SSL with CXF web service

2014-07-09 Thread XiLai Dai
Hi, This exception may because that you had provided a wrong key password (password for alias). Please check again. Regards. Xilai Dai -Original Message- From: Giriraj Bhojak [mailto:girira...@gmail.com] Sent: Thursday, July 10, 2014 5:36 AM To: users@cxf.apache.org Subject: Using SSL

RE: How to access jaxws:properties in a CXF Interceptor

2014-06-25 Thread XiLai Dai
Hi, message.getContextualProperty("myKey") will works for you. Regards. -Original Message- From: Frizz [mailto:frizzthe...@googlemail.com] Sent: Wednesday, June 25, 2014 12:23 PM To: users@cxf.apache.org Subject: How to access jaxws:properties in a CXF Interceptor I have defined a WS

RE: JAX-WS Provider with attachment streaming

2014-06-21 Thread XiLai Dai
Hi, Did you try with these properties on your JAX-WS provider? Regards. Xilai -Original Message- From: zsolt.szloboda [mailto:zsolt.szlob...@gmail.com] Sent: Saturday, June 21, 2014 7:19 PM To: users@cxf.apache.org Subject: JAX-WS Provider with a

RE: java.net.SocketTimeoutException: SocketTimeoutException invoking http://api.ean.com/ean-services/rs/hotel/v3/ping: Read Timeout

2014-05-25 Thread XiLai Dai
Hi, Seems the address in WebClient.create() doesn't match the endpoint which your REST service exposed: Available RESTful services: Endpoint address: http://localhost:7400/ean-services/rs/hotel/v3 WADL : http://localhost:7400/ean-services/rs/hotel/v3?_wadl Regards. -Original Message- F

RE: wsdl2java - Encountered illegal extension attribute 'message'

2014-05-20 Thread XiLai Dai
Regards. Xilai Dai -Original Message- From: Frizz [mailto:frizzthe...@googlemail.com] Sent: Wednesday, May 21, 2014 4:49 AM To: users@cxf.apache.org Subject: wsdl2java - Encountered illegal extension attribute 'message' Hi there, I am using CXF 2.7.7. I have a WSDL that is corre

RE: JAX-RS Security - Authentication

2014-05-12 Thread XiLai Dai
Hi, Please try with these code: @Context private org.apache.cxf.jaxrs.ext.MessageContext mc; .. String userName = mc.getSecurityContext().getUserPrincipal().getName(); .. Regards. Xilai Dai -Original Message- From: Paul Avijit [mailto:paulavi...@yahoo.com

RE: CXF (WS-Security) + SoapUI

2014-04-22 Thread XiLai Dai
ntKeystore.jks Alias: myclientkey Password: ckpass ------- Regards. Xilai Dai

RE: How to call ssl sts client

2014-04-21 Thread XiLai Dai
Hi, Have you already tried to config conduit following the description in https://cxf.apache.org/docs/client-http-transport-including-ssl-support.html ? also the TLS Configuration info can be found here: https://cwiki.apache.org/confluence/display/CXF20DOC/TLS+Configuration Regards. Xilai

RE: distinguishing REST and SOAP in an interceptor

2014-04-21 Thread XiLai Dai
Hi, You can distinguish REST and SOAP by Binding type, for example: boolean isRestMessage(Message message) { return !(message.getExchange().getBinding() instanceof SoapBinding); } Regards. Xilai Dai -Original Message- From: New Groovy [mailto:newtogro...@gmail.com] Sent: Tuesday

RE: customize error messages for bad input requests

2014-04-09 Thread XiLai Dai
Hi, Just for your information. We create XXXExceptionMapper class which implements javax.ws.rs.ext.ExceptionMapper and add it into , for example, In case bad parameter value, the exception (e.g. IllegalParameterException)

RE: How to get Subject (user) from jaxrs context

2014-03-11 Thread XiLai Dai
06 PM To: users@cxf.apache.org Subject: Re: How to get Subject (user) from jaxrs context You can cast the mc.getSecurityContext() to a LoginSecurityContext (if this is applicable). This has a "getSubject()" method. Colm. On Tue, Mar 11, 2014 at 6:09 AM, XiLai Dai wrote: > Hi, > >

How to get Subject (user) from jaxrs context

2014-03-10 Thread XiLai Dai
mc.getSecurityContext().getUserPrincipal().getName()); .. } } Seems only the principlal name can be retrieved from MessageContext, how to get the Subject (user) name from the operation? Thanks! (CXF 2.7.10 used) Thanks. Xilai Dai

SAML token policy combines with Encryp/Sign policy will throw exceptions

2013-09-23 Thread XiLai Dai
Hi, there We have SAML Token (STS) policy defined as below (saml.policy): http://www.w3.org/ns/ws-policy"; xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702";>

RE: How to set a property to Client after it's created from FactoryBean

2013-08-07 Thread XiLai Dai
: users@cxf.apache.org; XiLai Dai Subject: Re: How to set a property to Client after it's created from FactoryBean On Aug 6, 2013, at 11:14 PM, XiLai Dai wrote: > Hi, there > > I got a quick question: how to set a property value to Client after it's > already creat

How to set a property to Client after it's created from FactoryBean

2013-08-06 Thread XiLai Dai
Hi, there I got a quick question: how to set a property value to Client after it's already created from an FactoryBean? ClientFactoryBean clientFactory = new JaxWsClientFactoryBean(); clientFactory. setProperties(...); Client client = clientFactory.create(); Then, how to add a new property name

RE: Plain text password ws-policy

2013-04-24 Thread XiLai Dai
Could you try adding to the element in the WSDL file? And what your callback handler class looks like? Regards. Xilai -Original Message- From: simonlmartin [mailto:si...@cambridgesemantics.com] Sent: Thursday, April 25, 2013 6:11 AM To: users@cxf.apache.org Subject: Plain text password

RE: how to add bus extension to the existing bus on the osgi env?

2013-04-10 Thread XiLai Dai
riginal Message- From: Daniel Kulp [mailto:dk...@apache.org] Sent: Tuesday, April 09, 2013 11:31 PM To: users@cxf.apache.org; XiLai Dai Subject: Re: how to add bus extension to the existing bus on the osgi env? On Apr 9, 2013, at 5:32 AM, XiLai Dai wrote: > Hi, > I've trie

RE: how to add bus extension to the existing bus on the osgi env?

2013-04-09 Thread XiLai Dai
day, April 08, 2013 10:38 PM To: users@cxf.apache.org; XiLai Dai Subject: Re: how to add bus extension to the existing bus on the osgi env? This isn't something that's "easy" to do right now, but it is possible. In your bundle activator, you can do something like:

how to add bus extension to the existing bus on the osgi env?

2013-04-07 Thread XiLai Dai
Hi, We have a CustomerFactoryBeanListener looks like: public class RegistryFactoryBeanListener implements FactoryBeanListener { public void handleEvent(Event ev, AbstractServiceFactoryBean factory, Object... args) { switch (ev) { case CLIENT_CREATED: { // do something

ClassCastException when adding wsa:addressing feature into jaxrs:server

2013-02-17 Thread XiLai Dai
Hi, There is a jaxrs server defined like this in spring: http://common.demo/"; serviceName="serviceNamespace:OrderService"> It works well but will throw ClassCastException when adding wsa:addressing

RE: No any Attachment will throw IndexOutOfBoundsException in org.apache.cxf.jaxrs.ext.MessageContextImpl

2012-09-03 Thread XiLai Dai
his ? Thanks, Xilai -Original Message- From: Sergey Beryozkin [mailto:sberyoz...@gmail.com] Sent: Monday, September 03, 2012 9:16 PM To: users@cxf.apache.org; XiLai Dai Subject: Re: No any Attachment will throw IndexOutOfBoundsException in org.apache.cxf.jaxrs.ext.MessageContextImpl

No any Attachment will throw IndexOutOfBoundsException in org.apache.cxf.jaxrs.ext.MessageContextImpl

2012-08-29 Thread XiLai Dai
Hi, The WADL fragment : .. And code in the implement class: public Response lookupABC(String str) { ... List atts = new LinkedList(); return Resp

How to inject a member object into the class in the bus-extensions.txt

2012-07-12 Thread XiLai Dai
Hi, We have a SomethingListener class like this: public class SomethingListener implements xxx { private MyObj myObj; public void setMyObj(MyObj myObj){ this.myObj = myObj; } } And add this class into the META-INF/cxf/bus-extensions.txt of the bundle. my.SomethingListener::true is there a

RE: How to set wsdlLocation using API

2012-07-10 Thread XiLai Dai
.@apache.org] Sent: Tuesday, July 10, 2012 11:24 AM To: users@cxf.apache.org Cc: XiLai Dai Subject: Re: How to set wsdlLocation using API On Tuesday, July 10, 2012 01:47:36 AM XiLai Dai wrote: > Thanks Dan! > Really don't understand what the meaning of your codes :(

RE: How to set wsdlLocation using API

2012-07-09 Thread XiLai Dai
e.org Cc: XiLai Dai Subject: Re: How to set wsdlLocation using API On Friday, July 06, 2012 01:58:27 AM XiLai Dai wrote: > Thanks Freeman! > Is there any Listener can be implemented at the stage of jaxws > endpoint/client creating? Not easily, no. You COULD create a Bus lifecycle list

RE: How to register ServerLifeCycleListener/ClientLifeCycleListener accoss multi cxf bus?

2012-07-09 Thread XiLai Dai
al Message----- From: XiLai Dai [mailto:xl...@talend.com] Sent: 09 July 2012 07:22 To: users@cxf.apache.org Subject: How to register ServerLifeCycleListener/ClientLifeCycleListener accoss multi cxf bus? Hi, There are impls for ServerLifeCycleListener/ClientLifeCycleListener within one bundle w

How to register ServerLifeCycleListener/ClientLifeCycleListener accoss multi cxf bus?

2012-07-08 Thread XiLai Dai
Hi, There are impls for ServerLifeCycleListener/ClientLifeCycleListener within one bundle with spring configuration: And there has a Service1 project which has a jaxws:endpoint with spring configuration like this: All these bundles can be deployed into OSGi container. My que

RE: How to set wsdlLocation using API

2012-07-05 Thread XiLai Dai
e(new DoubleItImpl()); ep.setWsdlLocation(wsdl.getPath()); ep.publish(); Server server = ep.getServer(); Freeman On 2012-7-5, at 下午2:17, XiLai Dai wrote: > Hi, > > With spring xml configuration, we can set wsdlLocation like this: > wsdlLocation="file

How to set wsdlLocation using API

2012-07-04 Thread XiLai Dai
Hi, With spring xml configuration, we can set wsdlLocation like this: How to set wsdlLocation with API? E.g. I have a ServerLifeCycleListener impl class: public class ServiceListenerImpl implements ServerLifeCycleListener{ public void startServer(Server server) { //set a specific WSDL to s

re: Https policy with spring

2012-01-19 Thread XiLai Dai
f using Jetty. > > Colm. > > On Thu, Jan 19, 2012 at 4:00 AM, XiLai Dai wrote: >> Hello, >> >> We have a jaxws:endpoint defined like this: >> http://my.org/examples/"; >> id="greeter_Https" >>

Https policy with spring

2012-01-18 Thread XiLai Dai
Hello, We have a jaxws:endpoint defined like this: http://my.org/examples/"; id="greeter_Https" implementor="demo.service.Greeter_HttpsImpl" serviceName="tns:Greeter_HttpsService" address="/Gree

About interceptor chain in the security fault case

2012-01-06 Thread XiLai Dai
Hello, We have a interceptor which is used to get operation name and something else. It works for most of use cases but not works with the security fault case. After some debugging, the order of the interceptors like this: org.apache.cxf.ws.policy.PolicyInInterceptor@4db9dc (message.getExchan

RE: How to get both WS-Addresssing and UsernameToken Security take effect?

2012-01-03 Thread XiLai Dai
with a wsp:Optional of "false"? HTH, Glen On 12/30/2011 09:59 PM, XiLai Dai wrote: > Hi, > > We have a service endpoint spring configuration like this: > implementor= ...> > >xmlns:wsa=

How to get both WS-Addresssing and UsernameToken Security take effect?

2011-12-30 Thread XiLai Dai
Hi, We have a service endpoint spring configuration like this: http://cxf.apache.org/ws/addressing"/>

Does the configured WS-Addressing policy require the WSAddressingFeature enabled?

2011-12-02 Thread XiLai Dai
Hello, We have configured the WS-Addressing policy in the wsdl. http://localhost:/soap/CRMServiceProvider/"/> http://www.w3.org/ns/ws-policy";> http://www.w3.org/2007/02/addressing/metadata";>

Wrong transport type from SoapBindingInfo when using JMS transport

2011-11-17 Thread XiLai Dai
Hello, When I added a interceptor try to get something from Message based on the samples/jms_spring_config, I got wrong transport type from SoapBindingInfo. The implementation of the interceptor like this: public void handleMessage(Message message) throws Fault { if (message.getExcha

RE: How to transform from Source(Document) to CXF Message?

2011-08-24 Thread XiLai Dai
cument) to CXF Message? Hi Xilai On Wed, Aug 24, 2011 at 2:44 AM, XiLai Dai wrote: > Hi, there, > > Now, we've implemented a Provide like this: > > @javax.xml.ws.ServiceMode(value = javax.xml.ws.Service.Mode.PAYLOAD) > @javax.xml.ws.WebServiceProvider() >

How to transform from Source(Document) to CXF Message?

2011-08-23 Thread XiLai Dai
Hi, there, Now, we've implemented a Provide like this: @javax.xml.ws.ServiceMode(value = javax.xml.ws.Service.Mode.PAYLOAD) @javax.xml.ws.WebServiceProvider() public class ProviderBase implements javax.xml.ws.Provider { //@javax.jws.WebMethod(exclude=true) public final Source invok

re: How to log service interface name?

2011-03-12 Thread XiLai DAI
(); ... } .. } Regards Xilai Dai -Original Message- From: Fabio souza [mailto:fabio.nogueira.so...@gmail.com] Sent: 2011-3-11 (星期五) 23:31 To: users@cxf.apache.org Subject: How to log service interface name? Hi, I am using cxf to build WS solutions and I'd like t