RE: schema validation not working in cxf restful service

2011-11-23 Thread AGGARWAL, NEERAJ (NEERAJ)
Hi, I guess you are referring to the second method mentioned at this link- http://cxf.apache.org/docs/jax-rs-data-bindings.html#JAX-RSDataBindings-Schemavalidation I have tried that and even that does not work with 2.3.2 -Neeraj -Original Message- From: Sergey Beryozkin [mailto:sberyoz

Adding an entity to error responses

2011-11-23 Thread Benson Margulies
Situation: I'm using jquery forms to submit a multipart to a JAX-RS service. So, JQuery is using an iframe, and as a result error responses disappear. All I get to see is the entity. If I make a mistake such that CXF generates a WebApplicationException e.g. 2011-11-23 21:59:09,885 [http-bio-150

Re: wsdl2java error in .NET generated WSDL

2011-11-23 Thread David Brown
Hi Daniel, Wow! that worked! I have not run the SOAP client yet but the Java stubs generated no problemo! Regards, David. On Wed, 2011-11-23 at 16:18 -0500, Daniel Kulp wrote: > > The simplest thing to do is to flip JAXB into it's "simple" mode. Create a > binding file of: > http://ts2.nbs-us.c

Re: Apache CXF+MTOM sending multiple attachments

2011-11-23 Thread Alex Declent
Hi Daniel, thank you for your response, I'm using CXF 2.5.0. Now I have found out that when I debug the web-service with my IDE everything work as it should, but if I send the request to the service without debugging it ends up as I already mentioned. I can't produce a test case because the

Re: Apache CXF+MTOM sending multiple attachments

2011-11-23 Thread Daniel Kulp
Any chance you can create a small sample test case showing the issue? Not really sure what would cause it. That said, if you aren't using CXF 2.4.3 or newer, definitely upgrade. Dan On Wednesday, November 23, 2011 1:51:42 PM Alex Declent wrote: > I have developed a web-service which recei

Re: SEVERE: Error listenerStart in Apache CXF

2011-11-23 Thread Daniel Kulp
On Wednesday, November 23, 2011 5:02:49 AM krn1...@gmail.com wrote: > I am using Apache CXF , for developing Webservices I have two wars inside my > Tomcat server , where from one war i am calling another war > > After adding this code (Calling another war from a class using > jaxProxyFactory Bean

Re: Policy with java-first

2011-11-23 Thread Daniel Kulp
On Wednesday, November 23, 2011 10:30:25 AM Penmatsa, Vinay wrote: > Hi, > I added Policy annotations to the java interface in in java-first service > and added the cxf-rt-ws-policy and cxf-rt-ws-security modules. Also, added > the following in cxf config: resource="classpath:META-INF/cxf/cxf-exte

Re: wsdl2java error in .NET generated WSDL

2011-11-23 Thread Daniel Kulp
The simplest thing to do is to flip JAXB into it's "simple" mode. Create a binding file of: http://ts2.nbs-us.com/TestWS/Service.asmx?WSDL"; xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema";

Re: Client stub that does not call the actual end point.

2011-11-23 Thread Daniel Kulp
On Wednesday, November 23, 2011 5:27:34 PM Alex Shneyderman wrote: > Hi, Daniel! > > Is there any other configuration that needs to be done for this? You may need to add a transportId property/attribute on them that sets it to: http://cxf.apache.org/transports/local Also, if using Maven, mak

Re: use local hostname in publishEndpointUrl

2011-11-23 Thread rouble
Here is one way to do it using spring xml configuration: http://stackoverflow.com/questions/8235045/concatenate-string-in-spring-xml-configuration This should work on earlier versions of CXF. Let me ask another (related) question: How do I redirect a generic wsdl url: http://example.com/weba

Access to tag of inbound soap message

2011-11-23 Thread kio
Hello, can you help me with my problem? I'm novice in cxf and can not find solution... I have: 1) cxf-client (generated from NetBeans) 2) Web-service on Weblogic 10.3. Web-service is protected by ws-securitypolicy (SAML-bearer) I need: read element from inbound soap message in web-service code. I

Re: Client stub that does not call the actual end point.

2011-11-23 Thread Alex Shneyderman
Hi, Daniel! Is there any other configuration that needs to be done for this? I configured this: on initialization call I get exception: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mock.

Re: use local hostname in publishEndpointUrl

2011-11-23 Thread Daniel Kulp
The only way I can think to do this is to write an interceptor that would live before the WSDLGetInterceptor (assuming CXF 2.5.0) that would calculate a new publishEndpointUrl as a string and set that on the message. In 2.5.0, that property is a contextual property and over ridable via interc

Re: Client stub that does not call the actual end point.

2011-11-23 Thread Daniel Kulp
On Wednesday, November 23, 2011 12:58:17 PM Alex Shneyderman wrote: > Hello, > > I have a requirement where I need to configure a client proxy that > does not actually make http request to the endpoint. We use > org.apache.cxf.jaxws.JaxWsProxyFactoryBean to instantiate client > proxies. Is there a

Re: Howto use JAXWS client without WSDL

2011-11-23 Thread Daniel Kulp
On Wednesday, November 23, 2011 4:29:13 PM Harry van Rijn wrote: > Hi, > > I have generated java classes from a wsdl. > > Now I want to set up a webservice client using these classes, > without using file://file?wsdl or http://endpoint?url. > > The only thing I want to use is: > http://localhost

Re: How to configure formatted output with JAXWS spring client

2011-11-23 Thread Daniel Kulp
On Wednesday, November 23, 2011 4:45:25 AM hhenke wrote: > Thank's for your response Daniel, > > I like to get it formatted on the wire. Seems like a bug. Looking into the code, we always set the formatted output to FALSE just before marshalling. Thus, that would override the property you se

Policy with java-first

2011-11-23 Thread Penmatsa, Vinay
Hi, I added Policy annotations to the java interface in in java-first service and added the cxf-rt-ws-policy and cxf-rt-ws-security modules. Also, added the following in cxf config: Is there anything else to get the policy runtime working? The Policy Interceptor doesn't seem to be invoked. Re

Howto use JAXWS client without WSDL

2011-11-23 Thread Harry van Rijn
Hi, I have generated java classes from a wsdl. Now I want to set up a webservice client using these classes, without using file://file?wsdl or http://endpoint?url. The only thing I want to use is: http://localhost:8080/war-filename/web.xml-mapping/jaxws-address Is this possible? kind regards,

Re: How to configure formatted output with JAXWS spring client

2011-11-23 Thread hhenke
Hi Sergey, you are right. I have to set JAXB properties. That's what I tried to do. Just like described in http://cxf.apache.org/docs/jaxb.html . But it doesn't work. Cheers, Heinrich -- View this message in context: http://cxf.547215.n5.nabble.com/How-to-configure-formatted-output-with-JAXWS-

Re: How to configure formatted output with JAXWS spring client

2011-11-23 Thread Sergey Beryozkin
On 23/11/11 12:45, hhenke wrote: Thank's for your response Daniel, I like to get it formatted on the wire. You probably need to set JAXB properties: http://cxf.apache.org/docs/jaxb.html Cheers, Sergey Regards Heinrich -- View this message in context: http://cxf.547215.n5.nabble.com/How-

SEVERE: Error listenerStart in Apache CXF

2011-11-23 Thread krn1...@gmail.com
I am using Apache CXF , for developing Webservices I have two wars inside my Tomcat server , where from one war i am calling another war After adding this code (Calling another war from a class using jaxProxyFactory Bean ) the deployment is not happening . Please let me know whetehr we need to ad

Re: How to configure formatted output with JAXWS spring client

2011-11-23 Thread hhenke
Thank's for your response Daniel, I like to get it formatted on the wire. Regards Heinrich -- View this message in context: http://cxf.547215.n5.nabble.com/How-to-configure-formatted-output-with-JAXWS-spring-client-tp5013106p5016533.html Sent from the cxf-user mailing list archive at Nabble.com

Apache CXF+MTOM sending multiple attachments

2011-11-23 Thread Alex Declent
I have developed a web-service which receives multiple attachments from a remote web-service via an CXF JAXB client (the client is called from the service), the attachment from the remote service are, one xml document and an undefined number of pdf documents. When I try to add the received att

Client stub that does not call the actual end point.

2011-11-23 Thread Alex Shneyderman
Hello, I have a requirement where I need to configure a client proxy that does not actually make http request to the endpoint. We use org.apache.cxf.jaxws.JaxWsProxyFactoryBean to instantiate client proxies. Is there a way to instruct the factory to construct proxy in a way where calls to the remo

Re: Why is the default 'accept' for WebClient text/xml

2011-11-23 Thread Sergey Beryozkin
Hi, On 23/11/11 03:10, Benson Margulies wrote: On Tue, Nov 22, 2011 at 10:50 AM, Sergey Beryozkin wrote: Hi Benson On 22/11/11 14:40, Benson Margulies wrote: Does the standard demand that the default setting of accept for WebClient be text/xml? This seems completely arbitrary to me. Why not