RE: jaxws Provider doesn't allow override of outbound ws addressing headers

2011-09-07 Thread Jesse Pangburn
Debugging through the code illustrates that you can't just set this property on the MessageContext object for the Provider, you must set it on the outbound message object, like this: ((org.apache.cxf.jaxws.context.WrappedMessageContext)messageContext).getWrappedMessage().getExchange().getOutMessa

java first encoding="utf-8"

2011-09-07 Thread Jason Pell
Hi, How do I get a java first web service to include encoding="utf-8" in the ?xml header? Thanks Jason

Re: java.lang.NoSuchMethodError: org.apache.ws.commons.schema.XmlSchemaForm...

2011-09-07 Thread Benson Margulies
Yes, that's what I meant. What version of CXF? Have you looked at the WHICH_JARS file? Are you sure you only have one xmlschema jar? On Wed, Sep 7, 2011 at 6:34 PM, yannick wrote: > Thank you for your reply. > > I looked for the xmlschema 2.0 and didn't find it. Do you mean > xmlschema-core 2.0?

jaxws Provider doesn't allow override of outbound ws addressing headers

2011-09-07 Thread Jesse Pangburn
Hi, I have a jaxws Provider configured to do WS-Addressing and the defaults seem to work fine. However, if I try to override some of the WS-Addressing headers in the MessageContext, it gets ignored. I've tried the following : AddressingProperties wsaServer = new AddressingPropertiesImpl(); Att

Re: java.lang.NoSuchMethodError: org.apache.ws.commons.schema.XmlSchemaForm...

2011-09-07 Thread yannick
Thank you for your reply. I looked for the xmlschema 2.0 and didn't find it. Do you mean xmlschema-core 2.0? I already tried and I received the same result. The SchemaInfo.class fails on this line: isElementQualified = schema.getElementFormDefault().getValue().equals(XmlSchemaForm.QUALIFIED);

Re: java.lang.NoSuchMethodError: org.apache.ws.commons.schema.XmlSchemaForm...

2011-09-07 Thread Benson Margulies
You need 2.0. On Wed, Sep 7, 2011 at 5:46 PM, yannick wrote: > Hi, I receive the following the exception and tried several Xmlschema > versions and always receive this errors. I tried version 1.3.1, 1.4.2, > 1.4.5. > > java.lang.NoSuchMethodError: > org.apache.ws.commons.schema.XmlSchemaForm.getV

java.lang.NoSuchMethodError: org.apache.ws.commons.schema.XmlSchemaForm...

2011-09-07 Thread yannick
Hi, I receive the following the exception and tried several Xmlschema versions and always receive this errors. I tried version 1.3.1, 1.4.2, 1.4.5. java.lang.NoSuchMethodError: org.apache.ws.commons.schema.XmlSchemaForm.getValue()Ljava/lang/String; at org.apache.cxf.service.model.SchemaI

Re: NTLM security between WCF and CXF

2011-09-07 Thread samyem
Hi Daniel, I had not thought about that and now viola - with the policy element taken out of the WSDL manually, the NTLM works even without a "jcifs.Config.registerSmbURLHandler()" under JDK 1.5. So is there a way to get CXF to work with the Policy tags as is in the WSDL? I got the following test c

Re: Initializing beans and session factory types

2011-09-07 Thread Daniel Kulp
On Wednesday, September 07, 2011 2:02:56 PM Barry Hathaway wrote: > Thanks Dan, I'll post a similar question on the FUSE SMX list. Probably better to just post to the us...@servicemix.apache.org list. > I understand your comment about the need to have a > RequestContextListener when using AOP.

Re: Initializing beans and session factory types

2011-09-07 Thread Barry Hathaway
Thanks Dan, I'll post a similar question on the FUSE SMX list. I understand your comment about the need to have a RequestContextListener when using AOP. Now, if instead of using AOP, if I switch to using a @FactoryType(value = FactoryType.Type.Spring, args="sadlServiceProvider") does that chang

Re: ExceptionMapper choosing the wrong mapper

2011-09-07 Thread Alex Porras
On Wed, Sep 7, 2011 at 6:21 AM, Sergey Beryozkin wrote: > Hi Alex > > I think that has to be improved on the CXF side - I'll try to get to it asap > Hi Sergey, Thanks for your reply. Note that the workaround is easy and not too ugly, so rush! :) Regards, Alex

RESTful Service: Problem with @PathParam starting with slashes

2011-09-07 Thread Christian Hartmann
Dear all, I've go the following Path-Annotation for my Delete-Method using REST and CXF 2.4.2 @DELETE @Path("/{userid:.+}/univids/{univid:.+}") public Response deleteUnivId(@PathParam("userid") final String userId, @PathParam("univid") final String univid,

Re: CXF : JAX-RS: support multiple request method designators to one method?

2011-09-07 Thread Sergey Beryozkin
On 07/09/11 11:52, Sergey Beryozkin wrote: Well, you probably need to get ParameterHandler registered to handle such expressions. If they were structured message payloads then JAXB or JSON readers would handle it, but in your case it appears you sent complex JSON expressions as form payloads (in

Re: CXF : JAX-RS: support multiple request method designators to one method?

2011-09-07 Thread Sergey Beryozkin
Well, you probably need to get ParameterHandler registered to handle such expressions. If they were structured message payloads then JAXB or JSON readers would handle it, but in your case it appears you sent complex JSON expressions as form payloads (in POST case at least) - the default Form pr

Re: ExceptionMapper choosing the wrong mapper

2011-09-07 Thread Sergey Beryozkin
Hi Alex On Tue, Sep 6, 2011 at 10:13 PM, Alex Porras wrote: > On Tue, Sep 6, 2011 at 4:12 PM, Alex Porras wrote: > >> What is happening is that when FooException is thrown in the >> application, it is being handled by BarExceptionMapper. > > I believe I have found the solution.  Despite the chil

Re: add attachment to a cxf client

2011-09-07 Thread Sergey Beryozkin
Wow, that seems like to show a combination of CXF JAXRS & JAXWS code in action, nice :-) Sergey On 07/09/11 10:02, opicina wrote: With this code it works: File file = new File(DOC); FileDataSource ds = new FileDataSource(file); List attachments = new ArrayList(); Inte

Re: add attachment to a cxf client

2011-09-07 Thread opicina
With this code it works: File file = new File(DOC); FileDataSource ds = new FileDataSource(file); List attachments = new ArrayList(); InternetHeaders headers = new InternetHeaders(); headers.addHeader("Content-Type", "application/pdf"); headers.addHeader("Content-ID", "d

Multiple services, One ObjectFactory

2011-09-07 Thread Anthony Webster
Hi, I have a number of webservices which share entities. I use the IntelliJ IDEA SoapUI plugin (which uses wsdl2java I presume) to generate java code from wsdls. I place all the request/response objects and the endpoint interface and implementations for each webservice in a separate package (servi

Re: schema validation

2011-09-07 Thread TON
Ok, what if i want to return my custom soap message instead of . -- View this message in context: http://cxf.547215.n5.nabble.com/schema-validation-tp4770364p4777542.html Sent from the cxf-user mailing list archive at Nabble.com.