Jay!
i have tried and i have a solution, that i'm not very happy with the concept, 
that i call a service from an other service.
And i haven't any problem. and you should not have any problem either. 
But i will suggest you that change your concept and try call directly your 
service from you oridinary program.
othervise if you have done it in right way, you shouldn't have any problem with 
this kind of calling either...
/l



----- Original Message ----
From: Jay Chauhan <[EMAIL PROTECTED]>
To: [email protected]
Sent: Thursday, August 7, 2008 9:45:15 AM
Subject: Re: Axis2 Webservice called from another websiervice


Hi Lars, 

In order to eliminate that possibility I have created a static method 
ServiceBClient.callService()  which works just fine if i call from stand along 
program, so the ports  and URLs are Okay. Problem, happens only when i call it 
from within another service.

As an interim solution I am using messaging to call one service from another , 
however, i always why wonder why a webservice should not be callable from each 
other.

Thanks, 

-Jay






On Wed, Aug 6, 2008 at 11:55 PM, Lars Ericsson <[EMAIL PROTECTED]> wrote:

Hi Jay!
 
Also, you try run your client from webserviceA and you get those error-messages!
The errors are about addressing problem. have you check the if your url, and 
port are right?
 
/l



----- Original Message ----
From: Jay Chauhan <[EMAIL PROTECTED]>
To: [email protected]; [EMAIL PROTECTED]
Sent: Friday, August 1, 2008 10:57:02 PM
Subject: Re: Axis2 Webservice called from another websiervice


Hi Axis Team, 

I did some looking around and it is claimed to have fixed in jira  

http://issues.apache.org/jira/browse/AXIS2-2231 

However, the problem still exists, I wonder if someone can give a reply, 

Thanks, 

-Jay
 


On Thu, Jul 31, 2008 at 10:12 PM, Jay Chauhan <[EMAIL PROTECTED]> wrote:

Hi, 

I have two Axis2 webservices, A and B. these services use AXIOM databinding.

I have a client ServiceBClient.java , when I call the 
SericeBClient.callService() from standalone program it works just fine as it 
should. However, when I try to call the same code from within Service A  then i 
get the following error:

=====================
[WARN] triggerActionNotSupportedFault: messageContext: [MessageContext: 
logID=urn:uuid:02DD9A9B9453513B981217564336177] problemAction:\
 urn:anonOutonlyOpResponse

[ERROR] The [action] cannot be processed at the receiver.
org.apache.axis2.AxisFault: The [action] cannot be processed at the receiver.
        at 
org.apache.axis2.addressing.AddressingFaultsHelper.triggerAddressingFault(AddressingFaultsHelper.java:373)
        at 
org.apache.axis2.addressing.AddressingFaultsHelper.triggerActionNotSupportedFault(AddressingFaultsHelper.java:336)
        at 
org.apache.axis2.handlers.addressing.AddressingValidationHandler.checkAction(AddressingValidationHandler.java:149)
        at 
org.apache.axis2..handlers.addressing.AddressingValidationHandler.invoke(AddressingValidationHandler.java:55)
=====================

I have the services.xml as suggested in  AXIOM service section of Quick start 
guide:   http://ws.apache.org/axis2/1_4/quickstartguide.html

What can I do to call a webservice from another, 

Any suggestion is appreciated.

-Jay


      

Reply via email to