Problem generating WSDL from Java API with CXF 2.0.3

2008-01-25 Thread Phil Weighill-Smith
For some reason I can't get CXF 2.0.3 to generate what looks like correct WSDL from a set of Java interfaces. I either get no XML representing the object(s) or get an abstract complex type for the object(s) depending on the interfaces involved. Here's a simple example. Because I use interfaces for

Re: Problem generating WSDL from Java API with CXF 2.0.3

2008-01-25 Thread Daniel Kulp
JAXB generally doesn't like interfaces too much. In general, we definitely suggest using concrete classes. That said, one major issue is that your interface doesn't have setter methods on it. There's no way there's any chance of it working without that. JAXB would only expose propertie

Re: Problem generating WSDL from Java API with CXF 2.0.3

2008-01-28 Thread Phil Weighill-Smith
Dan/anyone else, I've got further (not sure if it will actually work with JAXB marshalling and unmarshalling, will find out later today) whilst still using interfaces as part of my API - the WSDL now looks more-or-less OK. The extra steps I've taken, as previously partially outlined, are to:

Re: Problem generating WSDL from Java API with CXF 2.0.3

2008-01-28 Thread Daniel Kulp
That's very cool. This is something I'd actually like to see a complete project/build/example for as a tutorial or something if you can get it working. > * whether the various parameters and results can be "null" (i.e. > I would like to change the minOccurs="0" to minOccurs="1" - the > def

Re: Problem generating WSDL from Java API with CXF 2.0.3

2008-01-28 Thread Phil Weighill-Smith
Dan, What I've found so far is that I can declare myself a new adapter, e.g.: public final class SimpleThingArrayAdapter extends XmlAdapter { @Override public SimpleThingImpl[] marshal(SimpleThing[] simpleThings) throws Exception { if (s

Re: Problem generating WSDL from Java API with CXF 2.0.3

2008-01-28 Thread Phil Weighill-Smith
Dan, Thanks again for your useful guidance. I'm trying to apply the pattern I described earlier to my real world scenario. The problem I haven't figured out a way round is when I have parameters and return types based on arrays of the interfaces. I get an annotation error with JAXB complaining it

Re: Problem generating WSDL from Java API with CXF 2.0.3

2008-01-28 Thread Daniel Kulp
On Monday 28 January 2008, Phil Weighill-Smith wrote: > I'm trying to apply the pattern I described earlier to my real world > scenario. The problem I haven't figured out a way round is when I have > parameters and return types based on arrays of the interfaces. I get > an annotation error with JAX

RE: Problem generating WSDL from Java API with CXF 2.0.3

2008-01-28 Thread Cobery, Marc
: cxf-user@incubator.apache.org Subject: Re: Problem generating WSDL from Java API with CXF 2.0.3 Dan, What I've found so far is that I can declare myself a new adapter, e.g.: public final class SimpleThingArrayAdapter extends XmlAdapter { @Override public

RE: Problem generating WSDL from Java API with CXF 2.0.3

2008-01-28 Thread Cobery, Marc
Marc [mailto:[EMAIL PROTECTED] Sent: Monday, January 28, 2008 3:45 PM To: cxf-user@incubator.apache.org; [EMAIL PROTECTED]; Daniel Kulp Subject: RE: Problem generating WSDL from Java API with CXF 2.0.3 Hi, Have you tried using a List instead of an array for your return value?

RE: Problem generating WSDL from Java API with CXF 2.0.3

2008-01-29 Thread Phil Weighill-Smith
Phil Weighill-Smith [mailto:[EMAIL PROTECTED] > Sent: Monday, January 28, 2008 12:20 PM > To: Daniel Kulp > Cc: cxf-user@incubator.apache.org > Subject: Re: Problem generating WSDL from Java API with CXF 2.0.3 > > Dan, > > What I've found so far is that I can dec

Re: Problem generating WSDL from Java API with CXF 2.0.3

2008-01-29 Thread Daniel Kulp
t;com.rulestream.services.knowledge.ws.impl.ClassDefService >Impl"> > > > > > Thanks for any help. > Regards, > Marc > > -Original Message- > From: Cobery, Marc [mailto:[EMAIL PROTECTED] > Sent: Monday, January 28, 2008 3:45 PM &g

RE: Problem generating WSDL from Java API with CXF 2.0.3

2008-01-30 Thread Phil Weighill-Smith
eption. > Before this exception, I could not initialize the web service. > > Regards, > Marc > > > -Original Message- > From: Phil Weighill-Smith [mailto:[EMAIL PROTECTED] > Sent: Monday, January 28, 2008 12:20 PM > To: Daniel Kulp > Cc: cxf-user@incub

RE: Problem generating WSDL from Java API with CXF 2.0.3

2008-01-30 Thread Cobery, Marc
[mailto:[EMAIL PROTECTED] Sent: Tuesday, January 29, 2008 3:47 PM To: cxf-user@incubator.apache.org Cc: Cobery, Marc Subject: Re: Problem generating WSDL from Java API with CXF 2.0.3 Any chance you could turn on FINE level logging?At least for the org.apache.cxf.jaxb.JAXBDataBinding Logger

Re: Problem generating WSDL from Java API with CXF 2.0.3

2008-01-31 Thread Phil Weighill-Smith
Dan, Sorry, I just spotted that there were some other response e-mails on nabble.com's archive of this mailing list (http://www.nabble.com/Problem-generating-WSDL-from-Java-API-with- CXF-2.0.3-td15084730.html lists this thread) which I didn't actually get. Not sure why. Were you asking

Re: Problem generating WSDL from Java API with CXF 2.0.3

2008-01-31 Thread Phil Weighill-Smith
Regarding target namespace and the elementFormDefault issues... Interestingly the package-info.java approach doesn't seem to work. Whilst this sets the default element form to qualified, each element is then generated with the form="unqualified" attribute set. D'oh! I guess I'll have to use the Xm

Re: Problem generating WSDL from Java API with CXF 2.0.3

2008-02-01 Thread Daniel Kulp
This is definitely a bug and I see where the improper code is found. Line 202 of WrapperClassGenerator specifically sets the namespace to "" for the generated class. This needs to be updated to either not output it or output the correct namespace. I'll need to experiment a bit to figure out

Re: Problem generating WSDL from Java API with CXF 2.0.3

2008-02-22 Thread Phil Weighill-Smith
Dan, sorry it's been several weeks since you e-mailed this to me and I've not actioned it. Where do I find CXF's official JIRA app? By the way, I have also hit a problem where the response parts are generated with incomplete result definitions. For example, if I have a method in my SEI like: @We

Re: Problem generating WSDL from Java API with CXF 2.0.3

2008-02-22 Thread Daniel Kulp
On Friday 22 February 2008, Phil Weighill-Smith wrote: > Dan, sorry it's been several weeks since you e-mailed this to me and > I've not actioned it. Where do I find CXF's official JIRA app? https://issues.apache.org/jira/browse/CXF That said, the namespace issue in the WrapperClassGenerator sho

Re: Problem generating WSDL from Java API with CXF 2.0.3

2008-02-22 Thread Phil Weighill-Smith
9 o'clock (GMT) Europe/London Subject: Re: Problem generating WSDL from Java API with CXF 2.0.3 On Friday 22 February 2008, Phil Weighill-Smith wrote: > Dan, sorry it's been several weeks since you e-mailed this to me and > I've not actioned it. Where do I find CXF's offi

Re: Problem generating WSDL from Java API with CXF 2.0.3

2008-02-25 Thread Phil Weighill-Smith
OTECTED]> Sent: 22 February 2008 17:26:59 o'clock (GMT) Europe/London Subject: Re: Problem generating WSDL from Java API with CXF 2.0.3 On Friday 22 February 2008, Phil Weighill-Smith wrote: > Dan, sorry it's been several weeks since you e-mailed this to me and > I

Re: Problem generating WSDL from Java API with CXF 2.0.3

2008-02-25 Thread Daniel Kulp
- > From: "Daniel Kulp" <[EMAIL PROTECTED]> > To: cxf-user@incubator.apache.org > Cc: "Phil Weighill-Smith" <[EMAIL PROTECTED]> > Sent: 22 February 2008 17:26:59 o'clock (GMT) Europe/London > Subject: Re: Problem generating WSDL from Java AP

Re: Problem generating WSDL from Java API with CXF 2.0.3

2008-02-25 Thread Phil Weighill-Smith
#x27;clock (GMT) Europe/London Subject: Re: Problem generating WSDL from Java API with CXF 2.0.3 Hmm.. Is this in maven or other build system? It looks like its picking up some old jars someplace as the class: org.apache.cxf.tools.java2wsdl.processor.JavaToProcessor no longer even exists

Re: Problem generating WSDL from Java API with CXF 2.0.3

2008-02-26 Thread Daniel Kulp
av > >aT oProcessor.java:87) > > > > Note that this is both in the IDEA integration with CXF and via the > > command line. The JDK I'm using is 1.6.0.03. > > > > Any suggestions? > > > > Phil :n. > > > > - Original Message -

Re: Problem generating WSDL from Java API with CXF 2.0.3

2008-02-26 Thread Phil Weighill-Smith
(MST) Subject: Re: Problem generating WSDL from Java API with CXF 2.0.3 On Monday 25 February 2008, Phil Weighill-Smith wrote: > Dan, > > The exception happened with just using command line access - with long > class paths ;n) > > Yes, I think we were getting the tooling from a 2.0.1

Re: Problem generating WSDL from Java API with CXF 2.0.3

2008-02-26 Thread Daniel Kulp
ed toward the 2.0.x toolset (since 2.0.x is released). Dan > > - Original Message - > From: Daniel Kulp <[EMAIL PROTECTED]> > To: cxf-user@incubator.apache.org > Cc: Phil Weighill-Smith <[EMAIL PROTECTED]> > Sent: Tue, 26 Feb 2008 11:25:16 -0700 (MST) > Su

Re: Problem generating WSDL from Java API with CXF 2.0.3

2008-02-26 Thread Glen Mazza
eased). > > Dan > > > > > > > - Original Message - > > From: Daniel Kulp <[EMAIL PROTECTED]> > > To: cxf-user@incubator.apache.org > > Cc: Phil Weighill-Smith <[EMAIL PROTECTED]> > > Sent: Tue, 26 Feb 2008 11:25:16 -

Re: Problem generating WSDL from Java API with CXF 2.0.3

2008-02-27 Thread Daniel Kulp
@Override > public User unmarshal(final UserImpl user) throws Exception { > return user; > } > } > > ... > } > > > Any suggestions as to why the response for the getUser operation is > like: > > > > >

Re: Problem generating WSDL from Java API with CXF 2.0.3

2008-02-28 Thread Phil Weighill-Smith
axb; > > > > import com.volantis.openapi.mss.usermodule.User; > > > > import javax.xml.bind.annotation.adapters.XmlAdapter; > > > > /** > > * Provides the various Java type adapters required to allow the API > > to be * appropriately bound to JAX-WS

Re: Problem generating WSDL from Java API with CXF 2.0.3

2008-04-16 Thread Phil Weighill-Smith
hill-Smith <[EMAIL PROTECTED]> > > Sent: Tue, 26 Feb 2008 11:25:16 -0700 (MST) > > Subject: Re: Problem generating WSDL from Java API with CXF 2.0.3 > > > > On Monday 25 February 2008, Phil Weighill-Smith wrote: > > > Dan, > > > > > > The exc