Re: Timeout and CXF

2013-09-20 Thread Jason Pell
The http conduit is a cxf abstraction for configuring a http URL connection so its not anything magical. You cannot use this in a non cxf client. For a c or .net client you would make use of whatever http or web service client frameworks that are available The thing to remember is that between t

Re: Getting Java user-defined object in C using CXF

2013-09-20 Thread Tim Fulmer
Hi Faz, First off I'm no CXF expert, so please take these suggestions with a grain of salt. Personally I'd recommend using JSON instead of XML if you have the luxury of designing both client and server portions from scratch. JSON simply has the most momentum behind it; most folks are moving a

Proxy Pool

2013-09-20 Thread chamal
Hi, I need make HTTPS WS calls based on different WSS security credentials. Because I am having different WS token, I need to create a pool of proxies to avoid threading issues. I have tried multiple methods of creating pools and they are failing on the second create call. I tried using the non

Re: How to handle exceptions from a SOAP webservice in a single point

2013-09-20 Thread Mandy Warren
Thanks Andrei, just one thing, now I have the new fault how do I return it? The handleMessage(SoapMessage message) method returns a void so do I just throw the new SOAPFaultException or if not, how do I set the new fault in the message param? Sent from a mobile device On 20 Sep 2013, at 13:46

RE: How to handle exceptions from a SOAP webservice in a single point

2013-09-20 Thread Andrei Shakirin
Hi, Regarding the first question you can do something like: fault = (SOAPFactory.newInstance()).createFault(); fault.setFaultString(BUSINESS_FAULT_STRING); String errorString = businessException.getMessage();

Re: Getting Java user-defined object in C using CXF

2013-09-20 Thread Faz
Any idea on this please? -- View this message in context: http://cxf.547215.n5.nabble.com/Getting-Java-user-defined-object-in-C-using-CXF-tp5734281p5734310.html Sent from the cxf-user mailing list archive at Nabble.com.

Re: Timeout and CXF

2013-09-20 Thread Faz
Okie, to be more precise.. Actually we will have multiple clients accessing our WS created via CXF. By multiple clients, it can be clients written in diff. programming languages i.e C, .Net, Java etc. So from Java prespective am pretty much fine with this setup. All I need to know is, can this cxf

Re: How to send attachment in response to a web service call

2013-09-20 Thread pkannan
Hi Narel, Did the upgrade fix the issue? Were you trying to process the attachment in .net client? My scenario: We are using 2.2 version of CXF. Have not used attachment before. For the first time going to try sending attachments. Any good example would be helpful. Also looking for any tips

Re: Timeout and CXF

2013-09-20 Thread Aki Yoshida
i thought it was a typo. but when you say it was not, that doesn't really clarify the situation. if you are writing a C based client from scratch and creating sockets by yourself, you are the one to decide whether to reuse the same configuration option as cxf (i.e., the http-conduit configuration)

Re: Timeout and CXF

2013-09-20 Thread Faz
By C, I mean the client being written in C program. Just to rephrase, can the http-conduit setting be done using the C program , as this is what will consume my Java service?Hope its clear now, please let me know if u need further info! -- View this message in context: http://cxf.547215.n5.nabb

Re: WS-Security : UsernameToken(Password Digest) + Sign/Encrypt Messages

2013-09-20 Thread Colm O hEigeartaigh
1) "RequireClientCertificate" means that the service endpoint must be configured to require a client certificate + must be set up with a trustManager. For example, if you are using Jetty (lines 50 -> 70): http://svn.apache.org/viewvc/cxf/branches/2.7.x-fixes/systests/ws-security/src/test/resources

Re: Timeout and CXF

2013-09-20 Thread Aki Yoshida
not sure what you meant by the "C client". you need to configure the relevant connection properties for your client. and the http-conduit setting is for cxf and it can be configured in xml (spring or blueprint) or programmatically in java, as described in the page that I mentioned. regards, aki

WS-Security : UsernameToken(Password Digest) + Sign/Encrypt Messages

2013-09-20 Thread Faz
Hi All,I was successful in setting up the WS-security with SSL, along with UsernameToken(PasswordDigest) with the below code snippet.All this works good, Now i would like to know few here...1. What in CXF should be done, if I change the *RequireClientCertificate *to true in *HttpsToken* ?2. I need

Re: Timeout and CXF

2013-09-20 Thread Faz
Thanks Aki, I will give it a try.Meanwhile, I'm planning to have a C client for the Java service, would the http-conduit config in xml be the same for that as well or do we need to do anything specific. Please suggest! -- View this message in context: http://cxf.547215.n5.nabble.com/Timeout-and