I created Axis2
web service as a maven project ProjectB
and packaged it as jar.I added this ProjectB
jar as dependency to the another maven project which is ProjectA
in pom.xml.
jar file of my ProjectB
added as dependency to ProjectA
pom.xml
.
<dependency>
<groupId>axis2</groupId>
<artifactId>Axis2WebService</artifactId>
<version>0.1</version>
</dependency>
In web services jar which I added to another project doesn't contain Webcontent
folder. So, my concern would be
How to invoke my webservice which is inside jar in the
ProjectA
?Do I need to add anything in my
web.xml
ofProjectA
in order to find my webservice?How can I access my webservice in the browser(i.e.
http://localserver:port/ProjectA/Myservice
). Is this the right way to access my webservice?Do I need to again specify all axis2 dependent jars in
projectA
pom.xml or Axis 2 servlets mappings inProjectA
web.xml?
I am struck on this for a day.Can someone please help me?
ProjectA
is the not he webservice client.It's our main webapp project which consists all the functionality of our Project.ProjectB
is Webservice which entirely independent ofProjectA
.I just want to deployProjectB
as a Jar file inside theProjectA
library.So, I got a question what should mention inweb.xm
in order to invoke webservice as the service resides in the jar file. – Gibbie