Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 39059 invoked from network); 16 Jul 2005 04:07:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Jul 2005 04:07:10 -0000 Received: (qmail 47665 invoked by uid 500); 16 Jul 2005 04:07:00 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 47651 invoked by uid 500); 16 Jul 2005 04:07:00 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 47634 invoked by uid 99); 16 Jul 2005 04:06:59 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jul 2005 21:06:59 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [209.68.5.16] (HELO relay02.pair.com) (209.68.5.16) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 15 Jul 2005 21:06:54 -0700 Received: (qmail 45352 invoked from network); 16 Jul 2005 04:06:47 -0000 Received: from unknown (HELO gandalf) (unknown) by unknown with SMTP; 16 Jul 2005 04:06:47 -0000 X-pair-Authenticated: 222.165.168.105 From: "Chathura Herath" To: , "'Dong Liu'" Subject: RE: [axis 2]Questions on the development process using Axis 2.0 Date: Sat, 16 Jul 2005 10:06:45 +0600 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: AcWIj8gsFo4KHt/lRISVR0UzGPB7JQBKdh7Q In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Checked: Checked by ClamAV on apache.org Message-Id: <20050716040656.D91E010FB2C9@asf.osuosl.org> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Thank you for your feedback. We came through this issue and at that time what we thought was to get the client side and serverside connection based on WS policy. We don't have a policy implementation for axis2 right now. A group of undergrads are doing some work on this right now. We have to differ this until such time a policy implementation becomes available. Regards, Chathura > -----Original Message----- > From: Dong Liu [mailto:edongliu@gmail.com] > Sent: Thursday, July 14, 2005 10:18 PM > To: axis-user@ws.apache.org; chathura@opensource.lk; deepal@opensource.lk; > edongliu@gmail.com > Subject: Re: [axis 2]Questions on the development process using Axis 2.0 > > Thank you all for the replies. > > I think WSDL is still the easy way to connect service-side development > to consumer-side development. Reading the machine-generated long WSDL > file always remind me a question whether we can have another way to > let both the service-side and consumer-side developers understand each > other easily. service.xml, in this sense, is a good option, or a point > to start. > > Cheers, > > Don > > > > On 7/12/05, Chathura Herath wrote: > > > > Don, > > If you are asking how to get the client codegened using the service.xml > and > > service impl classes; the answer is there is no way to do it directly. > One > > of the options is to hand write the client side SOAPEnvelop creation > part > > and use the call api to send the message. > > The other option I would say is to use the java2wsdl tool to get the > wsdl > > from the service implementation and then use the wsdl2java tool to > generate > > the clientside. > > > > One thing to note is that if you use the wsdl2java tool databinding is > > engaged automatically. > > > > Cheers > > Chathura > > > > > > > -----Original Message----- > > > From: Deepal Jayasinghe [mailto:deepal@opensource.lk] > > > Sent: Wednesday, July 13, 2005 9:48 AM > > > To: axis-user@ws.apache.org; Dong Liu > > > Subject: Re: [axis 2]Questions on the development process using Axis > 2.0 > > > > > > hi Don; > > > > > > you can write a client to consume a web service where web service only > > > contains service.xml (no wsdl file is present) , in that case you have > to > > > create the SOAPMessge by hand , use one of the MEPClient to send the > > > request > > > . And all these has to handle in the your client code since you do not > > > have > > > stubs. In fact in M2 we have don that.and I think following code will > help > > > you to do so , and which invoke the version service. > > > > > > > > > private String value; > > > private QName operationName = new QName("getVersion"); > > > private OMElement createEnvelope() { > > > OMFactory fac = OMAbstractFactory.getOMFactory(); > > > OMNamespace omNs = > fac.createOMNamespace("http://localhost/my", > > > "my"); > > > OMElement method = fac.createOMElement("Version", omNs); > > > OMElement value = fac.createOMElement("myValue", omNs); > > > method.addChild(value); > > > return method; > > > } > > > > > > public boolean inVokeTheService() { > > > try { > > > OMElement payload = createEnvelope(); > > > Call call = new Call(); > > > call.setTo(targetEPR); > > > call.setTransportInfo(Constants.TRANSPORT_HTTP, > > > Constants.TRANSPORT_HTTP, false); > > > > > > OMElement result = > > > (OMElement) > > > call.invokeBlocking(operationName.getLocalPart(), payload); > > > StringWriter writer = new StringWriter(); > > > result.serializeWithCache(new > > > > OMOutput(XMLOutputFactory.newInstance().createXMLStreamWriter(writer))); > > > writer.flush(); > > > value = writer.toString(); > > > return true; > > > } catch (AxisFault axisFault) { > > > value = axisFault.getMessage(); > > > return false; > > > } catch (XMLStreamException e) { > > > value = e.getMessage(); > > > return false; > > > } > > > } > > > > > > > > > Deepal > > > > > > > > > ----- Original Message ----- > > > From: "Dong Liu" > > > To: ; > > > Sent: Tuesday, July 12, 2005 10:26 PM > > > Subject: Re: [axis 2]Questions on the development process using Axis > 2.0 > > > > > > > > > Hi, Chathura, > > > > > > Thank you for your reply to my questions. Now I understand the > > > purposes of the different parts in the user guide of axis 2. > > > > > > I like the approach that using the java classes and the service.xml to > > > deploy web services. But I am still thinking how to develop clients to > > > consume such services, if no wsdls are present. Is it possible to > > > develop a client just based on the service.xml? > > > > > > Cheers, > > > > > > Don > > > > > > On 7/12/05, Chathura Herath wrote: > > > > Hi Don, > > > > > > > > If the documentation is blurred we need to fix it, but see my > comments > > > > below > > > > for each of your queries. > > > > > > > > > -----Original Message----- > > > > > From: Dong Liu [mailto:edongliu@gmail.com] > > > > > Sent: Monday, July 11, 2005 10:17 PM > > > > > To: axis-user@ws.apache.org; axis-dev@ws.apache.org > > > > > Subject: [axis 2]Questions on the development process using Axis > 2.0 > > > > > > > > > > Hi, > > > > > > > > > > I am confused about the development process when using Axis 2.0. > As > > > > > described in the user guide, the process will be > > > > > > > > > > 1. write the class interfaces using Java; > > > > > 2. write the service.xml; > > > > > 3. create the .aar achieve and deploy it; > > > > > 4. generate the skeleton code based on the *WSDL* file; > > > > > 5. implement the logic of services; > > > > > 6. create *another achieve* again and deploy it; > > > > > 7. write the client code in either a dynamic or a static fashion. > > > > > > > > > > My questions are > > > > > > > > > > 1. what is purpose of the first deployment using the achieve have > only > > > > > class interfaces and service.xml? > > > > > > > > This is an sample with no data binding(Note it echo's the OMElement. > > > This > > > > was the sample we had for M2 where we didn't have databinding > support) > > > So > > > > if > > > > the user want to be smart and do everyting manually that's the way > to do > > > > it. > > > > This example will tell you what are the must have's if you are to > make > > > it > > > > work. > > > > > > > > > > > > > 2. where does the WSDL come from? It is hard for the developer to > code > > > > > it by hand. > > > > > > > > You of course can write it by hand, the sample is based on the fact > that > > > > you > > > > start with the contract, which is the wsdl. But.. we have a tool > that > > > does > > > > the java2wsdl part. Actually we use the Axis1 java2wsdl tool and I > > > belive > > > > we > > > > have a eclipse pluigin for that too. Am I right Ajith??? > > > > > > > > > > > > > 3. what is the relationship between the first aar and the second > one? > > > > > > > > No relationship.. The second one is a databound (a more > comprehensive > > > and > > > > practical I would say) example that emphasize the axis2 data binding > > > > support. > > > > > > > > > > > > In a nut shell we are not trying to invent a new development > process. > > > (But > > > > we have our own deployment model, programming model too I would > say..) > > > > > > > > > > > > Thanks > > > > Chathura > > > > > > > > > > > > > > > > > > > > > > > > > > > > >