Re: OutOfMemoryError using JAX-RS Client API while PUT'ing large entities

2011-06-29 Thread Sergey Beryozkin
Hi, http://svn.apache.org/viewvc/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java?view=markup) and was not sure what changes were made here and elsewhere that would solve this problem. I can pull in 2.4.LATEST and see what changes and report back.

Duplicate ws:Policy elements using code-first

2011-06-29 Thread Anthony Webster
Hi there, I'm trying to add support for WS-Policy and I'm getting a rather strange behavior. I added the following to one of my two services : @Policy(uri = policies/modalitiesSearch.xml, placement = Policy.Placement.BINDING, includeInWSDL = true) When I check the generate WSDL, I see *two*

Re: A question of choice

2011-06-29 Thread Sergey Beryozkin
Hi On Mon, Jun 27, 2011 at 3:53 PM, David Sills dsi...@datasourceinc.com wrote: All: A question for designers out there who wish to opine on best practices or advise me about an upcoming issue: we have an essentially RPC web service being considered for conversion to a RESTful one. Apologies

Getting a java.lang.ClassNotFoundException using a Dynamic Client for some methods and classes

2011-06-29 Thread Pedro Alípio
Hi! I would really appreciate if someone could help me on this. I'm running this simple Dynamic Client: import org.apache.cxf.endpoint.Client; import org.apache.cxf.endpoint.dynamic.DynamicClientFactory; import org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory; import

wsdl FileNotFoundException exception

2011-06-29 Thread Chenxg
Hi I am trying to invoke a .net webservice using CXF client which is required NTLM. I am using cxf 2.3. Firstly, I use wsdl2java to generate a stub, and set wsdl location as file:///c:/sample.wsdl. sample.wsdl file is saved at dirver c:/. Everything works fine. I think so far cxf is using jvm6

RE: A question of choice

2011-06-29 Thread David Sills
Thanks, Sergey, I'll give these suggestions some thought. I agree there is probably some refactoring involved, but for the moment the client is happy with the performance of the service and with the simplicity of the API from their client code's point of view (of course, that simply means the

@XMLRootElement for parameters in REST method signatures

2011-06-29 Thread dponos
Hello, I am an Apache CXF newbie, with limited experience developing REST APIs and also limited experience with JAXB and JAX-RS. I am having an issue using a Class (that was generated using jaxb2:xjc) as a parameter in a REST API method signature. My apologies in advance for getting into some

Re: Submitting Example Unit test for Cxf using LocalTransportFactory

2011-06-29 Thread Glen Mazza
Best way is to create a blog entry, provide downloadable source code from it, and then add a link to your blog entry from the resources section. Glen On 06/27/2011 10:49 AM, Mahesh Koli wrote: Guys, When I first started out to look around for example for writing an unit test for Cxf I

Re: Submitting Example Unit test for Cxf using LocalTransportFactory

2011-06-29 Thread Mahesh Koli
Ok. Will do that. Thanks for the input Mahesh On Wed, Jun 29, 2011 at 9:44 PM, Glen Mazza gma...@talend.com wrote: Best way is to create a blog entry, provide downloadable source code from it, and then add a link to your blog entry from the resources section. Glen On 06/27/2011 10:49

Re: A question of choice

2011-06-29 Thread Glen Mazza
On 06/27/2011 10:53 AM, David Sills wrote: So now the questions: 1. Can or should this service be converted to REST? 2. Can it be converted to REST as is, or should it be broken up into smaller pieces (not sure the client would agree to that)? 3. Can REST handle the amount of data a GET request

Re: Register my web service with the jaxws on fly.

2011-06-29 Thread Glen Mazza
You're not using Tomcat below, the pure CXF API code below results in embedded Jetty. Perhaps some of the embedded Jetty/Tomcat/standalone services I created for JUnit tests here: http://www.jroller.com/gmazza/entry/junit_web_service_testing would provide some useful code for you. I'm not

Re: @XMLRootElement for parameters in REST method signatures

2011-06-29 Thread Stephen Evanchik
Hello, On Wed, Jun 29, 2011 at 7:07 PM, dponos dpo...@cisco.com wrote: Hello, I am an Apache CXF newbie, with limited experience developing REST APIs and also limited experience with JAXB and JAX-RS.  I am having an issue using a Class (that was generated using jaxb2:xjc) as a parameter in a

Re: How to capture SOAP frame in a client java

2011-06-29 Thread Glen Mazza
Wireshark will let you see the encrypted messages[1] which could still show you a lot of what you might be looking for. As for decrypted, I think if you activate CXF logging at FINE level you'll be able to see the decrypted requests and responses. Metro has this option[2] for its clients and