I'll enhance the sample in the next couple of days. I think you are confirming a suspicion of mine, that I need to make the generator generate a lot more comments.
In general, for each complex type, there will be an object with get/set methods for the fields. Can you share a WSDL? In the interests of getting a user, I could give you some instructions for it. --benson On Wed, 2007-12-19 at 12:31 -0500, Vespa, Anthony J wrote: > Actually, could we get a more complex example than "HelloWorld" - what > is the correct approach to set values for a method that queries data? > > In our function scheme, we pass a mix of types, including custom objects > that have nested strings / ints in them as well. > > Any guidance is appreciated. > > Thx! > > Tony > -----Original Message----- > From: Benson Margulies [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 19, 2007 10:42 AM > To: cxf-user > Subject: CXF adds JavaScript client-side processing > > Hello CXF users, > > For the past several months, we've been working to give CXF support for > Javascript clients ... in browsers. > > To be more specific: the goal is to generate JavaScript that > communicates with an ordinary SOAP web service, described by a WSDL > file, using a plain old SOAP binding. No REST, no special HTTP > bindings. > > There are several kits for this purpose out there. They tend, based on > email traffic seen here, to have problems dealing the XML contents of > WS-I-compliant messages, particularly in the areas of namespace and > their prefixes. > > CXF 2.1 will produce JavaScript clients from either wsdl or java. In the > simplest form, you can put the following in your HTML: > > <script type='text/javascript' src='/path/to/your/Endpoint?js'></script> > > and pull in the JavaScript client. You can also run wsdl2js or java2js > to generate files that you can serve up. > > This functionality is now available in the most recent 2.1 snapshot. It > is described, warts and all, at the following URL. > > http://cwiki.apache.org/CXF20DOC/javascript-clients.html > > We (well, I) believe that this is working well enough to that people > should be able to get some useful work out of it while giving us > feedback on issues of taste and correctness. > > So, please download the latest snapshot and give this a try. > > > > >
