i am trying to build a web service and while trying to publish web services using HP anywhere eclipse it is throwing error axis2 runtime error
can any one help me
Subhash T Rao
Please provide more info about your publishing web service via HP Anywhere and the error data you can provide (the log itself, screenshots)
Hi Yossi Gutin
I would like to clarify your question. You use HPA IDE Eclipse to publish Web Service and it fails, while Eclipse without HPA would not fail doing it. Is it correct?
Yes i am trying to publish web services using HPA and i want to consume the in my app
Can you please provide more info how can we reproduce this error in our environment ?
i am trying to consume the web services in my sencha app and i have written a web services java file and trying to publish the using web services and that time i am getting the Axis 2 error.
i am new to HPA and want to using web services in my sencha app. can you give me suggestion how to do.
i have seen Jersey code but i dont know how build web services using this. if you have any document which says how to configure the jersey and consume the web services this will help me.
thanks in advance
Jersey is more suitble for RESTfull web services.
It is quiet easy to build such services using jersy.
In HP Anywhere templates, you will notice that there is a simple rest based web service
In this case, the service is hosted under context /report
Making a GET request will trigger the "getAll" method
Making a GET request will id parameter will trigger the "getItem" method
Making a POST request will trigger the "editItem" method
Making a DELETE request with id param will trigger the "deleteItem" method and so on.
You can see more jersey examples/tutorials at:
To resolve axis dependancy error you can add axis dependency into pom.xml
First I used only axis but still had few remaining dependancies. After adding jaxrpc all errors are gone.
Not sure if there's other way but I needed to execute "Run HP Anywhere app" to force download of axis jar from Maven.
After that you open build path properties and under libraries add M2_REPO variable and select edit->extension to navigate path to axis.jar
Now, I would appreciate if you share how do you access generated stub from the application?
Just a short correction