On Sat, Jul 16, 2011 at 3:16 AM, Caristi, Joe <jcari...@whisolutions.com>wrote:
> ** > > Using our strategy, this would not happen, as we are bypassing Axis2 > completely. You may want to consider the Axis2 local transport. I’ve never > used it, but it seems like what you need. > We have been using the local transport for various things for sometime, and it works. > **** > > ** ** > > http://axis.apache.org/axis2/java/core/docs/Axis2ArchitectureGuide.html*** > * > ------------------------------ > > *From:* Yashwanth Rajaram -X (yrajaram - ZENSAR TECHNOLOGIES INC at Cisco) > [mailto:yraja...@cisco.com] > *Sent:* Friday, July 15, 2011 5:37 PM > > *To:* **java-user@axis.apache.org** > *Subject:* RE: Can an Axis Webservice be called just like a local method? > **** > > ** ** > > Thanks Joe, Tony,**** > > ** ** > > In such case would the engaged module also be invoked? **** > > Say you have WSS/Rampart engaged for that webservice would hose be invoked > when calling that webservice as a java method call?**** > > ** ** > > thanks,**** > > --**** > > Yashwanth**** > > ** ** > > *From:* Caristi, Joe [mailto:jcari...@whisolutions.com] > *Sent:* Friday, July 15, 2011 12:55 PM > *To:* **java-user@axis.apache.org** > *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 > web pages create request objects and call the service object directly, > skipping the entire Soap/Rest/XML layer. We can do this easily, since we > have deployed Axis2 with Spring, and our web page has access (via dependency > injection) to the same service object that is used by Axis2. I’m not sure > if this fits for you, but it works in our situation. It’s a little risky, > since it would be possible to create an invalid request object that doesn’t > follow the XML schema rules present in WSDL. Validation in the business > layer and good unit test coverage minimizes the risk, but adds > coding/maintenance overhead. **** > ------------------------------ > > *From:* Yashwanth Rajaram -X (yrajaram - ZENSAR TECHNOLOGIES INC at Cisco) > [mailto:yraja...@cisco.com] > *Sent:* Friday, July 15, 2011 3:39 PM > *To:* **axis-u...@ws.apache.org** > *Subject:* Can an Axis Webservice be called just like a local method?**** > > ** ** > > ** ** > > Hi All:**** > > ** ** > > We have implemented our own module which is engaged when invoking a > Webservice. This Webservice serves its purpose for external clients. However > for client applications that run within the same host, (to avoid network > hop) we would like to invoke this Webservice as a local/Java method call and > we want the module to be invoked too. Is there a way to do this? **** > > ** ** > > thanks,**** > > --**** > > Yashwanth**** > > ** ** > > ** ** > ------------------------------ > > 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, please notify WHI Solutions immediately at g...@whisolutions.com, > and destroy all copies of this message and any attachments.**** > > ------------------------------ > 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, please notify WHI Solutions immediately at g...@whisolutions.com, > and destroy all copies of this message and any attachments. >