• Post Reply Bookmark Topic Watch Topic
  • New Topic

Consuming a WS from another WS

 
Enrico Viappiani
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I developed a WS using axis2,eclipse and WTP.
I wrote the service, and generated the client via wtp. All works great.
Then i wrote a servlet, deployed the client in tomcat and call the WS via servlet-->client-->service.
I get a well known WS-A error:

servlet side:
GRAVE: Servlet.service() for servlet LoginController threw exception
org.apache.axis2.AxisFault: The server did not recognise the action which it received:
at org.apache.axis2.handlers.addressing.AddressingInFaultHandler.invoke(AddressingInFaultHandler.java:114)

service side:
[WARN] triggerActionNotSupportedFault: messageContext: [MessageContext: logID=urn:uuid:4B9F946496F95F9B361321730538559] problemAction: urn:RequestList
[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)

I've read many topics, and the solution seems to be adding <actionMapping>urn:requestList</actionMapping> to the operation unb the service.xml ...
but it doesn't work, at least for me... I'm literally gettin mad...

from the clientStub :




and this is the service.xml


 
Enrico Viappiani
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm engaging SOAPMonitor module to catch the soap messages.. but it doesn't work!!
the service receive something because catalina error display the error message.. but no soap message were detected!! any help?


OK Solved, generation tools adds some garbage after the "ip:port/axis2/services" etc.. so the ip was correct and axis receive the message, but the service was not there.. so no understandable SOAP message

the above code is all correct
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!