Re: How to configure WSDL in java

2008-12-02 Thread Andrew Clegg
2008/12/1 ysahuly [EMAIL PROTECTED]: I have an implementation class and an WSDL. Is there any possibility to configure the WSDL to the corresponding class.Not using the normal two approaches i.e WSDL first or JAVA first. I have both the class and WSDL, only thing is i need to configure it. If

Re: setAnonymousWrapperTypes() and JAX-WS

2008-12-02 Thread Valdemar Mejstad
Thanks for looking into this. I created a JIRA at: https://issues.apache.org/jira/browse/CXF-1930 Cheers, Valdemar On Mon, Dec 1, 2008 at 11:08 PM, Daniel Kulp [EMAIL PROTECTED] wrote: On Thursday 27 November 2008 11:05:52 am Valdemar Mejstad wrote: Hi, I'm having trouble getting

Re: [Jax-Rs]security with spring

2008-12-02 Thread Irshad Buchh
Hi, Did you get it working, can we share your notes please . --Irshad. Rest FulService wrote: Hi all, I am working with CXF 2.1.2 JAX-RS with Spring security and falling in to trap of jar conflicts. Can anybody tell me CXF 2.1.1 support which version of spring 2.5.4 or 2.0.8? Or

Re: Problem with minOccurs

2008-12-02 Thread huntc
dkulp wrote: Unfortunately, this is completely per spec and there isn't any way to control this right now. Hi Daniel, Are you able to enlighten me as to the rationale behind the spec or point me in the direction of an explanation? Having minOccurs=0 for objects is not intuitive to

Re: Missing encoding in CXF response

2008-12-02 Thread Idar Borlaug
It might be a bug in mule, i am trying to figure that out. Its the same with CXF 2.1.3. 2008/12/1 Daniel Kulp [EMAIL PROTECTED]: Any chance you can try with CXF 2.1.3? That said, I'm not sure how it's possible to get that response.I'm pretty sure we always set a charset on the

Re: Customizing Generated Java

2008-12-02 Thread Andrew Clegg
You might also find SoapUI useful for creating mock services from a WSDL -- see soapui.org . Andrew. On 1 Dec 2008, at 21:35, castlec [EMAIL PROTECTED] wrote: dkulp wrote: The JAXWS tooling (wsdl2java) does have a plugin thing that can provide default values for various return

SOAPMessage with octet-stream Attachment problems

2008-12-02 Thread Cencio
Hi all, I have a SOAPMessage with an octet-stream attachment (a msdoc file) saved on filesystem. Now i have to rebuild as SOAPMessage. I did it using as content-type: multipart/related; type=text/xml; boundary==_Part_3_571795.1228230755806 and all works, but when i try to access it it

Re: Different object types in list

2008-12-02 Thread Ronald Pieterse
Yeah that was the first thing I tried but I keep getting ClassCastException whenever I try to downcast an object from the list to either ObjectOne or ObjectTwo. I now also tried to use @XmlSeeAlso in the BaseObject but that made no difference (@XmlSeeAlso(value = { ObjectOne.class,

Re: Grr. Maven.

2008-12-02 Thread Sergey Beryozkin
Hi Benson Eoghan and myself introduced this seperate bundle as part of DOSGi work - just to minimize the overall DOSGi RI size. Arguably the difference in sizes between all-inclusive and cxf-minimal bundles is negligible on 2.0.x line, but it's becoming a bit more noticeable on 2.1.x and and

WHICH_JARS has missing info about required library opensaml in version 2.1.3

2008-12-02 Thread Libor Svehlak
In WHICH_JARS file there is missing information about required library opensaml when user wants to use WS-Security support. Affected version is 2.1.3 -- View this message in context:

Re: Problem with minOccurs

2008-12-02 Thread Daniel Kulp
On Tuesday 02 December 2008 5:01:01 am huntc wrote: dkulp wrote: Unfortunately, this is completely per spec and there isn't any way to control this right now. Hi Daniel, Are you able to enlighten me as to the rationale behind the spec or point me in the direction of an explanation?

Exceptions over SOAP

2008-12-02 Thread Aaron Mulder
So we have a method that throws a checked Exception, and that one has a nested Exception. I haven't been able to find a way to configure things so that the nested Exception is passed to the client (the generated schema for the main Exception just does not include any elements for the nested

Re: Support for Regular Expressions in @Path Annotation using CXF JAX-RS

2008-12-02 Thread Sergey Beryozkin
Hi Bruce Can you give me a favour and clarify on one of the path expressions. snip/ @Path({base:base.+suffix}/{tail}) mailto://@Path(%22%7bbase:base.+suffix%7d/%7btail%7d%22) can you give me a favor and resend this @Path value, possibly in quotes, should it read :

Re: configuring the WSDL generator at serviceUrl?wsdl

2008-12-02 Thread Benson Margulies
Hakan, The ?wsdl generator is 'configured' by the sum of all your @nnotations plus whatever options you supply to the service factory. Generally, a discrepancy of this kind results from service factory options, since the @nnotations are equally visible to the tools and the dynamic runtime. Have

RE: FW: [revisiting] jax-ws @WebParam Required annotation?

2008-12-02 Thread Ostermueller, Erik
Replying to self here. It looks like I could use Annotation[] getAnnotations() on java.lang.Class to read which fields have '@Required'. -Original Message- From: Ostermueller, Erik [mailto:[EMAIL PROTECTED] Sent: Monday, December 01, 2008 3:47 PM To: users@cxf.apache.org Subject: RE:

Closing temp files after streaming is complete

2008-12-02 Thread Daniel Lipofsky
I have a web-service that is returning a stream like this: xsd:element name=objects type=xsd:base64Binary xmime:expectedContentTypes=application/octet-stream/ My implementation method works by creating a temporary file and the returning like return new DataHandler(new

Re: configuring the WSDL generator at serviceUrl?wsdl

2008-12-02 Thread raft
hi, i'm not sure i correctly understand the notion here. what exacty do you mean by service factory options/settings ? are they the one defined at endpoint ? my endpoint definition, interface and implementation is below. once again if required i can send my data types too jaxws:endpoint

Re: configuring the WSDL generator at serviceUrl?wsdl

2008-12-02 Thread Benson Margulies
You don't have any endpoint features (such as data binding customizations) that would explain a discrepancy. So I'm left wondering if you are perfectly sure that the classpath is the same in the two cases. On Tue, Dec 2, 2008 at 1:26 PM, raft [EMAIL PROTECTED] wrote: hi, i'm not sure i

Asynchronous Restful web service

2008-12-02 Thread shriny
I am trying to build a cxf based asynchronous restful web service, i saw the polling ayns web service on the site but couldn't find asynchronous rest sample Have any tried this ? -- View this message in context: http://www.nabble.com/Asynchronous--Restful-web-service-tp20798394p20798394.html

Re: configuring the WSDL generator at serviceUrl?wsdl

2008-12-02 Thread hakan eryargi
if you are asking if my classes are loaded from same location, yes i'm sure. i know such things happen all the time but i'm pretty experienced with java but, if you are asking for the environment (other libraries) it's another story. this application runs a ibm filenet client and hence includes

Re: configuring the WSDL generator at serviceUrl?wsdl

2008-12-02 Thread Benson Margulies
It's not strange at all. The java2ws command takes a classpath argument to which you have to supply the precise list of jars and directories that are in the classpath of your live application. This indicates that you aren't giving the command line the same classpath. On Tue, Dec 2, 2008 at 2:18

Re: configuring the WSDL generator at serviceUrl?wsdl

2008-12-02 Thread hakan eryargi
actually i didnt understand what you mean. i run java2ws within my application which means it uses same classpath as my application. and with that same classpath java2ws creates a correct wsdl but ?wsdl does not. On Tue, Dec 2, 2008 at 9:41 PM, Benson Margulies [EMAIL PROTECTED] wrote: It's not

Re: configuring the WSDL generator at serviceUrl?wsdl

2008-12-02 Thread Benson Margulies
I'm saying, with all due respect, that I think that you've got a problem with classpath. When you run the Java2WS code from inside your application, you have the same classpath as your application. When you run it from command line, I think that you don't. When you run java2ws from command

Re: configuring the WSDL generator at serviceUrl?wsdl

2008-12-02 Thread hakan eryargi
yes, as you said when i run java2ws inside my application it has the same classpath with my application. we agree on this. what i'm saying is, running java2ws this way produces the same result with running it standalone (as ant task). this means with same classpath java2ws generates correct wsdl

Re: configuring the WSDL generator at serviceUrl?wsdl

2008-12-02 Thread Benson Margulies
I'm getting lost. Could you fill in the following as a chart :-) java2ws command java2ws run inside application ?wsdl results for each line, mark it good or bad. I think I've misread you at least once, and I want to be sure that I'm following before I hassle you any further. On Tue, Dec 2, 2008

Re: configuring the WSDL generator at serviceUrl?wsdl

2008-12-02 Thread hakan eryargi
np :) java2ws ant task : good java2ws run inside application : good (same with ant task) ?wsdl results : bad good means data types are inlined into wsdl. bad means data types are missing, even without an import to an external xsd On Tue, Dec 2, 2008 at 10:39 PM, Benson Margulies [EMAIL

Re: configuring the WSDL generator at serviceUrl?wsdl

2008-12-02 Thread Benson Margulies
OK, now I've got the picture. I guess I've run you around in a circle to get right back to where Dan had you. We need some sort of a test case. This is Most Odd. On Tue, Dec 2, 2008 at 3:49 PM, hakan eryargi [EMAIL PROTECTED] wrote: np :) java2ws ant task : good java2ws run inside application

Re: Generated code with minOccurs=0 and nillable=true contains JAXBElement

2008-12-02 Thread Daniel Kulp
On Wednesday 26 November 2008 5:09:17 pm Steve Cohen wrote: I think this may be the answer to a question I posed the other day as well: http://www.nabble.com/cxf-java-code-generation-question-td20661806.html Let me therefore make sure I understand your suggestion: Are you suggesting that if

Re: WHICH_JARS has missing info about required library opensaml in version 2.1.3

2008-12-02 Thread Daniel Kulp
On Tuesday 02 December 2008 8:21:05 am Libor Svehlak wrote: In WHICH_JARS file there is missing information about required library opensaml when user wants to use WS-Security support. Affected version is 2.1.3 This is definitely a bug in 2.1.3, but I'm hoping to not have to fix it in 2.1.4.

Re: configuring the WSDL generator at serviceUrl?wsdl

2008-12-02 Thread hakan eryargi
np ;-) so we agreeded on the problem.. On Tue, Dec 2, 2008 at 11:44 PM, Benson Margulies [EMAIL PROTECTED] wrote: OK, now I've got the picture. I guess I've run you around in a circle to get right back to where Dan had you. We need some sort of a test case. This is Most Odd. On Tue, Dec 2,

Re: Problem with minOccurs

2008-12-02 Thread huntc
Thanks for the detailed info Dan. I just attempted to update the CXF wiki/how to/contract first page but do not have the permission to do so. I thought that it would be good to have your comments reflected there given that there is some discussion re. minOccurs. Would you be able to update that

Re: Problem with minOccurs

2008-12-02 Thread Benson Margulies
Sadly, we can only grant access to the Wiki to people who file a contributor license agreement. (hint) On Tue, Dec 2, 2008 at 7:23 PM, huntc [EMAIL PROTECTED] wrote: Thanks for the detailed info Dan. I just attempted to update the CXF wiki/how to/contract first page but do not have the

Re: Problem with minOccurs

2008-12-02 Thread Benson Margulies
Which page did you have in mind? I'm only seeing the Aegis info. On Tue, Dec 2, 2008 at 7:36 PM, Benson Margulies [EMAIL PROTECTED] wrote: Sadly, we can only grant access to the Wiki to people who file a contributor license agreement. (hint) On Tue, Dec 2, 2008 at 7:23 PM, huntc [EMAIL

Eliminating NameNotFoundException when deploying WAR to application server

2008-12-02 Thread Owen Rogers
How do I suppress the multitude of NameNotFoundExceptions that are logged with SEVERE status every time we redeploy to Glassfish[1]? The logged exceptions tend to obscure legitimate errors and they set our pagers buzzing with every new deployment to production. The exceptions seem to be related