• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Consuming a WS from another WS

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic