tag:blogger.com,1999:blog-4390008546478333941.post7899706048905940253..comments2024-03-08T15:57:37.659+05:30Comments on The Sencide Blog: Create Web Service in Java Using Apache Axis2 and EclipseSaranga Rathnayakahttp://www.blogger.com/profile/16970068051960658733noreply@blogger.comBlogger144125tag:blogger.com,1999:blog-4390008546478333941.post-19133937708610656062017-05-01T13:23:55.883+05:302017-05-01T13:23:55.883+05:30Hi,
While I'm going to create Client, in the f...Hi,<br />While I'm going to create Client, in the final step I'm stuck with this exception -<br /><br />Exception occurred during code generation for WSDL : java.lang.NoClassDefFoundError: org/apache/ws/commons/schema/utils/NamespacePrefixListJayanta P.https://www.blogger.com/profile/06992596002172301767noreply@blogger.comtag:blogger.com,1999:blog-4390008546478333941.post-57570037021902416692017-04-17T00:12:59.066+05:302017-04-17T00:12:59.066+05:30you need to add xmlschema-core-2.2.1.jar (Choose a...you need to add xmlschema-core-2.2.1.jar (Choose ap[propriate version) and add it to class path and in lib folderAnonymoushttps://www.blogger.com/profile/00820496203174267633noreply@blogger.comtag:blogger.com,1999:blog-4390008546478333941.post-91106164196657312132016-03-29T12:17:19.253+05:302016-03-29T12:17:19.253+05:30Hi ,
first of all thank you so much for this tuto...Hi , <br />first of all thank you so much for this tutorial. <br />i tried to create a new project and my development environment is :<br />eclipse mars<br />jdk1.8.0_25<br />apache-tomcat-8.0.33<br />axis2-1.7.1<br />i had followed the above steps and while running my webservice i am getting ClassnotFound exceptions.<br />SEVERE: StandardWrapper.Throwable<br />java.lang.NoClassDefFoundError: org/apache/ws/commons/schema/resolver/URIResolver<br /> at org.apache.axis2.deployment.ModuleDeployer.deploy(ModuleDeployer.java:128)<br /> at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:144)<br /> at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:585)<br /> at org.apache.axis2.deployment.RepositoryListener.init(RepositoryListener.java:264)<br /> at org.apache.axis2.deployment.RepositoryListener.init2(RepositoryListener.java:66)<br /> at org.apache.axis2.deployment.RepositoryListener.(RepositoryListener.java:61)<br /> at org.apache.axis2.deployment.DeploymentEngine.loadRepository(DeploymentEngine.java:152)<br /> at org.apache.axis2.deployment.WarBasedAxisConfigurator.getAxisConfiguration(WarBasedAxisConfigurator.java:233)<br /> at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)<br /> at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:620)<br /> at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:471)<br /> at org.apache.axis2.webapp.AxisAdminServlet.init(AxisAdminServlet.java:60)<br /> at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1238)<br /> at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1151)<br /> at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1038)<br /> at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4996)<br /> at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)<br /> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)<br /> at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)<br /> at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)<br /> at java.util.concurrent.FutureTask.run(FutureTask.java:266)<br /> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)<br /> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)<br /> at java.lang.Thread.run(Thread.java:745)<br /><br />please help me to resolve the error<br /><br />Anonymoushttps://www.blogger.com/profile/17739012241511684127noreply@blogger.comtag:blogger.com,1999:blog-4390008546478333941.post-7024292458013145982015-08-31T17:24:52.686+05:302015-08-31T17:24:52.686+05:30Thank you for this detailed article on Web designi...Thank you for this detailed article on <a rel="nofollow">Web designing course</a>. I’m aspiring to do <a rel="nofollow">Web designing course</a>.Rakshahttps://www.blogger.com/profile/06477017506164015392noreply@blogger.comtag:blogger.com,1999:blog-4390008546478333941.post-51550036975083788282014-11-11T15:26:50.906+05:302014-11-11T15:26:50.906+05:30After Long research This is perfect for Beginner :...After Long research This is perfect for Beginner :)Gokulhttps://www.blogger.com/profile/10452898548536006337noreply@blogger.comtag:blogger.com,1999:blog-4390008546478333941.post-23454673153137927212014-06-18T15:26:48.772+05:302014-06-18T15:26:48.772+05:30The question I have for you is, How can I access t...The question I have for you is, How can I access the created web service from a JSP page?Anonymoushttps://www.blogger.com/profile/08899520332440920490noreply@blogger.comtag:blogger.com,1999:blog-4390008546478333941.post-23508800051850705532014-04-24T12:46:41.121+05:302014-04-24T12:46:41.121+05:30If i use CentOS , How can i configure it?If i use CentOS , How can i configure it?Anonymoushttps://www.blogger.com/profile/11528864112755042699noreply@blogger.comtag:blogger.com,1999:blog-4390008546478333941.post-11319013283183244792014-04-23T07:53:48.498+05:302014-04-23T07:53:48.498+05:30Hey, I had a great time reading your website. Woul...Hey, I had a great time reading your website. Would you please consider adding a link to my website on your page. Please email me back.<br /> <br />Regards, <br /><br />Angela<br />angelabrooks741 gmail.com<br />sshttps://www.blogger.com/profile/01465605383587201386noreply@blogger.comtag:blogger.com,1999:blog-4390008546478333941.post-18322418635227172272014-03-26T17:33:36.825+05:302014-03-26T17:33:36.825+05:30Follwing my code for creating webservice:
package ...Follwing my code for creating webservice:<br />package net.sample;<br />import java.sql.Connection;<br />import java.sql.DriverManager;<br />import java.sql.ResultSet;<br />import java.sql.Statement;<br />import java.io.BufferedWriter;<br />import java.io.File;<br />import java.io.FileWriter;<br /><br />public class ConnectMSSQL {<br />public String get_role(String user1,String password)<br />{<br />// Create a variable for the connection string.<br />String connectionUrl = "jdbc:sqlserver://localhost:1433;" +<br />"databaseName=DB_Login;user=sa;password=ftl@123";<br /><br />String user2="";<br />String password1="";<br />try {<br /><br />Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");<br />Connection connection = DriverManager.getConnection(connectionUrl);<br /><br />Statement statement = connection.createStatement();<br />ResultSet resultSet = statement.executeQuery("SELECT * FROM login_db where<br />username='xyz'");<br />while ( resultSet.next())<br />{<br /><br />user2=resultSet.getString("username");<br />password1=resultSet.getString("password1");<br />}<br /><br />} catch (Exception e) {<br />e.printStackTrace();<br /><br />}<br />if(user2.equals("xyz"))<br />{<br />return "Sucess";<br />}<br />else<br />{<br />return "Unsucess";<br />}<br /><br /><br />}<br />}<br /><br />Can you plz help me??<br />I am not getting any values from db.so its always returning o\p as Unsucess.<br />Eventhough values are present in db.<br />Can you plz let me no where am wrong???Anonymoushttps://www.blogger.com/profile/17372731452847737533noreply@blogger.comtag:blogger.com,1999:blog-4390008546478333941.post-33870117393683509402013-09-04T01:52:08.460+05:302013-09-04T01:52:08.460+05:30i followed this tutorial and it works fine.I need ...i followed this tutorial and it works fine.I need to know after i update methods(adding,delete)it doesn't update in .aar file.but when i run in eclips it works fine.how this changes affect to .aar file.Anonymoushttps://www.blogger.com/profile/00005248533838646382noreply@blogger.comtag:blogger.com,1999:blog-4390008546478333941.post-27881376158077374292013-07-19T23:34:24.335+05:302013-07-19T23:34:24.335+05:30Here is the error while generating the Webservice ...Here is the error while generating the Webservice client:<br />Exception occurred while reading or writing files A resource exists with a different case: '/MyFirstWebservice/src/com/Apps'.<br /> org.eclipse.core.internal.resources.ResourceException: A resource exists with a different case: '/MyFirstWebservice/src/com/Apps'.<br /> at org.eclipse.core.internal.resources.Resource.checkDoesNotExist(Resource.java:314)<br /> at org.eclipse.core.internal.resources.Resource.checkDoesNotExist(Resource.java:292)<br /> at org.eclipse.core.internal.resources.Folder.assertCreateRequirements(Folder.java:30)<br /> at org.eclipse.core.internal.resources.Folder.create(Folder.java:95)<br /> at org.eclipse.core.internal.resources.Folder.create(Folder.java:125)<br /> at org.eclipse.wst.command.internal.env.common.FileResourceUtils.makeFolder(FileResourceUtils.java:575)<br /> at org.eclipse.wst.command.internal.env.common.FileResourceUtils.makeFolderPathAtLocation(FileResourceUtils.java:812)<br /> at org.eclipse.wst.command.internal.env.common.FileResourceUtils.makeFolderPathAtLocation(FileResourceUtils.java:833)<br /> at org.eclipse.jst.ws.axis2.consumption.core.utils.ContentCopyUtils.copyDirectoryRecursivelyIntoWorkspace(ContentCopyUtils.java:104)<br /> at org.eclipse.jst.ws.axis2.consumption.core.command.Axis2ClientCodegenCommand.execute(Axis2ClientCodegenCommand.java:226)<br /> at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.runCommand(CommandFragmentEngine.java:419)<br /> at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.visitTop(CommandFragmentEngine.java:359)<br /> at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.moveForwardToNextStop(CommandFragmentEngine.java:254)<br /> at org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager$6.run(SimpleCommandEngineManager.java:294)<br /> at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)<br /> at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)<br /> at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:1008)<br /> at Anonymoushttps://www.blogger.com/profile/02431630871365716440noreply@blogger.comtag:blogger.com,1999:blog-4390008546478333941.post-90357742689375224472013-06-26T15:56:26.588+05:302013-06-26T15:56:26.588+05:30hi i have tryed this but .arr from cmd is not wor...hi i have tryed this but .arr from cmd is not working it show acces is denied<br />C:\>Users\bronziant\workspace\Divid\WebContent\WEB-INF\services\Hello>jar cvf He<br />llo.aar com images META-INF<br />Access is denied.Anonymoushttps://www.blogger.com/profile/11938374771631422127noreply@blogger.comtag:blogger.com,1999:blog-4390008546478333941.post-70023997143525176902013-05-22T12:12:31.183+05:302013-05-22T12:12:31.183+05:30Hi Saranga,
i have the same as Neha problem while...Hi Saranga,<br /><br />i have the same as Neha problem while creating Dynamic web project. Pls, help me in this part.BASHA The Kinghttps://www.blogger.com/profile/02883818191928796770noreply@blogger.comtag:blogger.com,1999:blog-4390008546478333941.post-57386060745304277782013-04-27T10:03:10.835+05:302013-04-27T10:03:10.835+05:30So, while using this web service, your command pro...So, while using this web service, your command prompt should always be open? You can't exit it? because when I close the command prompt, I could not use this web service any more.<br /><br />Anonymoushttps://www.blogger.com/profile/14569547533146073014noreply@blogger.comtag:blogger.com,1999:blog-4390008546478333941.post-62877904316707643072013-04-20T14:47:03.117+05:302013-04-20T14:47:03.117+05:30@Admin Thank's for this Tutorial
But I got er...@Admin Thank's for this Tutorial <br />But I got error<br />Failed while installing Axis2 Web Services Core 1.1.<br />java.lang.NullPointerException<br /><br />while adding dynamic Project.Please guide me where I am wrongSarabjeet Singhhttps://www.blogger.com/profile/00198691562664010475noreply@blogger.comtag:blogger.com,1999:blog-4390008546478333941.post-88986955406870528982013-04-15T18:12:42.165+05:302013-04-15T18:12:42.165+05:30hi i want to call web service without passing argu...hi i want to call web service without passing argument,how can i do thatAnonymoushttps://www.blogger.com/profile/06163964149842149240noreply@blogger.comtag:blogger.com,1999:blog-4390008546478333941.post-47847420814788471932013-04-12T15:47:59.924+05:302013-04-12T15:47:59.924+05:30I am using apache tomcat 5.5
axis 1.5.3
Eclipse
bu...I am using apache tomcat 5.5<br />axis 1.5.3<br />Eclipse<br />but i got following error in creating Web Service client..<br /><br />"Exception occurred during code generation for WSDL : org.apache.axis2.AxisFault: No operation found in the portType element"<br /><br /><br />pls help me ............<br /><br />thank uAnonymoushttps://www.blogger.com/profile/05219248116026945037noreply@blogger.comtag:blogger.com,1999:blog-4390008546478333941.post-89677960807856707422013-04-04T09:09:19.200+05:302013-04-04T09:09:19.200+05:30very nice tutorial,.. Helped me alot,...Hoping to ...very nice tutorial,.. Helped me alot,...Hoping to see some more tutorials from you<br />sweetyhttps://www.blogger.com/profile/02306446742373997333noreply@blogger.comtag:blogger.com,1999:blog-4390008546478333941.post-88833860938448477372013-04-02T10:57:49.742+05:302013-04-02T10:57:49.742+05:30nice tutorial man!! thnx :)
just one problem, ho...nice tutorial man!! thnx :) <br /><br />just one problem, how to update stub.java file if i am adding some more methods to web-service class?? Siddharthhttps://www.blogger.com/profile/03163379143509195775noreply@blogger.comtag:blogger.com,1999:blog-4390008546478333941.post-85291532432862139852013-03-27T01:46:32.716+05:302013-03-27T01:46:32.716+05:30i got an error when creating web service client in...i got an error when creating web service client in FirstSoap11BindingStub.java file<br /><br />error line <br />java.util.Enumeration keys = super.cachedProperties.keys();Anonymoushttps://www.blogger.com/profile/13967145232414605716noreply@blogger.comtag:blogger.com,1999:blog-4390008546478333941.post-31765514491623992232013-03-20T15:19:34.037+05:302013-03-20T15:19:34.037+05:30Hi Saranga,
I am developing Mobile Applications f...Hi Saranga,<br /><br />I am developing Mobile Applications for Android and iPhone. Currently we are using .net platform to create web service through which we are calling required methods for our application.<br /><br />The application consists of User authentication...retriveving and storing data and so on.<br /><br />we are also writing stored procedures too.<br /><br />Please can you provide one simple application/Web service which consists of Java code for creation of web services and stored procedures.<br /><br />we are using MS server 2005.<br /><br />Regards,<br />Indraindrahttps://www.blogger.com/profile/06981328528211021036noreply@blogger.comtag:blogger.com,1999:blog-4390008546478333941.post-85684624500030826392013-03-12T08:15:48.667+05:302013-03-12T08:15:48.667+05:30i've read and seen examples of web service jav...i've read and seen examples of web service java code decorated with annotations.<br />Is this old style, or can you explain when it is to be used?<br />or does it apply not to axis?<br /><br />thank youjeffhttps://www.blogger.com/profile/16493981529293385503noreply@blogger.comtag:blogger.com,1999:blog-4390008546478333941.post-793564458667477832013-03-08T20:16:49.452+05:302013-03-08T20:16:49.452+05:30Great tutorial.. Thank you very much...
I have cre...Great tutorial.. Thank you very much...<br />I have created a web service and also generated the .aar file and deployed it in axis2.. but I want a different public URL for this web service... How can I do that???Anonymoushttps://www.blogger.com/profile/03643174986670767878noreply@blogger.comtag:blogger.com,1999:blog-4390008546478333941.post-40769613596709505142013-03-07T15:35:46.181+05:302013-03-07T15:35:46.181+05:30Great tutorial, thank you! That's a great star...Great tutorial, thank you! That's a great start for learning how to work with web services! Good job!Anonymoushttps://www.blogger.com/profile/05767496065578414627noreply@blogger.comtag:blogger.com,1999:blog-4390008546478333941.post-44212727341267080192013-02-27T16:31:53.236+05:302013-02-27T16:31:53.236+05:30Hi Saranga,
i have issue on after creating a stub...Hi Saranga,<br /><br />i have issue on after creating a stub, i cannot write some more service methods. want to build new project every time for overriding the service method. Any other way to solve this problem?Vadivel Rajanhttps://www.blogger.com/profile/01879493220231248620noreply@blogger.com