Return-Path: X-Original-To: apmail-axis-java-user-archive@www.apache.org Delivered-To: apmail-axis-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 172A0687D for ; Fri, 15 Jul 2011 20:25:00 +0000 (UTC) Received: (qmail 43468 invoked by uid 500); 15 Jul 2011 20:24:58 -0000 Delivered-To: apmail-axis-java-user-archive@axis.apache.org Received: (qmail 43389 invoked by uid 500); 15 Jul 2011 20:24:57 -0000 Mailing-List: contact java-user-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@axis.apache.org Delivered-To: mailing list java-user@axis.apache.org Received: (qmail 43381 invoked by uid 99); 15 Jul 2011 20:24:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jul 2011 20:24:57 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of hedouxt@hotmail.com designates 65.55.90.151 as permitted sender) Received: from [65.55.90.151] (HELO snt0-omc3-s12.snt0.hotmail.com) (65.55.90.151) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jul 2011 20:24:48 +0000 Received: from SNT118-W47 ([65.55.90.137]) by snt0-omc3-s12.snt0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 15 Jul 2011 13:24:27 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_65ec0c67-1b3c-40fe-a885-9a31b8ded94f_" X-Originating-IP: [89.84.164.246] From: Tony HEDOUX To: Subject: RE: Can an Axis Webservice be called just like a local method? Date: Fri, 15 Jul 2011 22:24:26 +0200 Importance: Normal In-Reply-To: <743EEE597D643D4D89FE7E941E56C8B5025B0755172C@whryemsx01.whisolutions.com> References: <9C3B47F84C2F814DA02F301C0158838A03F2267A@xmb-sjc-222.amer.cisco.com>,<743EEE597D643D4D89FE7E941E56C8B5025B0755172C@whryemsx01.whisolutions.com> MIME-Version: 1.0 X-OriginalArrivalTime: 15 Jul 2011 20:24:27.0731 (UTC) FILETIME=[31F01A30:01CC432D] X-Virus-Checked: Checked by ClamAV on apache.org --_65ec0c67-1b3c-40fe-a885-9a31b8ded94f_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Hi=2C You can call it like a local java method if your web service and your= client application are in the same servlet. But why do you want to do this= ? Performance issue? Maintenance issue? Ressource sharing? Tony.From: jcari= sti@whisolutions.com To: java-user@axis.apache.org Date: Fri=2C 15 Jul 2011 15:54:42 -0400 Subject: RE: Can an Axis Webservice be called just like a local method? We have an application that exposes both web services and web pages. The w= eb pages create request objects and call the service object directly=2C skipping the entire Soap/Rest/XML layer. We can do this easil= y=2C since we have deployed Axis2 with Spring=2C and our web page has acces= s (via dependency injection) to the same service object that is used by Axi= s2. I=92m not sure if this fits for you=2C but it works in our situation. It=92s a little risky=2C since it would be= possible to create an invalid request object that doesn=92t follow the XML= schema rules present in WSDL. Validation in the business layer and good u= nit test coverage minimizes the risk=2C but adds coding/maintenance overhead. =20 From: Yashwanth Rajaram -X (yrajaram - ZENSAR TECHNOLOGIES INC at Cisco) [mailto:yrajaram@cisco.com]=20 Sent: Friday=2C July 15=2C 2011 3:39 PM To: axis-user@ws.apache.org Subject: Can an Axis Webservice be called just like a local method? =20 =20 Hi All: =20 We have implemented our own module which is engaged when invoking a Webserv= ice. This Webservice serves its purpose for external clients. However for c= lient applications that run within the same host=2C (to avoid network hop) we would like to invoke thi= s Webservice as a local/Java method call and we want the module to be invok= ed too. Is there a way to do this? =20 thanks=2C -- Yashwanth =20 STATEMENT OF CONFIDENTIALITY: The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient=2C please notify WHI Solutions immediately at gc@whisolutions.com= =2C and destroy all copies of this message and any attachments. = --_65ec0c67-1b3c-40fe-a885-9a31b8ded94f_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable
Hi=2C
 =3B
You can call it like a local java method =3Bif you= r web service and =3Byour client application are in the same servlet. =3B
But why do you want to do this? Performance issue? Maintenanc= e issue? Ressource sharing?
 =3B
Tony.

From: jcaristi@whisolutions.com
To: java-user@axis.apache.org
D= ate: Fri=2C 15 Jul 2011 15:54:42 -0400
Subject: RE: Can an Axis Webservi= ce be called just like a local method?

We ha= ve an application that exposes both web services and web pages. =3B The= web pages create request objects and call the service object directly=2C skipping the entire Soap/Rest/XML layer.  =3BWe can do thi= s easily=2C since we have deployed Axis2 with Spring=2C and our web page ha= s access (via dependency injection) to the same service object that is used= by Axis2. =3B I=92m not sure if this fits for you=2C but it works in our situation. =3B It=92s a little risky=2C since it w= ould be possible to create an invalid request object that doesn=92t follow = the XML schema rules present in WSDL. =3B Validation in the business la= yer and good unit test coverage minimizes the risk=2C but adds coding/maintenance overhead.  =3B =3B


From: Yashwanth Rajaram -X (yrajaram - ZENSAR TECHNOLOGIES INC at Cisco) [mailto:yrajaram@cisco.com]
Sent: Friday=2C July 15= =2C 2011 3:39 PM
To: axis-user@ws.apache.= org
Subject: Can an Axis Web= service be called just like a local method?

 =3B

 =3B

Hi All:

 =3B

We have implemented our own module which is engaged whe= n invoking a Webservice. This Webservice serves its purpose for external cl= ients. However for client applications that run within the same host=2C (to avoid network hop) we would like to invoke thi= s Webservice as a local/Java method call and we want the module to be invok= ed too. Is there a way to do this?

 =3B

thanks=2C

--

Yashwanth

 =3B



STATEMENT OF CONFIDENTIALITY= :



The information contained in this electronic message and any attachments to=
this message are intended for the exclusive use of the addressee(s) and may=
contain confidential or privileged information. If you are not the intended=
recipient=2C please notify WHI Solutions immediately at gc@whisolutions.com= =2C
and destroy all copies of this message and any attachments.
= --_65ec0c67-1b3c-40fe-a885-9a31b8ded94f_--