Re: Problem with minOccurs

2008-12-02 Thread Daniel Kulp
On Tuesday 02 December 2008 7:23:15 pm huntc 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 permission to do so. I thought that it would be good to have > your comments reflected there given that there is some

Certificate error when using two-way SSL

2008-12-02 Thread Jon Miller
Similar to other posts on this list, I receive a "javax.net.ssl.SSLHandshakeException: Received fatal alert: bad_certificate" when I attempt to use a service that is configured with two way SSL. However, his workaround is not working for me, My configuration for the client is: ...

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 to

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

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 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: 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, De

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.

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 t

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 applic

Re: Closing temp files after streaming is complete

2008-12-02 Thread Daniel Kulp
In general, in this type of case, I recommend doing something like: (pseudo code) return new DataHandler(new FileDataSource(tempFile)) { public void writeTo(OutputStream out) { super.writeTo(out); tempFile.delete(); } }; or similar. Basically, when the datahandler i

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 PROTECTE

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
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 bu

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 line,

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 no

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 P

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 lo

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 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

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

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: My implementation method works by creating a temporary file and the returning like return new DataHandler(new FileDataSource(tempFile)); My understanding is that this is asynchronous. So how can I trigger a deletion of this file wh

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: FW

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 y

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. @Path("{base:base.+suffix}/{tail}") can you give me a favor and resend this @Path value, possibly in quotes, should it read : "@Path(%22%7bbase:base.+su

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 Except

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 explanat

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: [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?

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: http://www.nabble.com/WHICH_JARS-has-missing-info-about-required-library-opensaml-in-version-2.1.3-tp20791990p20

Re: Grr. Maven.

2008-12-02 Thread Ian Roberts
I can see why CXF has so many *compile-time* dependencies, but I think the original question was more like how many of these dependencies are actually required at run time if you're only doing simple stuff like a single JAX-WS client that doesn't use WS-anything? Presumably this case would only us

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 res

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

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 t

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 ge

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, ObjectTwo.class

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 intuiti

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 in