Newbie Question - web.xml or cxf-servlet.xml and multiple wars

2010-07-13 Thread jaybytez
1) The wsdl_first example contains a cxf-servlet.xml and server-applicationContext.xml, while the cxf-jaxws-javafirst archetype creates a project with a beans.xml and web.xml file. Is it an either or approach? If you pair a Spring applicationContext.xml with a cxf-servlet.xml, then do you not ne

Re: Invoking Web Service from within Camel Component using CXF -- No conduit initiator found error

2010-07-13 Thread Daniel Kulp
What does your spring context file look like? You may need to import the cxf-extension-http-jetty.xml thing as well. Dan On Monday 12 July 2010 11:51:27 am mindchi wrote: > Hi, > > I'm creating a Camel component from which I want to invoke a web service > using CXF. I'm using plain CXF as opp

Re: Problem using SAML token profile to access a Metro web service

2010-07-13 Thread Glen Mazza
Sure, I'll enter a JIRA ticket with a test case and test web service to make it easy as possible to fix. Thanks, Glen Daniel Kulp wrote: > > It definitely sounds like a bug in CXF. Probably not WSS4J. For the > IssuedTokens, I specifically had to add code in wss4j to output the # in > the

Re: Problem using SAML token profile to access a Metro web service

2010-07-13 Thread Daniel Kulp
It definitely sounds like a bug in CXF. Probably not WSS4J. For the IssuedTokens, I specifically had to add code in wss4j to output the # in the URI so it's most likely, in this case, need to check the places it's setting to CUSTOM_* and change it to the appropriate KEY_IDENTIFIER version.

Re: soap with attachments mime dime

2010-07-13 Thread Daniel Kulp
On Tuesday 13 July 2010 5:38:54 am erskine wrote: > Hi. > > I tried putting my attachments using > MessageContext.OUTBOUND_MESSAGE_ATTACHMENTS or using Message.Attachments. > I can see the attachments in the requestContext, but they do not get > automatically added to the message object's attachm

Re: XSLTJaxbProvider: getting TransformerConfigurationException: Templates object was not created by Saxon

2010-07-13 Thread Jason Coon
Thanks for your response, Sergey. I did try using an empty XSLT template, just to make sure it's not a problem with the file. I got the same error. I haven't tried configuring it from Spring, as we're not currently using it. I'll see if it's possible in our project. If there's any more inform

Problem using SAML token profile to access a Metro web service

2010-07-13 Thread Glen Mazza
Hello, using the CXF's STSClient[1] I've successfully been able to request a token against a Metro STS[2], but when I subsequently call the web service (also [2]) using that token I get an error back from the Metro web service: wsse:InvalidSecurityToken unsupported directreference ValueType http

Re: XSLTJaxbProvider: getting TransformerConfigurationException: Templates object was not created by Saxon

2010-07-13 Thread Sergey Beryozkin
Hi It's difficult to help without having some more info. Does it work when the provider is configured from Spring ? Can it be something specific to a particular XSLT template ? Does it work if you just have an empty , may be with an identity transform only ? cheers, Sergey On Tue, Jul 13, 2010

Re: [JAX-RS] Schema validation

2010-07-13 Thread Sergey Beryozkin
Hi The current workaround is to list all the schemas upfront in the right order, ex, if A.xsd imports B.xsd & C.xsd then B.xsd & C.xsd should be listed first (in any order) and A.xsd should be listed last. For example, this schema : http://svn.apache.org/repos/asf/cxf/trunk/systests/jaxrs/src/tes

Re: Invalid WSDL with a Jax-ws schemaLocation (XSD) specified

2010-07-13 Thread Glen Mazza
Well, so much for that--ASM is actually incorporated by CXF, and is used for parsing annotations on SEI's: from https://cwiki.apache.org/confluence/display/CXF20DOC/2.1+Migration+Guide, quote: ASM jar: The JAX-WS frontend now "requires" asm 2.x or 3.x to be able to process some of the JAXB anno

Re: JAXB Exception: Class not known to this context

2010-07-13 Thread Dan King
- Original Message > From: Glen Mazza > To: users@cxf.apache.org > Sent: Tue, July 13, 2010 1:19:14 PM > Subject: Re: JAXB Exception: Class not known to this context > > > A Google on "nor any of its super class is known to this context", returns > over 6000 hits, if you add CXF to the

Re: XSLTJaxbProvider: getting TransformerConfigurationException: Templates object was not created by Saxon

2010-07-13 Thread Jason Coon
Yeah, I've spent the last day searching and haven't found anything of use. I understand you get a lot of posts from people who haven't searched on their own, but I really did try. Any assistance anyone could provide would be greatly appreciated. Thanks! -- View this message in context: http:/

Re: soap with attachments mime dime

2010-07-13 Thread Glen Mazza
erskine wrote: > > I tried putting my attachments using > MessageContext.OUTBOUND_MESSAGE_ATTACHMENTS or using Message.Attachments. > I can see the attachments in the requestContext, but they do not get > automatically added to the message object's attachment collection. So a > call to message

Re: JAXB Exception: Class not known to this context

2010-07-13 Thread Glen Mazza
A Google on "nor any of its super class is known to this context", returns over 6000 hits, if you add CXF to the search you get almost 3500. Any answer for you there? Glen dan0 wrote: > > Hi all, > > When I call a particular restful service method I get the following error, > anyone know wh

Re: XSLTJaxbProvider: getting TransformerConfigurationException: Templates object was not created by Saxon

2010-07-13 Thread Glen Mazza
I don't know about this issue, but I'd check some of the 500+ Google responses to a search on "Templates object was not created by Saxon" to see if the answer is there. Glen Jason Coon wrote: > > I'm trying to configure XSLTJaxbProvider programmatically. When I attempt > to access my REST ser

Re: dynamic policy on endpoints (not clients)?

2010-07-13 Thread Glen Mazza
The WSS4J interceptors (https://cwiki.apache.org/CXF20DOC/ws-security.html) are not automatically activated if you're using WS-Policy/WS-Security Policy--different interceptors are used there. So you'll need to explicitly attach the WSS4J policy interceptors to your client and/or service if you w

Re: writing SSL webservice client

2010-07-13 Thread Glen Mazza
It sounds like you have it correct, but it's odd that you didn't need to put the server's public key in your client JDK's cacerts file. Here's what I have on the issue: http://www.jroller.com/gmazza/entry/setting_up_ssl_and_basic Glen siva naresh wrote: > > Hi All, > > I have written a java

Re: Invalid WSDL with a Jax-ws schemaLocation (XSD) specified

2010-07-13 Thread Glen Mazza
Some more homework seems needed here. Is ASM part of CXF by default, or something you added in? It's unlikely that ASM has anything to do with the web service provider's on-the-fly WSDL generation process, so the issue is quite possibly a buggy dependency that ASM is dragging in (Xerces is very

writing SSL webservice client

2010-07-13 Thread siva naresh
Hi All, I have written a java client that invoke http webservice and it works alright. The requirements are now to make the communication secured. server part is being done by a different team and they are planning to complete in the next 10 days. All I know from the server team is : 1. The se

Re: soap with attachments mime dime

2010-07-13 Thread erskine
Hi. I tried putting my attachments using MessageContext.OUTBOUND_MESSAGE_ATTACHMENTS or using Message.Attachments. I can see the attachments in the requestContext, but they do not get automatically added to the message object's attachment collection. So a call to message.getAttachments() return

Re: dynamic policy on endpoints (not clients)?

2010-07-13 Thread Ravi Luthra
I've just tried the easy way, but I'm finding that the policy I've set (using the policy builder getting a Policy neethi object) isn't being respected after that. I think it has something to do with the WSSJ policy interceptor not running. Could this be my problem? Thanks Ravi On Sat, Jul 10, 201

XSLTJaxbProvider: getting TransformerConfigurationException: Templates object was not created by Saxon

2010-07-13 Thread Jason Coon
I'm trying to configure XSLTJaxbProvider programmatically. When I attempt to access my REST service, I get the following exception: exception: javax.xml.transform.TransformerConfigurationException: Templates object was not created by Saxon javax.ws.rs.WebApplicationException: javax.xml.transform

Re: Invalid WSDL with a Jax-ws schemaLocation (XSD) specified

2010-07-13 Thread Tom
Thanks for your answer, Glen. So, If I understand well, there is definitely a bug when ASM and Schema Location are both used. I will create an issue on the CXF jira about ASM/SchemaLocation. Thanks for the hint on using the maven codegen plugin. I will use it to generate the DTOs (instead of the