How to Use http_jetty transport and JettyHTTPDestination from pre-existing embedded Jetty application

2010-02-04 Thread James
Hi, We have a pre-existing application that uses Jetty in embedded form. The existing application doesn't yet support web services, but we want to use CXF to add web service functionality. At application startup we execute lines similar to the following to launch Jetty within our JVM: org.mort

cxf 2.2.6 soap version not consistent in request/response for .Net client

2010-02-04 Thread huidong
I am running CXF 2.2.6 on the server side, with soap binding set to 1.2 for java client, if the incoming request is soap1.1, the response is 1.1; same for 1.2. everything works fine. However, for .Net basicHttpBinding client, the incoming request is soap1.1, but the response from CXF

Re: An invalid security token was provided (Bad UsernameToken Values)

2010-02-04 Thread huidong
i am using the latest 2.2.6. can you elaborate how to pass WSconfig object? my configuration is something like: this way, after i modified WSS4JInInterc

Re: What is so different about CXF with WebSphere 6.1 on AIX?

2010-02-04 Thread adam galloway
We do not have Web Services Feature Pack installed on either Ubuntu or AIX but I have added the manifest entry (DisableIBMJAXWSEngine: true) that was added with fix pack 29. It has had no affect. I've also tried to follow the article on IBM developer works that is linked from the CXF docs and tho

Re: Increasing timeout for

2010-02-04 Thread Daniel Kulp
Should just be something like: http://131.107.153.205/.*";> The name can either be a qname of the portname or a regex pattern of the URL. Dan On Tue February 2 2010 1:10:55 pm Bruno Melloni wrote: > I am having trouble interpreting the available documentation on how to >

Re: enforce correct SOAP headers on request

2010-02-04 Thread Daniel Kulp
On Tue February 2 2010 1:40:38 pm Arik Gorelik wrote: > Hello, > > I am using CXF 2.2.5 and I am seeing an interesting behavior from some of > the client code. In the SOAP Envelope request, the client is able to > specify a completely random namespace and the request header still goes > through,

Re: An invalid security token was provided (Bad UsernameToken Values)

2010-02-04 Thread Daniel Kulp
On Thu February 4 2010 12:31:36 pm huidong wrote: > Dan, > > you are right. there is a setting in the WSSConfig obj to allow accepting > out of spec password. however, WSS4JInInterceptor does not set WSSConfig > before this call: > > wsResult = getSecurityEngine().processSecurityHeader(...) > >

Re: Is it possible to create a STS using CXF?

2010-02-04 Thread Daniel Kulp
On Thu February 4 2010 9:31:06 am marlonguerios wrote: > Hi people, I guess the answer for my question is "no", but I would like to > hear from you if it really isn't possible to create a security token > service using CXF and what would be your suggestions for such a project. Well, I wouldn't sa

Re: How to allow an GET http request against an SOAP ws.

2010-02-04 Thread Daniel Kulp
Well, NORMALLY you cannot, but with CXF, we do allow very simple soap operations to be done via a GET. It would be something like: http://localhost:8080/SFAS/SFAService/sonda?arg0=foo Dan On Thu February 4 2010 3:01:57 pm pablo caballero wrote: > I have an app with a lot of methods (invoked

Re: What is so different about CXF with WebSphere 6.1 on AIX?

2010-02-04 Thread Daniel Kulp
We recently added some updated docs about using CXF with 6.1.0.29 that IBM provided: http://cxf.apache.org/docs/application-server-specific-configuration-guide.html#ApplicationServerSpecificConfigurationGuide-Websphere Can you double check the instructions that are there? Dan On Thu February

Re: What is so different about CXF with WebSphere 6.1 on AIX?

2010-02-04 Thread adam galloway
Just to update here is the list of jars included in WEB-INF/lib aopalliance-1.0.jar asm-2.2.3.jar bcprov-jdk15-1.43.jar commons-beanutils-1.8.1.jar commons-collections-3.2.1.jar commons-dbcp-1.2.2.jar commons-lang-2.4.jar commons-logging-1.1.1.jar commons-pool-1.3.jar cxf-api-2.2.4.jar cxf-common

What is so different about CXF with WebSphere 6.1 on AIX?

2010-02-04 Thread adam galloway
I have a CXF 2.2.4 application running fine in WebSphere 6.1.0.29 on Ubuntu. Using the Application Server Specific Configuration Guide in WebSphere on Ubuntu I simply create a shared library with a classpath value pointing to wsdl4j-1.6.2.jar and add that shared library to a new "application firs

How to allow an GET http request against an SOAP ws.

2010-02-04 Thread pablo caballero
I have an app with a lot of methods (invoked by POST request). I need to add another method and call it via GET request. If a try to call the method from the browser (http://localhost:8080/SFAS/SFAService?_method=sonda) I get the following error: soap:Server No such operat

Re: How to use existing domain objects with CXF

2010-02-04 Thread Daniel Kulp
On Thu February 4 2010 11:25:30 am Anto Paul wrote: > Hi, > How to use existing domain objects with CXF for > marshalling/unmarshalling? In many such cases, you can use the JAXB databinding, in others, you can use our Aegis databinding which handles some additional types that are difficult t

Re: An invalid security token was provided (Bad UsernameToken Values)

2010-02-04 Thread huidong
Dan, you are right. there is a setting in the WSSConfig obj to allow accepting out of spec password. however, WSS4JInInterceptor did not set WSSConfig before this call: wsResult = getSecurityEngine().processSecurityHeader(...) therefore, the securityEngine simply get the default WSSConfig, th

How to use existing domain objects with CXF

2010-02-04 Thread Anto Paul
Hi, How to use existing domain objects with CXF for marshalling/unmarshalling?. Do JAXB has a mapping approach that I can use?. I know that CXF dont support Castor or JIBX. Anto

Re: Tomcat, CXF and Hibernate

2010-02-04 Thread Alex
Hi, I have found another solution, I configure hibernate via spring. In my web.xml I added a additional hibernateContext.xml, but now I run into the problem that I could not found any ApplicationContext from which I can access my dao-bean classes. Is there a Interface which I have to Implemen

Re: Http basic authentication in JAX RS

2010-02-04 Thread SaravananRamamoorthy
Hi Sergey, I tried with MessageContext , MessageContextImpl and SecurityContext. But it always return null. Do we need anything to be configure in web.xml? Regards SaravananRamamoorthy Sergey Beryozkin-2 wrote: > > Please check > > http://cxf.apache.org/docs/debugging-and-logging.html > > a

Re: Is it possible to create a STS using CXF?

2010-02-04 Thread Jonathan Bricker
I'm struggling through this right now. Using a Ping Federate server, it does not lend itself well to the STS client but you can get a token using Pings own APIs and then insert it into the SOAP envelope. Basically, write some interceptors to do this work. Microsoft's ADFS 2.0 is set up that it

Re: Deploying web services in tomcat.

2010-02-04 Thread Ashishz
Hello Sergey, Thank you very much for your suggestion... It worked and my both the problem solved. In CXF2.2.6, by default WadlGenerator class has "useSingleSlashResource" property is true. WadlGenerator wd = new WadlGenerator(); wd.setUseSingleSlashResource(false);

Is it possible to create a STS using CXF?

2010-02-04 Thread marlonguerios
Hi people, I guess the answer for my question is "no", but I would like to hear from you if it really isn't possible to create a security token service using CXF and what would be your suggestions for such a project. Thanks! -- View this message in context: http://old.nabble.com/Is-it-possible-

Re: Customizing method body of wsdl2java generated code

2010-02-04 Thread Anto Paul
Thanks Dan for the velocity template. I use a code generation tool that generates database persistence logic. If I could include call to DAO layer in service impl it will be a cool tool to generate code. Anto On Wed, Feb 3, 2010 at 2:31 AM, Christian Schneider wrote: > Hi Anto, > > normally yo

Re: CXF without data binding

2010-02-04 Thread Anto Paul
Thanks for reply. I am using JAXWS and Provider is right solution. Is it possible to use WSDL2JAVA to generate this class? I checked WSDL2JAVA reference( http://cwiki.apache.org/CXF20DOC/wsdl-to-java.html) but didn't find any info on that. Anto On Wed, Feb 3, 2010 at 2:04 AM, KnutIvar wrote: >

Re: jax:rs client injection

2010-02-04 Thread Sergey Beryozkin
Hi Jason, no problems, thanks for confirming it works for you cheers, Sergey JasonAB wrote: I've successfully created my jax:rs server, and it's running fine. I can create a client manually, using JAXRSClientFactory, but any time I try to create a proxy using Spring and jaxrs:client, I r

Getting SOAP Header in WSDL

2010-02-04 Thread Sharma, Abhishek
I've a web application developed using Spring MVC. The model layer code is written using spring. Now I want to publish the service layer code as Soap based web service and used CXF for the same. This runs fine and I am able to get the WSDL and service running, but the problem is I want to includ