Return-Path: Delivered-To: apmail-cxf-dev-archive@www.apache.org Received: (qmail 80702 invoked from network); 17 Aug 2009 12:24:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Aug 2009 12:24:23 -0000 Received: (qmail 17110 invoked by uid 500); 17 Aug 2009 12:24:30 -0000 Delivered-To: apmail-cxf-dev-archive@cxf.apache.org Received: (qmail 17045 invoked by uid 500); 17 Aug 2009 12:24:29 -0000 Mailing-List: contact dev-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list dev@cxf.apache.org Received: (qmail 17035 invoked by uid 99); 17 Aug 2009 12:24:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Aug 2009 12:24:29 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bimargulies@gmail.com designates 209.85.219.205 as permitted sender) Received: from [209.85.219.205] (HELO mail-ew0-f205.google.com) (209.85.219.205) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Aug 2009 12:24:21 +0000 Received: by ewy1 with SMTP id 1so1376719ewy.30 for ; Mon, 17 Aug 2009 05:24:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=3HRj1r+RCB+wGigIUlTEYEKlhRJl/gJuOMDE60X/oII=; b=J0ssvVL+iU6dQ4oLjcqIOzDdnDYn0DdMficpyQUGzPhYyFhwE3jU1WeW9Fk0CBm0os 5JYKbcf0Y6Y0CNgHz0xD4igKcUsyF4ribSz1t/aoNJ/iJf1Y6UOREJLAZuohRayhcjxP RcDymGbCvP/mkvlufhOcFBN6JJqUI26LLs3Us= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=B0MB11CQp+2kk2d3i69DoUVmUDTFrrsO3NeRhrqfsDftr70s8sZZVtTH4YZB0Vo0ml rCnryFEhYadPd79J4HeColPQYGdPC+IhJ7ExqQILEOHuJDNeTm4pqoLWXK9RxNbI99Kr bCEvh8HK/ygmSCuqXWQJczf9reBu2mb1uZHvw= MIME-Version: 1.0 Received: by 10.216.74.14 with SMTP id w14mr967006wed.153.1250511840000; Mon, 17 Aug 2009 05:24:00 -0700 (PDT) In-Reply-To: <4A88E1E8.10208@ece.neu.edu> References: <4A8067CA.60009@ece.neu.edu> <200908121406.55061.dkulp@apache.org> <4A832A4A.3010606@ece.neu.edu> <61b5d9410908121815y2a4b9bcfn144646330b848bab@mail.gmail.com> <4A846C66.7000304@ece.neu.edu> <4A847E3A.2080909@ece.neu.edu> <61b5d9410908131754v2a5a6b60of4c7581fa3234901@mail.gmail.com> <4A858BAF.6000902@ece.neu.edu> <61b5d9410908141101n68174daeh8d695469c39ce2ea@mail.gmail.com> <4A88E1E8.10208@ece.neu.edu> Date: Mon, 17 Aug 2009 08:23:59 -0400 Message-ID: <61b5d9410908170523q578e5539nceee5593c0142e33@mail.gmail.com> Subject: Re: WSDL2JS From: Benson Margulies To: dev@cxf.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org The answer to your questions is "yes". On Mon, Aug 17, 2009 at 12:51 AM, Demetris wrote: > > Hi Benson, > > =C2=A0 I took a look into the rt folder and did go over the cxf-utils.js = module - > so the generated > client javascript code makes use of this module to send its requests to t= he > service - correct? > > I =C2=A0know that looking through the code is the best way to learn a lot= of this > but this code > is fairly large so I am not sure I will have the time to go through it > before I need to make the > decision to go with CXF - the only Q I have here is, before I invest the > time going over the > documentation, is there enough material there to help me figure out CXF? = It > seems that the > web site if fairly well organized so that's encouraging. > > Thanks > > Benson Margulies wrote: >> >> I would recommend wrapping/intercepting the object in cxf-utils.js >> that sends the requests. >> >> There's really no substitute for reading some of this code. >> >> On Fri, Aug 14, 2009 at 12:07 PM, Demetris wrote: >> >>> >>> So if I want to intercept the SOAP message that the client javascript >>> will >>> be sending out I will need >>> to dig into the http layers? Is there anything I can do at the app laye= r >>> to >>> intercept that message without >>> disrupting/modifying the javascript? >>> >>> Benson Margulies wrote: >>> >>>> >>>> When the server provides the javascript, it provides the correct URL. >>>> Which is often not port 8080. >>>> >>>> =C2=A0To answer another question, no z/OS is not required. >>>> >>>> On Thu, Aug 13, 2009 at 4:57 PM, Demetris wrote: >>>> >>>> >>>>> >>>>> One more question for whoever has a few minutes to help out - >>>>> Let's say my client contacted the remote server using a URL in order = to >>>>> obtain the javascript client. >>>>> When this script is loaded and ran on the client side browser, I am >>>>> assuming >>>>> that by default it uses >>>>> HTTP to send out the SOAP message to the server right? Which port doe= s >>>>> it >>>>> write to - similar to >>>>> Axis, 8080? >>>>> >>>>> Demetris wrote: >>>>> >>>>> >>>>>> >>>>>> Hey guys, >>>>>> >>>>>> =C2=A0the documentation says: >>>>>> "It is relatively straightforward to run a CXF service in a Tomcat >>>>>> container on z/OS". But the IBM OS >>>>>> is not a requirement correct? I can run this service on any Tomcat >>>>>> container running on any OS right? >>>>>> I know this is an elementary Q but I wanted to make sure there are n= ot >>>>>> OS-specific dependencies. >>>>>> >>>>>> Thanks >>>>>> >>>>>> Benson Margulies wrote: >>>>>> >>>>>> >>>>>>> >>>>>>> CXF has two things going on here. >>>>>>> >>>>>>> 1) you can ask the server to generate and deliver the javascript >>>>>>> client. >>>>>>> 2) you can create a 'dynamic client' that can talk to moderately >>>>>>> complex services. >>>>>>> >>>>>>> However, option 2 requires the entire CXF stack on the client, and = I >>>>>>> have no idea if J2ME has the necessary goodies. >>>>>>> >>>>>>> >>>>>>> On Wed, Aug 12, 2009 at 4:47 PM, Demetris >>>>>>> wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>>> >>>>>>>> Does CXF support client-side programming for Web Services? What we >>>>>>>> are >>>>>>>> after >>>>>>>> in one of our projects >>>>>>>> is to: >>>>>>>> (1) host web services (or at least a Soap engine) on mobile device= s >>>>>>>> (primarily running J2ME CDC) >>>>>>>> (2) build web service clients on mobile devices, either by >>>>>>>> discovering >>>>>>>> and >>>>>>>> utilizing WSDLs (to generate >>>>>>>> javascript stubs) or some other mechanism to allow them to generat= e >>>>>>>> the >>>>>>>> client code. >>>>>>>> >>>>>>>> Not sure how realistic this is at this stage but I am not finding >>>>>>>> much >>>>>>>> on >>>>>>>> (1) and a bit on (2). Many people >>>>>>>> have said that generating WSDLs on mobile devices is a difficult >>>>>>>> task >>>>>>>> so >>>>>>>> we >>>>>>>> are considering the off-the- >>>>>>>> device mechanisms. >>>>>>>> >>>>>>>> Daniel Kulp wrote: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> >>>>>>>>> On Tue August 11 2009 11:26:05 pm Demetris wrote: >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>> >>>>>>>>>> Do you know if Axis 1.x can generate document/literal or only >>>>>>>>>> rpc/encoded? I am wondering if setting >>>>>>>>>> the OPERATION_STYLE_PROPERTY to document would do the trick. >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> I believe Axis1 can do doc/literal. =C2=A0 JAX-RPC did require so= me >>>>>>>>> level >>>>>>>>> of >>>>>>>>> support for that so I'm pretty sure Axis1 implemented it. =C2=A0 = Not >>>>>>>>> sure >>>>>>>>> how to >>>>>>>>> go about configuring it to do so. =C2=A0 I'm not an Axis1 user. = =C2=A0:-) >>>>>>>>> >>>>>>>>> Dan >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>> >>>>>>>>>> Benson Margulies wrote: >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> Demetris, >>>>>>>>>>> >>>>>>>>>>> If your place has a big investment in RPC/encoded, perhaps one = of >>>>>>>>>>> you >>>>>>>>>>> would like to pick up the project that one of our committers >>>>>>>>>>> started >>>>>>>>>>> of adding RPC/encoded support to CXF. If you do it, you get to >>>>>>>>>>> ensure >>>>>>>>>>> that it works with your services :-). I'd be happy to mentor >>>>>>>>>>> someone >>>>>>>>>>> in figuring out where Dain left off. >>>>>>>>>>> >>>>>>>>>>> --benson >>>>>>>>>>> >>>>>>>>>>> On Tue, Aug 11, 2009 at 4:21 PM, Demetris >>>>>>>>>>> wrote: >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> Of course I do see infrastructures here in production still >>>>>>>>>>>> using >>>>>>>>>>>> Axis >>>>>>>>>>>> 1.x without any plans on >>>>>>>>>>>> migrating while other systems come into play with Axis 2 etc. >>>>>>>>>>>> and >>>>>>>>>>>> interoperability between the >>>>>>>>>>>> two sides is impossible - and of course the rest of us will ne= ed >>>>>>>>>>>> to >>>>>>>>>>>> sit >>>>>>>>>>>> in between and needing to >>>>>>>>>>>> do our own translations - not good. >>>>>>>>>>>> In any case, CFX is a pretty impressive project so I have a >>>>>>>>>>>> feeling >>>>>>>>>>>> I >>>>>>>>>>>> will be adapting it to my >>>>>>>>>>>> work. >>>>>>>>>>>> >>>>>>>>>>>> Cheers >>>>>>>>>>>> >>>>>>>>>>>> Daniel Kulp wrote: >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> On Tue August 11 2009 12:15:40 pm Demetris wrote: >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> That's what I figured ;) Thanks =C2=A0for the info Benson. >>>>>>>>>>>>>> >>>>>>>>>>>>>> Now regarding inteconnection of Web Services across >>>>>>>>>>>>>> implementations, >>>>>>>>>>>>>> if there is no bridge >>>>>>>>>>>>>> between the old RPC/encoded and CFX, at least I am assuming >>>>>>>>>>>>>> that >>>>>>>>>>>>>> newer >>>>>>>>>>>>>> versions would >>>>>>>>>>>>>> be able to handle SOAP calls across them or not? This is >>>>>>>>>>>>>> something >>>>>>>>>>>>>> I >>>>>>>>>>>>>> never tried/looked into >>>>>>>>>>>>>> while I worked exclusively with Axis so I was wondering. >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> Pretty much none of the modern SOAP toolkits support >>>>>>>>>>>>> RPC/encoded. >>>>>>>>>>>>> =C2=A0Axis2 doesn't. =C2=A0CXF doesn't. =C2=A0Metro/JAX-WS RI= doesn't. >>>>>>>>>>>>> =C2=A0Etc.... >>>>>>>>>>>>> Basically, rpc/encoded was such an interopability nightmare >>>>>>>>>>>>> that >>>>>>>>>>>>> it >>>>>>>>>>>>> really fell into the bucket of "You REALLY REALLY don't want = to >>>>>>>>>>>>> use >>>>>>>>>>>>> it." =C2=A0 =C2=A0If you want interopability, you really need= to migrate >>>>>>>>>>>>> to >>>>>>>>>>>>> one >>>>>>>>>>>>> of the literal forms. >>>>>>>>>>>>> >>>>>>>>>>>>> Dan >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> Benson Margulies wrote: >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> OK, that message is buried in the substrate somewhere. I'm >>>>>>>>>>>>>>> not >>>>>>>>>>>>>>> sure >>>>>>>>>>>>>>> that I agree with it :-) In practical terms, we just don't >>>>>>>>>>>>>>> have >>>>>>>>>>>>>>> the >>>>>>>>>>>>>>> code or RPC/encoded. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> I'm unaware of anything you can use to interconnect an old >>>>>>>>>>>>>>> Axis >>>>>>>>>>>>>>> RPC/encoded service with CXF. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> On Mon, Aug 10, 2009 at 11:00 PM, >>>>>>>>>>>>>>> Demetris >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>> >>>>>>>>> wrote: >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> Hi Benson, >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> the reason I mentioned JAX-WS is because a WSDL file that = I >>>>>>>>>>>>>>>> passed >>>>>>>>>>>>>>>> to WSDL2JS returned >>>>>>>>>>>>>>>> "RCP/encoded WSDLs are not supported in JAX-2.0". I had a >>>>>>>>>>>>>>>> feeling >>>>>>>>>>>>>>>> it >>>>>>>>>>>>>>>> is "neither here nor >>>>>>>>>>>>>>>> there" but I wanted to double-check - I think I know what >>>>>>>>>>>>>>>> the >>>>>>>>>>>>>>>> issue >>>>>>>>>>>>>>>> is now after reading the >>>>>>>>>>>>>>>> corresponding documentation but I will return and send mor= e >>>>>>>>>>>>>>>> info >>>>>>>>>>>>>>>> if >>>>>>>>>>>>>>>> I cannot resolve it. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> A separate question - is there a "bridge" between Axis WS >>>>>>>>>>>>>>>> and >>>>>>>>>>>>>>>> its >>>>>>>>>>>>>>>> tools and CFX? Can an Axis >>>>>>>>>>>>>>>> WS client call a CFX-implemented WS and vice versa or not? >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> Thanks >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> Benson Margulies wrote: >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> Demetris, >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> CXF includes the ability to build Soap 1.1 Javascript >>>>>>>>>>>>>>>>> clients >>>>>>>>>>>>>>>>> for >>>>>>>>>>>>>>>>> doc/lit and rpc/lit services. JAX-WS is relatively neithe= r >>>>>>>>>>>>>>>>> here >>>>>>>>>>>>>>>>> nor >>>>>>>>>>>>>>>>> there. >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> The code can be run in two modes. You can run the tool as= a >>>>>>>>>>>>>>>>> standalone, and you get Javascript that (with the utility >>>>>>>>>>>>>>>>> file >>>>>>>>>>>>>>>>> supplied) will run anywhere that has a compatible request >>>>>>>>>>>>>>>>> object. >>>>>>>>>>>>>>>>> Or, you can ask any CXF-implemented web service to delive= r >>>>>>>>>>>>>>>>> a >>>>>>>>>>>>>>>>> javascript client, and one will be returned. >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> Have you read >>>>>>>>>>>>>>>>> http://cwiki.apache.org/CXF20DOC/javascript-clients.html? >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> --benson >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> On Mon, Aug 10, 2009 at 5:40 PM, >>>>>>>>>>>>>>>>> Demetris >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>>>> >>>>>>>>> wrote: >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> And one more observation - because wsdl2js utilizes JAX-= WS >>>>>>>>>>>>>>>>>> 2.0, >>>>>>>>>>>>>>>>>> RPC/Encoded >>>>>>>>>>>>>>>>>> documents are not supported. Is that correct? >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> Thanks again >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> Demetris wrote: >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>> Ok now that I played a bit with wsdl2js I am beginning = to >>>>>>>>>>>>>>>>>>> understand what >>>>>>>>>>>>>>>>>>> you said below. >>>>>>>>>>>>>>>>>>> So one can use the wsdlurl in order to get the server t= o >>>>>>>>>>>>>>>>>>> return >>>>>>>>>>>>>>>>>>> the script >>>>>>>>>>>>>>>>>>> - can you please >>>>>>>>>>>>>>>>>>> clarify a few things since I am new to this - >>>>>>>>>>>>>>>>>>> 1. what kind of server are we talking about in this cas= e? >>>>>>>>>>>>>>>>>>> 2. The only way to generate the Javascript is through a >>>>>>>>>>>>>>>>>>> remote >>>>>>>>>>>>>>>>>>> server >>>>>>>>>>>>>>>>>>> + URL? If I have the WSDL >>>>>>>>>>>>>>>>>>> in my possesion how can I use this tool to generate the >>>>>>>>>>>>>>>>>>> script >>>>>>>>>>>>>>>>>>> of >>>>>>>>>>>>>>>>>>> me? >>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>> Thanks again >>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>> Benson Margulies wrote: >>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>> The tool is part of CXF, so it requires Java 1.5. Sinc= e >>>>>>>>>>>>>>>>>>>> its >>>>>>>>>>>>>>>>>>>> output is Javascript, I don't understand why you need = to >>>>>>>>>>>>>>>>>>>> run >>>>>>>>>>>>>>>>>>>> it >>>>>>>>>>>>>>>>>>>> under J2ME. >>>>>>>>>>>>>>>>>>>> In fact, you can just use the ?js URL form from the >>>>>>>>>>>>>>>>>>>> server >>>>>>>>>>>>>>>>>>>> to >>>>>>>>>>>>>>>>>>>> get the server to generate it on the fly. >>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>> On Mon, Aug 10, 2009 at 2:32 PM, >>>>>>>>>>>>>>>>>>>> Demetris >>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> wrote: >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>> Hi all, >>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>> =C2=A0I am interested in generating Javascript stubs = from a >>>>>>>>>>>>>>>>>>>>> WSDL >>>>>>>>>>>>>>>>>>>>> file - I am >>>>>>>>>>>>>>>>>>>>> assuming that the WSDL2js tool is the >>>>>>>>>>>>>>>>>>>>> appropriate tool to use. Has anyone used this tool so >>>>>>>>>>>>>>>>>>>>> that >>>>>>>>>>>>>>>>>>>>> I >>>>>>>>>>>>>>>>>>>>> can ask a couple of Qs? >>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>> (1) Which Java version is the tool built on? >>>>>>>>>>>>>>>>>>>>> (2) Can I used it under J2ME-CDC to generate stubs fo= r >>>>>>>>>>>>>>>>>>>>> mobile >>>>>>>>>>>>>>>>>>>>> devices? >>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>> Thanks in advanced >>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>> >>>>>>> >>>> >>>> >> >> >> > >