integration test with Spring runner and JAXRSServerFactoryBean seems to fail to connect to jetty

2011-09-08 Thread KARR, DAVID
I've built unit tests with JAXRSServerFactoryBean, but I've typically used the VerboseMockitoJUnitRunner. I'm now trying to build an integration test using SpringJUnit4ClassRunner, where the service I want to test is injected from the Spring context. In the past, I would have a static "init()"

Re: JAX-RS: Specify namespace prefix in responses

2011-09-08 Thread Raphael Vullriede
Hi Sergey, On 09/08/2011 11:27 PM, Sergey Beryozkin wrote: > Hi Raphael > > I've added a namespacePrefixes property to JAXBElementProvider, so > starting from 2.4.3 it will be easier to customize the prefixes when > really needed. Thanks a lot! I'll try with the next snapshot. > I also tried J

Re: JAX-RS: Specify namespace prefix in responses

2011-09-08 Thread Sergey Beryozkin
Hi Raphael I've added a namespacePrefixes property to JAXBElementProvider, so starting from 2.4.3 it will be easier to customize the prefixes when really needed. I also tried JAXRSDataBindingTest (in systest/jaxrs) and updated the relevant spring config to add a property to the databinding the

Re: RESTful Service: Problem with @PathParam starting with slashes

2011-09-08 Thread Sergey Beryozkin
Hi On 07/09/11 14:19, Christian Hartmann wrote: 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,

NTLM impersonation or security delegation

2011-09-08 Thread Ilyushonak Barys
Hi, guru. I would like to implement http web service proxy for Microsoft SharePoint Web Service. In general, the idea looks like Client (IE Web Browser) -> CXF Web Service (linux) -> Microsoft SharePoint Web Service (IIS). The question is: Is it possible to implement NTLM impersonation in CX

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

2011-09-08 Thread yannick
Everyone thanks for the help my client works :) -- View this message in context: http://cxf.547215.n5.nabble.com/java-lang-NoSuchMethodError-org-apache-ws-commons-schema-XmlSchemaForm-tp4780240p4782897.html Sent from the cxf-user mailing list archive at Nabble.com.

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

2011-09-08 Thread yannick
Dan, I updated to 2.4.2 like you recommended and it solved the problem. Know I'm on the next error: No signature username found. -- View this message in context: http://cxf.547215.n5.nabble.com/java-lang-NoSuchMethodError-org-apache-ws-commons-schema-XmlSchemaForm-tp4780240p4782590.html Sent fr

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

2011-09-08 Thread Daniel Kulp
On Thursday, September 08, 2011 1:21:46 AM yannick wrote: > I'm using cxf 2.2.5. I debugged it and I noticed that he goes in the > cxf-api-2.2.5 jar and not in the xmlschema-core 2.0 jar. Is cxf-api necssary > as jar? With that old of a version of CXF, you would need XmlSchema 1.4.x, not the 2.0

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

2011-09-08 Thread Daniel Kulp
On Thursday, September 08, 2011 6:07:15 AM yannick wrote: > Can someone tell me where I can find the WHICH_JARS file? In the lib directory of the CXF kit download. Dan > > > > -- > View this message in context: > http://cxf.547215.n5.nabble.com/java-lang-NoSuchMethodError-org-apache-ws-c > o

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

2011-09-08 Thread yannick
Can someone tell me where I can find the WHICH_JARS file? -- View this message in context: http://cxf.547215.n5.nabble.com/java-lang-NoSuchMethodError-org-apache-ws-commons-schema-XmlSchemaForm-tp4780240p4782341.html Sent from the cxf-user mailing list archive at Nabble.com.

Re: "The matching wildcard is strict but no declaration can be found" error

2011-09-08 Thread prashant
Hi, I had also same issue. The issue is nothing but with only classpath. When running client from commandline use following syntax e.g java -Dcxf.config.file=conf/cxf-Aanleverservice.xml -cp conf;lib/*.jar;lib/ AanleverserviceClient.jar; com.tieto.vn.aanleverservice.impl.AanleverserviceClien

Re: java first encoding="utf-8"

2011-09-08 Thread David Karlsen
AFAIK there is an interceptor for this - check the interceptors page at the cxf website. Den 8. sep. 2011 03:54 skrev "Jason Pell" følgende: > Hi, > > How do I get a java first web service to include encoding="utf-8" in > the ?xml header? > > Thanks > Jason

Re: add attachment to a cxf client

2011-09-08 Thread Sergey Beryozkin
Sorry, may be it was just too early for me yesterday :-). just got confused when I saw 'AttachmentUtil' which reminded me of AttachmentUtils shipped in the jaxrs frontend :-) Sergey On 07/09/11 10:42, Sergey Beryozkin wrote: Wow, that seems like to show a combination of CXF JAXRS & JAXWS code

Re: REST and Http binding

2011-09-08 Thread Sergey Beryozkin
CXF HTTP Binding has not been maintained for thew last few years, there were only few bug fixes applied to support existing users before they could migrate to JAX-RS. One thing HTTP Binding has that JAX-RS hasn't is that it can unwrap message payloads into individual method parameters - if it reall

REST and Http binding

2011-09-08 Thread Raj Floyd
Hi, What is the actual difference between a RESTful service and Web service with HTTP binding? Which one should I use and why? Thanks Raj

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

2011-09-08 Thread yannick
I'm using cxf 2.2.5. I debugged it and I noticed that he goes in the cxf-api-2.2.5 jar and not in the xmlschema-core 2.0 jar. Is cxf-api necssary as jar? -- View this message in context: http://cxf.547215.n5.nabble.com/java-lang-NoSuchMethodError-org-apache-ws-commons-schema-XmlSchemaForm-tp47