Re: How to generate wsdl programmatically using cxf?

2009-07-09 Thread jim ma
Feeds ToolContext with "ToolConstants.CFG_WSDL", it will add the WSDLGenerator . Jim. On Fri, Jul 10, 2009 at 2:02 AM, liw wrote: > > Hi Jim, > > It was turned out that the generators list is empty when > JavaToWSDLProcessor.generate() API is invoked. That's why the wsdl file is > empty. > > The

Re: cxf changes generated enumeration names

2009-07-09 Thread jim ma
Can you provide the wsdl file? Jim. On Wed, Jul 8, 2009 at 12:56 AM, Tedman Leung wrote: > Hi I'm having this issue where CXF is changing my enumeration names when I > generate the client stubs using WSDLToJava > > i.e. on the server side I have > > public enum Foo > { > IC9, IC10, IC1

Re: How to generate wsdl programmatically using cxf?

2009-07-09 Thread liw
Hi Jim, It was turned out that the generators list is empty when JavaToWSDLProcessor.generate() API is invoked. That's why the wsdl file is empty. The service is build from spring bean definition. I am able to generate wsdl using WSDLWriter. Thanks for your inputs, Li jim ma wrote: > > On Th

Re: Antwort: Re: Unmarshalling Error: UndeclaredPrefix: Cannot resolve 'ns0:Xxx' as a QName: the prefix 'ns0' is not declared [Virus checked]

2009-07-09 Thread jp4
I just tried with Jboss 5.1.0.GA as well and I still see the same issue. Any thoughts or recommendations would be greatly appreciated. jp4 wrote: > > I am seeing a similar behavior where the xsi:type causes the > UndeclaredPrefix error. Initially I was running CXF 2.2 with JDK 1.5 on > Jboss

Re: CXF and Encrypt

2009-07-09 Thread Kid_79
Hi all, I don't solve my error. Now I try to describe this my problem. A client calls a web service that it uses a my interceptor (RequestInterceptor); it gets SOAPMessage from SoapMessage of CXF and then it uses my task for encrypt/signature implemented with wss4j and this task returns a modify

RE: JSON in CXF - root element dropped

2009-07-09 Thread Sergey Beryozkin
Hi It should be fixed now on the trunk/2.2.3-snapshot There's a number of ways one can deal with it. In all cases a 'supportUnwrapped' property has to be set on the json provider : JSONProvider provider = new JSONProvider(); provider.setSupportUnwrapped(true); and then one of 3 options: 1. pro

Re: JSON in CXF - root element dropped

2009-07-09 Thread Sergey Beryozkin
Hi It should be fixed now on the trunk/2.2.3-snapshot There's a number of ways one can deal with it. In all cases a 'supportUnwrapped' property has to be set on the json provider : JSONProvider provider = new JSONProvider(); provider.setSupportUnwrapped(true); and then one of 3 options: 1. pr

Re: SAXSource

2009-07-09 Thread Daniel Kulp
On Thu July 9 2009 11:24:53 am xinxinwang wrote: > I have a question regarding the SAXSource. If a web service uses Source > mode with SAXSource, will the returned data be sent back to the client in a > streaming way? It depends on a couple things: :-) 1) Version of CXF - DEFINITELY use 2.2.1 o

Re: suggestion: package some test classes in a 'mock' jar?

2009-07-09 Thread tech_user_nj
Hello again, Let me add one more item. Do you have any recommendation for testing CXF Rest services? Jetty vs Mocks etc? Please include this information in your user guide as I see developers spend hours testing some simple services. Thanks, tech_user_nj wrote: > > We are using CXF Rest ser

Re: Problem with matrix params, works with one, but not with two (or more) params

2009-07-09 Thread Sergey Beryozkin
Hi Gabriel This is very helpful - thanks a million ! I'll look into it and see if I can figure out what's going on... Andy, if you read it, may be you fancy looking into it :-) ? cheers, Sergey - Original Message - From: "Gabriel Guardincerri" To: Sent: Thursday, July 09, 2009 5:33

Re: suggestion: package some test classes in a 'mock' jar?

2009-07-09 Thread tech_user_nj
We are using CXF Rest services and would like to test 'out of container' unit testing. I came across couple of classes like AbstractCXFTest etc as part of the API but do have any sample junit test cases? This will reduce my effort of writing these unit test cases. Your help is highly appreciated.

Re: Problem with matrix params, works with one, but not with two (or more) params

2009-07-09 Thread Gabriel Guardincerri
Hi Sergey, I'm sorry again for the delay. Debugging it I couldn't understand why it isn't working. But here is what I found: With the working URL "renderwidget2/id/1007/type/1/size/1/locale/en_US/properties;numResults=1": 1) At line 144 of URITemplate 143 Matcher m = templateRegexPattern.matc

SAXSource

2009-07-09 Thread xinxinwang
I have a question regarding the SAXSource. If a web service uses Source mode with SAXSource, will the returned data be sent back to the client in a streaming way? If the data is very large, do I still need to worry about the memory usage if using SAXSource? -- View this message in context: http:

Re: Antwort: Re: Unmarshalling Error: UndeclaredPrefix: Cannot resolve 'ns0:Xxx' as a QName: the prefix 'ns0' is not declared [Virus checked]

2009-07-09 Thread jp4
I am seeing a similar behavior where the xsi:type causes the UndeclaredPrefix error. Initially I was running CXF 2.2 with JDK 1.5 on Jboss 4.2.3.GA. I have since upgraded to Java 6. I send a sample request through SOAPUI and I still see the same error below... If I attempt to validate the same

Re: JAX-RS : initial WADL support

2009-07-09 Thread Sergey Beryozkin
Hi, I'm not seeing an immediate need in it as I don't see what we actually can do with this tool (I would actually prefer not to add 'wadl' in the name of such would-be tool, rather I would have a single tool capable of supporting multiple document types if needed). As I said before, the only

Re: JAX-RS : initial WADL support

2009-07-09 Thread Nathaniel Auvil
Sergey, Is the intent to have a WADL2JAX-RS capability? On Thu, Jul 9, 2009 at 5:32 AM, Sergey Beryozkin wrote: > Some more info. > > Going to the service listings page is not the only way to see the wadl > instances, generally one can get it using a ?_wadl query (note that the > queries suppo

Re: JAX-RS : initial WADL support

2009-07-09 Thread Sergey Beryozkin
Some more info. Going to the service listings page is not the only way to see the wadl instances, generally one can get it using a ?_wadl query (note that the queries supported natively by the jax-rs runtime are prefixed with '_'). For ex, given Base address : 'http://localhost:8080' WAR name

CXF SOAP request via socket transport

2009-07-09 Thread Michael Paolo Cariaso
Hi, Is it possible to send SOAP request through a Java Socket using CXF? the SOAP request can actually be contained as a String and loaded to a buffered socket writer. However, I'm wondering if CXF can automate this.

Re: .No root resource matching request path

2009-07-09 Thread Sergey Beryozkin
Hi, ok found it, issue was i have to change @Path("/SOWRequestWebService") public class SOWRequestWebService { to this - @Path("/") public class SOWRequestWebService { That is correct - the jaxrs:server/@address and @Path values on the root class combine... but i still have ione issue,