(Please check also the NEW update Tutorial with Eclipse Indigo here) The purpose of these series Tutorial (updated with eclipse Helios) is to introduce tools needed, setup and initial guidelines for Service Oriented Applications. Since there are many tutorials out there, this text will provide urls that point to each step and fill any gap between them. Web Services, Service Orchestration, Enterprise Service Buses and Business Rules Engine will be explored during these tutorials. The tool that we will mainly use as development platform is Eclipse. One might debate for NetBeans 6 (i.e. for a fair comparison see http://www.javaworld.com/javaworld/jw-03-2008/jw-03-java-ides0308.html?page=4). It's plugin ecosystem, OSGi based architecture makes it though my personal favorite choice.
We will start by just downloading the latest version of Eclipse. Download the EE bundle. Although one could use Yoxos and create a custom Eclipse download, we will just use Eclipse's update feature and install things as we go. You will need also a JDK. During this tutorial jdk1.6.0_12 is used.
These tutorials use Eclipse 3.6.0 (helios). Just unzip your Eclipse file on your hard disk. As a rule of thumb, try to have different Eclipse installations for different needs, thus making your environment lighter. I.e. don't load your Java EE Eclipse with C/C++ plugins. (I have it under C:\eclipse-jee-helios-win32)
Creating Bottom Up web services is the most simpler way, since you just make your POJO and you let to Eclipse the hard work to create WSDL, deploy service, etc.
Before starting your web services development, we need Apache Tomcat. So, download it and install it on your machine. During this tutorial we have used Apache Tomcat 6.0.29 Server. I used Windows Service Installer (since during this tutorial is made on Windows Vista. Linux would be a much more serious choice! ).
To configure your Apache Server in Eclipse,
· Open Window -> Preferences -> Server -> Runtime Environments to create a Tomcat installed runtime.
· Click on Add... to open the New Server Runtime dialog, then select your runtime under Apache (Apache 6.0 from the list). “Create a new local server” must be checked when adding the Apache Tomcat runtime environment. (This is usefull so not to mess up your actual web services with your web services that you are developing and testing)
· Put your Tomcat installation dir e.g. C:\Program Files\Apache Software Foundation\Tomcat 6.0 and finish.
· In the Servers panel, you will see the Tomcat server Stopped. In the Project Explorer view, a Server configuration will appear.
· If you run the Server you might encounter an error if your Tomcat is already running. So you must configure different ports for your installation , otherwise you must stop your Tomcat server while you are developing and testing your web services. If you double click the server, the local configuration will appear. Change the ports as you wish and the Right Click the server Icon and select Start to start the server. (Click Unblock on any firewall notices)
Before continuing we will need Apache Axis( an implementation of the SOAP). Download it from here. (This tutorial uses axis2-1.5.2)
Save it for example on c:\axis2-1.5.2 and point Eclipse WTP to downloaded Axis2 Runtime. Open Window -> Preferences -> Web Services -> Axis2 Preferences and put there the path of Axis2.
On preferences check Generate an interface for the skeleton and Click OK
A nice Creating Bottom Up Web Service tutorial could be found here with similar action. However in this tutorial things are updated.
Create a project "ResourceA" with the support of Axis2 features. Open File -> New -> Other... -> Web -> Dynamic Web Project
On the configuration click Modify..and check the Axis2 Web Services, click OK and Finish
Create a package named pkg (Right click on Java Resources ->New->Package) and a class name MyService (Right click on Java Resources->New->Class) . At the end you will have something like the following:
Write the small Java code:
public class MyService {
public MyService() {
}
public Boolean Configure(String param, String val){
return true;
}
public Boolean StartMe(){
return true;
}
public Boolean StopMe(){
return true;
}
public String getStatus(){
return "No status available!";
}
}
Save it and Select the MyService.java file Right click and (down on the menu) Web Services -> Create Web Service
On the window that appears just click the Web Service Run Time and on the dialog select Apache Axis2
Click Next and leave the default services.xml.
Click Next and if prompted Start the server (remember here the ports otherwise the server will not run!) If something goes wrong, just procced, finish the wizard and then go to the Servers and Right click to start the Tomcat server at localhost)
The ResourceA now is deployed and start in our Tomcat server (remember the Eclipse copy of Tomcat (listens on 8081) not your system Tomcat (listens on 8080))
Now if you Select the ResourceA project, right-click and select Run -> Run As -> Run on Server you will go to http://localhost:8081/ResourceA/ (At the first time you run this wizard, you need to specify the Tomcat. You can check on Always use this server when running this project)
You will get the home page:
Click on services. Check that your web service is Active. Check also the available Operations:
If you click on the MyService link you will get the WSDL of your service (http://localhost:8081/ResourceA/services/MyService?wsdl)
Copy this link on your clipboard.
Go to menu Run-> Launch the Web Services Explorer, and select from the icons the WSDL
Click on WSDL Main and paste the wsdl address, click Go.
The service will open. Just go for ie MyServiceSoap11Binding find the getStatus and click Go. A Soap call will be invoked and the message in the Body of the response will appear.
During this tutorial we created our first Web Service with Eclipse Web Tools Platform. In this tutorial here a Java client is also created that utilizes a web service.
To deploy your service on your Tomcat server, just right click the project ResourceA choose Export->WAR file.
Probe further:
The alternative way of Top-Down can be found in other tutorials. Check also a nice tutorial here.
Here you can find a nice getting started guide with Web Tools Platform.
Great tutorial, thank you.
-Asaf
I tried a lot to set up web services but nothing will happen ,
From your tutorial i learnrd a lot , and successfully run it in first attemp .
Gaurav
This article was really vry helpful....Thanks
Learned lot of WS from this tutorial....was able to execute perfectly....make sure to use exact versions mentioned.
I used axis 1.5.x version it showed error here and there when I tried to follow this and other tutorials on net. (Ex: Error, Please select WSDL, OND jar mismatch errors). Then i landed on this tutorial and I updated axis jar to 1.6 and everything was under control then, finished all eclipse axis tutorials in half day.
with 1.5.x jar I struggled for 2-3 days. Thanks a lot. Was very useful.
Those who get error, please make sure, you have latest jars. jdk 1.6, axis 1.6 and eclipse 3.7 and I hope it will do good after that.
Christos,
I am getting some errors when deploying this to eclipse helios, axis2, tomcat6:
Error: java.lang.ClassCastException: org.apache.axis2.classloader.JarFileClassLoader cannot be cast to org.apache.axis2.deployment.DeploymentClassLoader
Is this some jar incompatability issue?
probably they are not compatible. Please check the correct list of software versions used for the tutorial.
[INFO] The MyService service, which is not valid, caused java.lang.ClassCastException: org.apache.axis2.classloader.JarFileClassLoader cannot be cast to org.apache.axis2.deployment.DeploymentClassLoader
at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:131)
at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:101)
at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:178)
at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:82)
at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:661)
at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:337)
at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:241)
at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:131)
at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:284)
at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95)
at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:567)
at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:452)
at org.apache.axis2.webapp.AxisAdminServlet.init(AxisAdminServlet.java:56)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1201)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1114)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1021)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4957)
at org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5284)
at org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5279)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
[INFO] org.apache.axis2.deployment.DeploymentException: org.apache.axis2.classloader.JarFileClassLoader cannot be cast to org.apache.axis2.deployment.DeploymentClassLoader
Please use axis2-1.5.2 instead of axis2-1.5.5 you wont get this error
Can anybody look into the above error. Using Tomcat 7, Axis2-1.5.5, JDK1.6, Eclipse-Helios
Probably a bug in Axis2-1.5.5, work successfully with Axis2-1.5.2.
Download Axis2-1.5.2 change settings in Eclipse Preferences window to user 1.5.2 version then
recreate and run project.
It's not a bug in Axis 1.5.5, you just need to use Axis 1.6 with Tomcat 6
When deploying web service to the axis environment, I received 'IWAB0489E Error when deploying Web service to Axis runtime'. If someone receive this, the fix is in the wizard where you pickup 'Web Service Type' as 'Bottom up Java bean Web Service'. Make sure the 'Configuration' in the top section points to 'web service runtime:' as 'Apache axis2'. For me it was defaulted to 'Apache Axis' and i couldn't complete this tutorial.
Hello!
I am new to this subject and tried to follow your steps above. I am using the JDK1.6.0_23, Eclipse Java EE IDE for Web Developers, version Helios Service Release 1 (Build ID: 20100917-0715), Apache Tomcat 6.0.32, and Apache Axis2-1.5.54. I went through the steps above and could see the "Welcome!" page of the Apache Software Foundation on http://localhost:8080/ResourceA/. The "Validate" and "Administration" links redirect me to new pages, not so the "Services", where the Web site could not be found (http://localhost:8080/ResourceA/services/listServices). On the "Validate" page, however, I get an error message at the part "Examining Version Service". What do you think may be the cause for it?
Thank you for your help!
Sae1962
Notice: Here is the complete page content for your convenience:
Console:
16.05.2011 16:01:39 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre6\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:/Program Files/Java/jre6/lib/i386;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;c:\Program Files\Common Files\Roxio Shared\DLLShared\;c:\Program Files\Common Files\Roxio Shared\DLLShared\;c:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\doxygen\bin;C:\Program Files\Ruby192\bin;C:\Program Files\Hewlett-Packard\IAM\bin;C:\Program Files\Java\jdk1.6.0_20;C:\Program Files\Java\jsdk2.1;C:\Program Files\Notepad2\;C:\Program Files\Java\WTK2.5.2_01\bin\;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;SERVLET_DIR\jsp.jar;SERVLET_DIR\servlet.jar
16.05.2011 16:01:40 org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNUNG: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:ResourceA' did not find a matching property.
16.05.2011 16:01:41 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
16.05.2011 16:01:41 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 3049 ms
16.05.2011 16:01:41 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
16.05.2011 16:01:41 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.32
[ERROR] Unable to find config file. Creating new servlet engine config file: /WEB-INF/server-config.wsdd
[INFO] Clustering has been disabled
[INFO] Deploying module: addressing-1.5.4 - file:/C:/Users/Saban/workspace/Java/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/ResourceA/WEB-INF/modules/addressing-1.5.4.mar
[INFO] Deploying module: metadataExchange-1.5.4 - file:/C:/Users/Saban/workspace/Java/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/ResourceA/WEB-INF/modules/mex-1.5.4.mar
[INFO] Deploying module: mtompolicy-1.5.4 - file:/C:/Users/Saban/workspace/Java/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/ResourceA/WEB-INF/modules/mtompolicy-1.5.4.mar
[INFO] Deploying module: ping-1.5.4 - file:/C:/Users/Saban/workspace/Java/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/ResourceA/WEB-INF/modules/ping-1.5.4.mar
[INFO] Deploying module: script-1.5.4 - file:/C:/Users/Saban/workspace/Java/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/ResourceA/WEB-INF/modules/scripting-1.5.4.mar
[INFO] Deploying module: soapmonitor-1.5.4 - file:/C:/Users/Saban/workspace/Java/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/ResourceA/WEB-INF/modules/soapmonitor-1.5.4.mar
[INFO] Deploying Web service: MyService - file:/C:/Users/Saban/workspace/Java/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/ResourceA/WEB-INF/services/MyService/
16.05.2011 16:01:52 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
[INFO] Deploying Web service: version.aar - file:/C:/Users/Saban/workspace/Java/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/ResourceA/WEB-INF/services/version.aar
[WARN] No transportReceiver for org.apache.axis2.transport.http.AxisServletListener found. An instance for HTTP will be configured automatically. Please update your axis2.xml file!
16.05.2011 16:01:52 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
16.05.2011 16:01:52 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/136 config=null
16.05.2011 16:01:52 org.apache.catalina.startup.Catalina start
INFO: Server startup in 11552 ms
[ERROR] Unable to find config file. Creating new servlet engine config file: /WEB-INF/server-config.wsdd
null
null
Axis2 Happiness Page
Examining webapp configuration
Essential Components
Found Apache-Axis (org.apache.axis2.transport.http.AxisServlet)
at C:\Users\Saban\workspace\Java\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\ResourceA\WEB-INF\lib\axis2-transport-http-1.5.4.jar
Found Jakarta-Commons Logging (org.apache.commons.logging.Log)
at C:\Users\Saban\workspace\Java\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\ResourceA\WEB-INF\lib\commons-logging-1.1.1.jar
Found Streaming API for XML (javax.xml.stream.XMLStreamReader)
at an unknown location
Found Streaming API for XML implementation (org.codehaus.stax2.XMLStreamWriter2)
at C:\Users\Saban\workspace\Java\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\ResourceA\WEB-INF\lib\wstx-asl-3.2.9.jar
The core axis2 libraries are present.
Note: Even if everything this page probes for is present, there is no guarantee your Axis Service will work, because there are many configuration options that we do not check for. These tests are necessary but not sufficient
Examining Version Service
There was a problem in Axis2 version service , may be the service not available or some thing has gone wrong. But this does not mean system is not working ! Try to upload some other service and check to see whether it is working.
Examining Application Server
Servlet version
2.5
Platform
Apache Tomcat/6.0.32
Examining System Properties
java.runtime.nameJava(TM) SE Runtime Environmentsun.boot.library.pathC: \Program Files\Java\jre6\binjava.vm.version19.1-b02shared.loader java.vm.vendorSun Microsystems Inc.java.vendor.urlhttp: //java.sun.com/path.separator;java.vm.nameJava HotSpot(TM) Client VMtomcat.util.buf.StringCache.byte.enabledtruefile.encoding.pkgsun.iouser.countryDEsun.java.launcherSUN_STANDARDsun.os.patch.levelService Pack 2java.vm.specification.nameJava Virtual Machine Specificationuser.dirC: \Program Files\eclipse-jee-helios-SR1-win32java.runtime.version1.6.0_24-b07java.awt.graphicsenvsun.awt.Win32GraphicsEnvironmentjava.endorsed.dirsC: \Program Files\Apache Software Foundation\Tomcat 6.0\endorsedos.archx86java.io.tmpdirC: \Users\Saban\AppData\Local\Temp\line.separator java.vm.specification.vendorSun Microsystems Inc.user.variant java.naming.factory.url.pkgsorg.apache.namingos.nameWindows Vistasun.jnu.encodingCp1252java.library.pathC: \Program Files\Java\jre6\bin;.;C: \Windows\Sun\Java\bin;C: \Windows\system32;C: \Windows;C: /Program Files/Java/jre6/bin/client;C: /Program Files/Java/jre6/bin;C: /Program Files/Java/jre6/lib/i386;C: \Program Files\Common Files\Microsoft Shared\Windows Live;C: \Windows\system32;C: \Windows;C: \Windows\System32\Wbem;c: \Program Files\Common Files\Roxio Shared\DLLShared\;c: \Program Files\Common Files\Roxio Shared\DLLShared\;c: \Program Files\Common Files\Roxio Shared\9.0\DLLShared\;C: \Windows\System32\WindowsPowerShell\v1.0\;c: \Program Files\Microsoft SQL Server\90\Tools\binn\;C: \Program Files\doxygen\bin;C: \Program Files\Ruby192\bin;C: \Program Files\Hewlett-Packard\IAM\bin;C: \Program Files\Java\jdk1.6.0_20;C: \Program Files\Java\jsdk2.1;C: \Program Files\Notepad2\;C: \Program Files\Java\WTK2.5.2_01\bin\;C: \Program Files\QuickTime\QTSystem\;C: \Program Files\Microsoft SQL Server\100\DTS\Binn\;SERVLET_DIR\jsp.jar;SERVLET_DIR\servlet.jarjava.specification.nameJava Platform API Specificationjava.class.version50.0sun.management.compilerHotSpot Client Compileros.version6.0user.homeC: \Users\Sabanuser.timezoneEurope/Berlincatalina.useNamingtruejava.awt.printerjobsun.awt.windows.WPrinterJobjava.specification.version1.6file.encodingCp1252catalina.homeC: \Program Files\Apache Software Foundation\Tomcat 6.0user.nameSabanjava.class.pathC: \Program Files\Apache Software Foundation\Tomcat 6.0\bin\bootstrap.jarjava.naming.factory.initialorg.apache.naming.java.javaURLContextFactorypackage.definitionsun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.java.vm.specification.version1.0sun.arch.data.model32java.homeC: \Program Files\Java\jre6java.specification.vendorSun Microsystems Inc.user.languagedeawt.toolkitsun.awt.windows.WToolkitjava.vm.infomixed mode, sharingjava.version1.6.0_24java.ext.dirsC: \Program Files\Java\jre6\lib\ext;C: \Windows\Sun\Java\lib\extsun.boot.class.pathC: \Program Files\Java\jre6\lib\resources.jar;C: \Program Files\Java\jre6\lib\rt.jar;C: \Program Files\Java\jre6\lib\sunrsasign.jar;C: \Program Files\Java\jre6\lib\jsse.jar;C: \Program Files\Java\jre6\lib\jce.jar;C: \Program Files\Java\jre6\lib\charsets.jar;C: \Program Files\Java\jre6\lib\modules\jdk.boot.jar;C: \Program Files\Java\jre6\classesjava.vendorSun Microsystems Inc.server.loader catalina.baseC: \Users\Saban\workspace\Java\.metadata\.plugins\org.eclipse.wst.server.core\tmp1file.separator\java.vendor.url.bughttp: //java.sun.com/cgi-bin/bugreport.cgicommon.loader${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jarsun.cpu.endianlittlesun.io.unicode.encodingUnicodeLittlewtp.deployC: \Users\Saban\workspace\Java\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebappspackage.accesssun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.,sun.beans.sun.desktopwindowssun.cpu.isalistpentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
5 mts and I am all set to create my Webservices. Thanks Bro...
Great job going step-by-step. It sure helped me. Thanks!
Except chooisng Servlet version 2.4, the example worked perfectly. Thx
i follwed the steps what u have mentioned here.... after running the project i am getting page not found error can anyone help me...
thanks in advance
Hi ,
I Just follwed the steps in the tutorial, and executed it successfully.
VERY GOOD TUTORIAL ,Thank you ....
Regards
Rajula
This is the nice tute which we needs to understand the webservices concept using eclipse.
Very Very good
---Sandeep Singh
Your tutorial works like a charm. Seeing the web service at work really helps me to understand the theory/concepts. I also appreciate the links to other tutorials.
Thanks! Will definitely visit your site again in the future.
This was exactly what I needed. I'm using Version: Helios Service Release 1
Build id: 20100917-0705 on a Mac OS 10 version 10.6.5 with apache-tomcat-6.0.29 and I used the default Mac J2EE version 1.6 that was installed on the mac.
I was having a problem getting Tomcat to start and stop properly. I had Tomcat working outside of Eclipse but couldn't get it to work inside of Eclipse. When I checked the radio button for "Use Tomcat Installation (takes control of Tomcat installation" in the Tomcat Server overview window (click on Servers tab->Tomcat v6.0), the problem was fixed.
I went a bit astray when the UDDI icon came up but selecting the WSDL icon fixed that in the Web Services Explorer window.
This was very helpful to me since it was very detailed and got a service started.
I'll move on to your next tutorial.
Thanks again,
Clay
Thanks a lot.
I am a newbie with webservices.
And after reading your tutorial for 8 minutes, I have my first webservice program running in single shot.
Some pointers to theoritical concepts, like UDDI, Restful, what is Axis, Endpoints, WebClient etc..etc... or a kickstart book for webservices is greatly appreciated.
GOD BLESS YOU.
Keep posting :-)
Everthing is working fine except it does display teh returnmessage when I click getStatus.
Here is the error in the status window => IWAB0135E An unexpected error has occurred. java.net.SocketException Connection reset
I have the same problem. I noticed that it still accessing the 8080 when I use the getStatus method.
Is anyone there know how to configure or fix that.
Thank you.
When I also test this end point and I got the error.
[ERROR] The endpoint reference (EPR) for the Operation not found is /ResourceA/services/MyService.MyServiceHttpSoap11Endpoint/ and the WSA Action = null
org.apache.axis2.AxisFault: The endpoint reference (EPR) for the Operation not found is /ResourceA/services/MyService.MyServiceHttpSoap11Endpoint/ and the WSA Action = null
at org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:89)
at org.apache.axis2.engine.Phase.invoke(Phase.java:334)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:254)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:160)
at org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:135)
at org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:130)
at org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:811)
at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:261)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Unknown Source)
Its a great article i did the steps mentioned in it. i successfully executed web service
Thanks a lot