Re: Problem with service call in osgi: Unmarshalling Error: unexpected element (uri:"", local:"customers"). Expected elements are (none)

2010-08-26 Thread Christian Schneider
Hi Willem, I am currently trying to recreate the problem at home where I am more flexible in using stuf from the internet. I have created a small bundle that should act as a client for the customerservice from wsdl first example. When doing the service call I get the following problem: or

Re: Moving from Axis to CXF

2010-08-26 Thread kettch
Daniel Kulp wrote: > > Actually, it's on the WebServiceContext. > > context.getUserPrincipal() > > Dan > I found that just as I got your reply. :) The problem is that context.getUserPrincipal() also returns a null object so that doesn't want to work either. Something fishy is going on he

Re: JAX-RS Response.getEntity and Custom Providers

2010-08-26 Thread Sergey Beryozkin
Hi On Thu, Aug 26, 2010 at 9:20 AM, Gary Rudolph wrote: > I have a JAX-RS implementation where I have an interface that returns a > Response object. I'm using a custom provider for protocol buffers. > > The issue is that on the client I'm registering the providers manually > like: > JAXRSClientF

Re: Moving from Axis to CXF

2010-08-26 Thread Daniel Kulp
On Thursday 26 August 2010 5:40:44 pm kettch wrote: > Daniel Kulp wrote: > > MessageContext mc = context.getMessageContext(); > > > > Then one of: > > AuthorizationPolicy policy = > > > > (AuthorizationPolicy)mc.get(AuthorizationPolicy.class.getName()); > > > > or if you want to use JAX-WS sta

Re: Moving from Axis to CXF

2010-08-26 Thread kettch
Daniel Kulp wrote: > > MessageContext mc = context.getMessageContext(); > > Then one of: > > AuthorizationPolicy policy = > (AuthorizationPolicy)mc.get(AuthorizationPolicy.class.getName()); > > or if you want to use JAX-WS standard calls: > > mc.getPrincipal() > > to get the User princip

Re: Setting Http-conduit using spring configuration file

2010-08-26 Thread Daniel Kulp
On Wednesday 25 August 2010 7:05:01 am vijayvaleti wrote: > Hi Dan, > > It is working for me after including following import statements in my > client config file. > > > > > Could you please explain me why we need to add the above imports? When you don't use the impo

Re: Problems with maven generated services and clients

2010-08-26 Thread Daniel Kulp
On Thursday 26 August 2010 5:05:54 am Sean Patrick Floyd wrote: > OK, thanks for your help. > > a) Is there another way for me to generate a wsdl from java code in a build > process (without using jaxws annotations). Probably not. You MAY be able to add a cxf.xml into src/main/resources or some

Re: Moving from Axis to CXF

2010-08-26 Thread Daniel Kulp
MessageContext mc = context.getMessageContext(); Then one of: AuthorizationPolicy policy = (AuthorizationPolicy)mc.get(AuthorizationPolicy.class.getName()); or if you want to use JAX-WS standard calls: mc.getPrincipal() to get the User principal from the HTTP stack and pull the username an

Re: jms server and http client

2010-08-26 Thread Daniel Kulp
On Thursday 26 August 2010 3:20:37 am cooper wrote: > I've been trying to configure a web service with JMS as transport. The > implementation of the web service also has to act as web service client to > an external web service using http as transport. I can get both scenarios > working seperatly b

Re: Help understanding error "the namespace on the "definitions" element, is not a valid SOAP version"

2010-08-26 Thread Daniel Kulp
> > factory = new JaxWsProxyFactoryBean(); > factory.setServiceClass(PortalUserSyncService.class); > factory.setAddress(portal.getUpdateUsersServiceUrl()); > client = (PortalUserSyncService) factory.create(); >

Re: CXF HTTP 1.0 vs HTTP 1.1

2010-08-26 Thread am am
Hi, I am not sure that it is possible to send HTTP1.0 using CXF. The reason I say this is because CXF uses HttpUrlConnection under the covers, and this construct is an HTTP1.1 client. I am not sure if the version can change. The fact that the connection closed after one request I think is irre

Re: XML Web Services Annotation

2010-08-26 Thread fangman0504
Glen, Thanks. I am a fan of your weblogs as I was easily able to use one to create a wsdl first web service using an existing wsdl that needed to be supported but wasn't necessarily easy to work with. I am currently using 2.1.9 to be specific and can't upgrade to 2.2.9 yet because of compatibilit

Re: Help understanding error "the namespace on the "definitions" element, is not a valid SOAP version"

2010-08-26 Thread Max Pimm
I've tried wsdl2java -v to validate the wsdl and it found one problem, the soap:body tag specified a namespace when it shouldn't. However this has not solved the initial error. I am now debugging the source. The error occurs in: org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor li

Re: CXF HTTP 1.0 vs HTTP 1.1

2010-08-26 Thread Henk Flipman
With: HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy(); httpClientPolicy.setAllowChunking(false); httpClientPolicy.setConnection(ConnectionType.CLOSE); HTTPConduit http = (HTTPConduit) client.getConduit(); http.setClient(httpClientPolicy); it stil

CXF HTTP 1.0 vs HTTP 1.1

2010-08-26 Thread skeno
I wonder if it is possible to make CXF send messages using HTTP 1.0 instead of HTTP 1.1 . I've read here http://osdir.com/ml/users-cxf-apache/2010-01/msg00260.html that it can be achieved by disabling chunking and setting connection to close type (which should be default see http://cxf.apache.org

Help understanding error "the namespace on the "definitions" element, is not a valid SOAP version"

2010-08-26 Thread Max Pimm
Hi, i am trying to write a client for web service using cxf. I can use SoapUI as a client with no problems but with cxf i am getting the error in the subject of this mail. What does it mean? That the wsdl does not validate against http://schemas.xmlsoap.org/wsdl/ (the namespace for the defin

Re: AW: AW: Problem with service call in osgi: Unmarshalling Error: unexpected element (uri:"", local:"customers"). Expected elements are (none)

2010-08-26 Thread Willem Jiang
Schneider Christian wrote: Hi Willem, I have not yet used servicemix (at least the 4.x version). I will try with servicemix but my target environment will be eclipse rcp. My colleagues want to call services from a rich client. So I guess even if it works with servicemix it is not a suitable e

Re: Passing session key through soap header

2010-08-26 Thread Dennis Sosnoski
I'd suggest you encrypt the complete UsernameToken, since the performance difference between doing only part and the whole token would probably be minor and encrypting the whole token is better for interoperability. As Dan pointed out in a recent exchange (http://mail-archives.apache.org/mod_mbox/c

Re: generated wadl body type

2010-08-26 Thread Sergey Beryozkin
Hi On Thu, Aug 26, 2010 at 12:39 PM, tapdur wrote: > > Hi, > > with a rest request with a body , how to specify the body type class in a > generated wadl ? via annotation ? > > per ex > > http://.../login > > > > > > witch cxf annoation will i specify the Account class of the body requ

generated wadl body type

2010-08-26 Thread tapdur
Hi, with a rest request with a body , how to specify the body type class in a generated wadl ? via annotation ? per ex http://.../login witch cxf annoation will i specify the Account class of the body request in the generated wadl ? regards Bruno -- View this message in context:

Re: SAML security with Apache CXF

2010-08-26 Thread srinivas thallapalli
Any comments on this thread. -- View this message in context: http://cxf.547215.n5.nabble.com/SAML-security-with-Apache-CXF-tp2650861p2685247.html Sent from the cxf-user mailing list archive at Nabble.com.

LinkageError starting server with CXF

2010-08-26 Thread Cristiano Ghersi
Hello, I'm facing up with a strange issue. I'm using CXF under OSGI (Equinox), using the single bundle lib (cxf-dosgi-ri-singlebundle-distribution-1.2). I imported it into Eclipse Galileo RCP (under Windows Vista), and now it is a plug-in project exactly as my other bundles. When I start

AW: AW: Problem with service call in osgi: Unmarshalling Error: unexpected element (uri:"", local:"customers"). Expected elements are (none)

2010-08-26 Thread Schneider Christian
Hi Willem, I have not yet used servicemix (at least the 4.x version). I will try with servicemix but my target environment will be eclipse rcp. My colleagues want to call services from a rich client. So I guess even if it works with servicemix it is not a suitable environment. What do you mean

Re: Passing session key through soap header

2010-08-26 Thread wservarch
Yes makes sense. Thanks for the help, right now 'am not looking at multiple message exchanges. I've one more query, when you say encrypting UserNameToken with public key you mean to say encrypting only password of the token or complete UserNameToken? -- View this message in context: http://cxf.5

LinkageError starting server with CXF

2010-08-26 Thread Cristiano Ghersi
Hello, I'm facing up with a strange issue. I'm using CXF under OSGI (Equinox), using the single bundle lib (cxf-dosgi-ri-singlebundle-distribution-1.2). I imported it into Eclipse Galileo RCP (under Windows Vista), and now it is a plug-in project exactly as my other bundles. When I start

Re: Passing session key through soap header

2010-08-26 Thread Dennis Sosnoski
Public key (asymmetric) encryption is slower than secret key (symmetric) encryption. But unless I'm misunderstanding your original post, you're saying you would encrypt the secret key using the server's public key, so you'd be using asymmetric encryption anyway. That being the case, you're better o

RE: Problems with maven generated services and clients

2010-08-26 Thread Sean Patrick Floyd
OK, thanks for your help. a) Is there another way for me to generate a wsdl from java code in a build process (without using jaxws annotations). b) Or could you describe what's wrong in the generated wsdl and I'll write a post-processor script that repairs it. Sean -Original Message- Fro

JAX-RS Response.getEntity and Custom Providers

2010-08-26 Thread Gary Rudolph
I have a JAX-RS implementation where I have an interface that returns a Response object. I'm using a custom provider for protocol buffers. The issue is that on the client I'm registering the providers manually like: JAXRSClientFactory.create("http://localhost:/services/rest";, RegistrationRe

jms server and http client

2010-08-26 Thread cooper
I've been trying to configure a web service with JMS as transport. The implementation of the web service also has to act as web service client to an external web service using http as transport. I can get both scenarios working seperatly but as soon as I try to combine things, the http client part