Re: get certificate sent in security header to cxf web service

2011-07-18 Thread Jaime Hablutzel Egoavil
Freeman your sample is exactly what I was trying to achieve... and I have been searching for one entire day :S These are setting the order?? getAfter().add(WSS4JInInterceptor.class.getName()); getAfter().add(PolicyBasedWSS4JInInterceptor.class.getName()); I think that these kind of thi

Does CXF support WSDL1.1 HTTP-Binding?

2011-07-18 Thread xuhb
Hi: When I got a WSDL which contains a HTTP-BINDING. 1)Could I write a client to invoke such a webservice using HTTP-BINDING as simple as SOAP Binding? 2)Could I write a service and publish it with a WSDL use HTTP-Binding as simple as SOAP Binding? Thanks any suggestion.

Re: Does CXF support Webservice Http binding?

2011-07-18 Thread xuhb
Thanks Jinglong Wang, I have tried, your suggestion cannot works, there always a Exception( Caused by: org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/wsdl/http/ registered. ); I have check the CXF's Http-Binding 's online document, take a look at the sourc

Re: Create WebService by using CXF

2011-07-18 Thread TimShiu
Thanks a lot for your prompt reply. Actually it is a wsdl file that have used a xsl to transform the layout. If you view the source of the page, you can get the actual wsdl. Anyway, I will visit the site to study the way to generate web service. Many thanks for your help. -- Tim.Shiu -- View t

Re: get certificate sent in security header to cxf web service

2011-07-18 Thread Glen Mazza
On 07/18/2011 02:30 PM, Jaime Hablutzel Egoavil wrote: I have read that I need a second interceptor, but how to set an interceptor and give it lower precedence?? http://www.jroller.com/gmazza/entry/jaxwshandlers_to_cxfinterceptors HTH, Glen Thanks. -- Glen Mazza Application Integratio

Re: Create WebService by using CXF

2011-07-18 Thread Glen Mazza
The link below is not a WSDL; that's a prettily formatted HTML document nice for humans but unusable with any wsdl-to-java generator--hopefully you have an actual WSDL someplace. This link: http://www.jroller.com/gmazza/entry/web_service_tutorial can provide you information on creating your we

Re: NullPointerException when using LoggingInInterceptor

2011-07-18 Thread Daniel Kulp
On Friday, July 15, 2011 12:29:52 AM stlecho wrote: > This solves indeed the issue. Does this mean that the > http://cxf.apache.org/docs/debugging-and-logging.html > http://cxf.apache.org/docs/debugging-and-logging.htm l page is obsolete and > should be replaced by http://cxf.apache.org/docs/confi

Create WebService by using CXF

2011-07-18 Thread TimShiu
Hi, I'm new to CXF and would like to ask a question about how to generate web service in server from a wsdl file. I got a wsdl file from internet and would like to implement the services defined in the wsdl. First of all, I use the wsdl2java function in CXF to generate the Java classes and put i

Re: get certificate sent in security header to cxf web service

2011-07-18 Thread Freeman Fang
Hi, I think you can take a look at [1] as an example. [1]https://svn.apache.org/repos/asf/servicemix/components/trunk/bindings/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/interceptors/JbiJAASInterceptor.java Freeman On 2011-7-19, at 上午6:35, Jaime Hablutzel Egoavil wrote: Or at

Re: Does CXF support Webservice Http binding?

2011-07-18 Thread Jinglong Wang
maybe another... http://apache.org/cxf/binding/http";> On Sun, Jul 17, 2011 at 3:54 PM, xuhb wrote: > Hi: > > Axis2 & .net could publish a PortType with Http-Binding in WSDL. > That's to say: when user write a service business logical, the user could > choose to publish the service interf

Re: Does CXF support Webservice Http binding?

2011-07-18 Thread Jinglong Wang
maybe... On Sun, Jul 17, 2011 at 3:54 PM, xuhb wrote: > Hi: > > Axis2 & .net could publish a PortType with Http-Binding in WSDL. > That's to say: when user write a service business logical, the user could > choose to publish the service interface to be a Soap-Binding Webser

get access to certificate in service

2011-07-18 Thread Jaime Hablutzel Egoavil
Hi I have a web service exposed with cxf with this wsdl: http://service2.ws.service.kprtech.com/"; xmlns:ns1=" http://cxf.apache.org/bindings/xformat"; xmlns:soap=" http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:tns=" http://service2.ws.service.kprtech.com/"; xmlns:wsdl=" http://schemas.xmlsoap.org

Re: Problem with new transform feature

2011-07-18 Thread akuhtz
Hi Sergey Thanks for your reply! Yes I guess one problem is indeed that the headers are handled separately. Please let me know if I can help you in any way because I'm more a beginner with CXF I think I can't really help you on details but I'll test your changes ;-) Cheers Andi -- View this

Re: get certificate sent in security header to cxf web service

2011-07-18 Thread Jaime Hablutzel Egoavil
Or at least, could someone tell me how to add a custom interceptor after WSS4J interceptor to access the signing certificate of a wss signed soap message? On Mon, Jul 18, 2011 at 1:30 PM, Jaime Hablutzel Egoavil < hablutz...@gmail.com> wrote: > Hi I have a web service exposed with cxf with this w

Re: Endpoint.publish returns successfully in junit test but no endpoint exposed.

2011-07-18 Thread Jason Whaley
Additionally, the source code of what I'm working on is publicly available at https://test.kuali.org/svn/rice/trunk . Specifically the module that exhibits this behavior is https://test.kuali.org/svn/rice/trunk/it/core/ . The tests using Endpoint.publish are org.kuali.rice.core.impl.param

Endpoint.publish returns successfully in junit test but no endpoint exposed.

2011-07-18 Thread Jason Whaley
In a specific integration test module of a project I'm working on, we have only three test classes - one test that subclasses a hierarchy of TestCase classes that are responsible for setting up a test harness to run full end to end tests of our app. The other two tests basically take a JAX-WS

Re: Problem with new transform feature

2011-07-18 Thread Sergey Beryozkin
Hi On Mon, Jul 18, 2011 at 1:03 PM, akuhtz wrote: > Hi, > > I was trying to use the new transform feature for CXF > (http://cxf.apache.org/docs/transformationfeature.html) but limited luck > until now. > > It works fine if you try to replace a namespace for a soap body element, > that's the good

Problem with new transform feature

2011-07-18 Thread akuhtz
Hi, I was trying to use the new transform feature for CXF (http://cxf.apache.org/docs/transformationfeature.html) but limited luck until now. It works fine if you try to replace a namespace for a soap body element, that's the good news. But if a namespace is replaced in a soap header element the

Unmarshalling Error: prefix xsd is not bound to a namespace

2011-07-18 Thread Shyamranny
Hi, I have upgraded my web service and now the new webservice uses CXF. When I send my old soap message to the new CXF webservice, i am getting the following response. 'Unmarshalling Error: prefix xsd is not bound to a namespace'. In my soap request, I have the following element. 'Shyam' Here

Re: wsdl:output's message have two parts cause to generate wrong parameter and return type method.

2011-07-18 Thread knightg
i have a friend told me.Don't need to do this.The cxf generate method can be used. the return value will be put into the Holder variable.The wsdl server is not published, So i can't test, and i'm a fresh man to webservice,so i'm confused before.When i can test it, i'll put result in here. If someon

Re: wsdl:output's message have two parts cause to generate wrong parameter and return type method.

2011-07-18 Thread knightg
I find out if i annotate the header part of wsdl:message.All the problem has been fixed. But the wsdl is published by other people, which means that everytime i should check their wsdl file and make the change, then generate my code.In doNet the wsdl can be used directly and auto-generate what i wa

wsdl:output's message have two parts cause to generate wrong parameter and return type method.

2011-07-18 Thread knightg
I use cxf wsdl2java to generate client code.but the method GetPaxListByFlight which generate to be void.the output thing became into the method parameters. below is the part of the wsdl and the source code generated.Pls help me.Thank you. WSDL: