AW: Unexpected EOF in prolog problem using CXF 2.5.1 with WebSphere 7.0

2012-01-16 Thread Oliver Wulff
Hi there I have deployed CXF in Websphere successfully. I've tested it with WS-Security and SAML 2.0 also and it works. But you have to add the following dependency to your pom: dependency groupIdorg.apache.servicemix.bundles/groupId

A defect of JAXWS of RPC Literal operation which has xsd:Element message part?

2012-01-16 Thread xuhb
Hi: CXF support RPC Literal operation which has message part point to a xsd:element; But it seems there is a defect; First I generate a JAXWS interface from such a wsdl, and publish the JAXWS as service; If I doesn't specifiy the origical wsdl's location and force CXF create

Re: A defect of JAXWS of RPC Literal operation which has xsd:Element message part?

2012-01-16 Thread xuhb
By the way, I am not sure if JAXWS specification support a RPC-Literal Operation whose message part point to a xsd:element, not to a xsd:type. Does anyone know about it ? - Original Message - From: xuhb x...@tongtech.com To: users@cxf.apache.org Sent: Monday, January 16, 2012 5:17 PM

XSD validation on server side

2012-01-16 Thread Waleed Zedan
Hi, I have added the end point with schema validation: jaxws:endpoint id=slmCallbackInterface implementor=#slmCallbackWebService implementorClass=com.ws.impl.SLMCallbackImpl address=/SLMCallbackInterface jaxws:properties entry key=schema-validation-enabled value=true / /jaxws:properties

Re: XSD validation on server side

2012-01-16 Thread Freeman Fang
Hi, One possible reason is that your server side servicemodel is built from class, but not from the wsdl file, so no chance to load the schema xsds to do the schema validation. Could you add wsdlLocation attribute for your jaxws:endpoint also to see if it helps? Freeman On 2012-1-16, at

Re: XSD validation on server side

2012-01-16 Thread Waleed Zedan
Hi, Yes it is created from class , but the method parameters are annotated properly, should I validate the JAXB objects manually in this case or is there an option in CXF to perform this validation automatically? Thank you. On Mon, Jan 16, 2012 at 1:07 PM, Freeman Fang

Re: XSD validation on server side

2012-01-16 Thread Freeman Fang
Hi, Not all restrictions from xsd can map to the class, even with annotations, like the string length, string content, etc, could you elaborate what kind of validation you want to perform? Freeman On 2012-1-16, at 下午6:25, Waleed Zedan wrote: Hi, Yes it is created from class , but the

Re: Thread Local Storage not working in CXF Interceptors

2012-01-16 Thread Paul Baker
Hi Daniel, Two Questions: Questions: For RR services, is the same thread used for all phases: inbound interceptores, service invokation, outbound? If not, what would be the best pattern to make sure that a context object is available during the entire invokation lifecycle? (Same context

Re: XML Schema and REST

2012-01-16 Thread Sergey Beryozkin
Hi On 13/01/12 21:42, hdave wrote: Thanks for the reply. Would you agree that XML payloads, if they have anything, contain only a reference to a namespace? Yes I guess, from this namespace, one could infer the XML schema, provided there are not 2 or more schemas that constrain the namespace.

Re: Rest, XML, and Links

2012-01-16 Thread Sergey Beryozkin
Hi On 13/01/12 21:46, hdave wrote: I'm new to REST and am trying to get my head around a good way to implement links within my XML document to point to various state transitions (ala HATEOAS). I am currently using JAX-RS to annotate my service classes and JAX-B to annotate my domain objects

Re: Custom interceptors with DOSGi

2012-01-16 Thread Sergey Beryozkin
Does the custom bundle export com.uhg.upm.webservice.interceptor ? Sergey On 13/01/12 22:36, gaygeek wrote: I am trying to configure a custom interceptor for a web service I'm exposing with DOSGi. However, it seems that the interceptor cannot be initialized via annotation, as the

Re: REST WebClient: how to inspect and set eTag headers?

2012-01-16 Thread Sergey Beryozkin
Hi Guy On 15/01/12 16:01, Guy Pardon wrote: Hi, I want to inspect eTag headers in responses from a REST service, to set them on later PUT requests. Any guidelines on how to do this with the CXF WebClient API? You can do something like this: Book book = webClient.get(Book.class); Object

Re: XSD validation on server side

2012-01-16 Thread Waleed Zedan
Hi, Actually only the required and nillable attributes are required, but it doesn't validate the input parameters , although it validates the return types of the web method. We have managed to validate the input parameters using JAXB only Thank you. On Mon, Jan 16, 2012 at 2:15 PM, Freeman

Re: Custom interceptors with DOSGi

2012-01-16 Thread Sergey Beryozkin
Ignore that please, keeping forgetting the cxf bundle does not import custom classes/ I think in DOSGi case, a new property would have to be introduced in time for custom CXF interceptors be picked up Cheers, Sergey On 16/01/12 12:25, Sergey Beryozkin wrote: Does the custom bundle export

Re: Custom interceptors with DOSGi

2012-01-16 Thread gaygeek
Yes--as you said, the export is there in my custom bundle, but the cxf bundle has no way to import it to create the interceptor instance. Are you saying there is currently a way to do this, or that DOSGi will need to be modified to allow custom interceptors? I think you are saying it is not

Re: REST WebClient: how to inspect and set eTag headers?

2012-01-16 Thread Guy Pardon
Brilliant, thanks! Sent from my iPhone On 16 Jan 2012, at 13:34, Sergey Beryozkin sberyoz...@gmail.com wrote: Hi Guy On 15/01/12 16:01, Guy Pardon wrote: Hi, I want to inspect eTag headers in responses from a REST service, to set them on later PUT requests. Any guidelines on how to do

Re: Thread Local Storage not working in CXF Interceptors

2012-01-16 Thread Daniel Kulp
On Monday, January 16, 2012 4:00:35 AM Paul Baker wrote: Hi Daniel, Two Questions: Questions: For RR services, is the same thread used for all phases: inbound interceptores, service invokation, outbound? In the absence of WS-Addressing or WS-RM (which implies WS-Addressing), then yes.

Re: A defect of JAXWS of RPC Literal operation which has xsd:Element message part?

2012-01-16 Thread Daniel Kulp
On Monday, January 16, 2012 5:37:23 PM xuhb wrote: By the way, I am not sure if JAXWS specification support a RPC-Literal Operation whose message part point to a xsd:element, not to a xsd:type. Does anyone know about it ? WS-I Basic profile, the parts in an RPC-Literal style WSDL MUST point to

Re: Custom interceptors with DOSGi

2012-01-16 Thread Daniel Kulp
On Monday, January 16, 2012 7:33:45 AM gaygeek wrote: Yes--as you said, the export is there in my custom bundle, but the cxf bundle has no way to import it to create the interceptor instance. Are you saying there is currently a way to do this, or that DOSGi will need to be modified to allow

AW: Several IDP-STS servers / Resolver approach

2012-01-16 Thread Oliver Wulff
Hi Fran Has the attachment been removed? Maybe zip it before. Thanks -- Oliver Wulff http://owulff.blogspot.comhttp://owulff.blogspot.com/ Solution Architect Talend Application Integration Division http://www.talend.com Von: Francisco Serrano

Re: CXF-java2wsdl-plugin not importing external schema defined in @XmlSchema annotation

2012-01-16 Thread Mordecus
Hi Daniel, I've put together a little test case. If you download the zip archive at this link: http://dl.dropbox.com/u/24296192/JAXWSExample.zip You will find two maven projects inside. The first one, jaxws-example-model, contains a simple Java POJO called Message. The project contains the

Re: Custom interceptors with DOSGi

2012-01-16 Thread Sergey Beryozkin
Dan, thanks for the fix/enhancement, I also updated DOSGi to check for custom interceptors features passed along during the registration/lookup, possibly already instantiated, and also from Declarative Services...for WS RS Just stopped short of also starting the trackers, may be later :-)

Re: WSDL configuration driven from WSDL with Apache CXF Distributed OSGi

2012-01-16 Thread Sergey Beryozkin
The latest build should look much better with respect to Felix update Cheers, Sergey On 12/01/12 15:40, Sergey Beryozkin wrote: On 12/01/12 13:19, bgoetzmann wrote: OK, What do think about these notes: - When I start Felix, I always the exception java.lang.ClassNotFoundException:

Re: CXF DOSGi: Passing JAX-WS properties for maintaining session?

2012-01-16 Thread Sergey Beryozkin
I added the ability to pass context properties for WS RS handlers, add context.properties to a relevant config type and pass a map (during the lookup/registration) Sergey On 17/11/11 12:51, BernieBo wrote: I am trying to pass some properties to the config of a CXF/DOSGi JAX-WS based client in

Re: Custom interceptors with DOSGi

2012-01-16 Thread gaygeek
Dan and Sergey- Thanks for your responses. I locally modified the cxf 2.5.2-SNAPSHOT AnnotationInterceptors class and the interceptor annotations to allow class objects to be set in the annotations as Dan suggested and that will work very well. Instead of needing the classloader to find the

x 509 security token

2012-01-16 Thread cxfnewbie
Hi, I'm trying to add a X.509 security token or binary token in the header of a soap message using CXF. Most examples that I see using x.509 is for signing or encrypting the message with x.509 certificate. I'm interested in adding an X 509 token the same way a SAML token would be added. I

Re: Custom interceptors with DOSGi

2012-01-16 Thread Freeman Fang
Hi, Another general solution to workaround this class.forname issue in OSGi world is create your customer bundle as a fragment bundle, and attach it to the cxf bundle(cxf bundle play the role as a host bundle), so that all fragment bundle resource is available for host bundle. We usually

Re: A defect of JAXWS of RPC Literal operation which has xsd:Element message part?

2012-01-16 Thread xuhb
Thanks Dan. Thanks your help; - Original Message - From: Daniel Kulp dk...@apache.org To: users@cxf.apache.org Cc: xuhb x...@tongtech.com Sent: Monday, January 16, 2012 11:51 PM Subject: Re: A defect of JAXWS of RPC Literal operation which has xsd:Element message part? On Monday,

Re: x 509 security token

2012-01-16 Thread Christopher Riley
Hi Wendy, Not having tried this in CXF but have done this in WLS and spent significant time with WS-Security/XML Digital Signature. Within the XML Digital Signature, there are several ways you can specify the location of a token. If you check out the Apache WSS4J project which is what CXF appears

Re: Several IDP-STS servers / Resolver approach

2012-01-16 Thread Francisco Serrano
Hi Oliver. It look like. I'l try zipping the file first. Thanks. Fran Serrano Pons Senior Developer – mimacom ibérica __ mimacom Ibérica s.l. | Avda. Cortes Valencianas, 39 | 46015 Valencia | España Tel: +34 96.119.96.19