tag:blogger.com,1999:blog-12168038.post4176453501701105578..comments2024-03-05T21:55:02.687+05:30Comments on Vinod Singh: Building JAX-WS web serviceVinod Singhhttp://www.blogger.com/profile/05770985867453681608noreply@blogger.comBlogger73125tag:blogger.com,1999:blog-12168038.post-67953307663493224812013-01-25T21:34:34.596+05:302013-01-25T21:34:34.596+05:30The problem with examples like these is they alway...<br />The problem with examples like these is they always seem to use simple return types. This seems a little pointless, what about complex object binding e.g. Account or user or something other than "hello"?<br /><br />ThanksAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-12168038.post-37555356978410344722012-10-17T01:15:51.419+05:302012-10-17T01:15:51.419+05:30Awesome tutorial Sir. I was able to deploy service...Awesome tutorial Sir. I was able to deploy service on localhost and consume it with the client you mentioned. I am new to java web services. What will i have to do deploy service in apache on my pc and let others consume it with client through the Internet? Is is possible? Or can i deploy on a globally accessible apache server and then consume it through its URL? If yes please guide me. Thanking you in advanceAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-12168038.post-1220817625500634592012-04-07T08:22:03.389+05:302012-04-07T08:22:03.389+05:30See here Proxy Authentication in JavaSee here <a href="/2008/05/proxy-authentication-in-java.html" rel="nofollow">Proxy Authentication in Java</a>Vinod Singhhttps://www.blogger.com/profile/05770985867453681608noreply@blogger.comtag:blogger.com,1999:blog-12168038.post-77701848943498809022012-04-07T01:55:39.108+05:302012-04-07T01:55:39.108+05:30Hey Vinod,
Appreciate all your help. I just start...Hey Vinod,<br /><br />Appreciate all your help. I just started working on JAX-WS i could create the JAX-b objects and client as well.<br /><br />I'm actually consuming services from a 3rd party service provider. all i have to do is write client and get response.<br /><br />And i even developed the client. when i run the client from my work place i get a com.sun.xml.internal.ws.client.ClientTransportException: HTTP transport error: java.net.UnknownHostException:<br /><br />But when i run the same from out of my VPN i get the response. I been trying to find out how do i add the proxy to the webservice call in JAX-WSAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-12168038.post-64558406028356669632011-08-10T21:01:17.517+05:302011-08-10T21:01:17.517+05:30Hi Vinod,
we can create each service as a separat...Hi Vinod,<br /><br />we can create each service as a separate jar file and include it in the war file while creating. <br /><br />For this we need to iterate the buildServer target by passing the service names and creating service specific jars.<br /><br />The bad part with this approach is we cannot control including the common classes in each jar file though we can control the main service implementation classes i.e. all the common class files will be part of each service jar file.<br /><br />But my problem is solved since I need at most 2 to 3 services in my application and they are just for testing purposes only not for prod deployment.<br /><br />Thanks for the wonderful start up code for webservices.<br /><br />thanks <br />VishAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-12168038.post-58069775108589545722011-08-09T13:42:38.480+05:302011-08-09T13:42:38.480+05:30@Satish,
What is xml attacks in webservice ?@Satish,<br /><br />What is <i>xml attacks in webservice</i> ?Vinod Singhhttps://www.blogger.com/profile/05770985867453681608noreply@blogger.comtag:blogger.com,1999:blog-12168038.post-9657600452670333382011-08-08T21:39:37.229+05:302011-08-08T21:39:37.229+05:30Sir,
i read ur post.This s very useful to me.For m...Sir,<br />i read ur post.This s very useful to me.For my b.e project, i have created a simple jax-ws calc application.Also a client service is created and the corresponding service is consumed and i m getting output.<br />the next module i have to do is to implement xml attacks in webservice.i have googled many websites,but cant do anything....can u please help me sir?<br />i need to finish this module for further extension to my project.....<br /><br />Thanks,<br />Sathishsathishnoreply@blogger.comtag:blogger.com,1999:blog-12168038.post-58795500737764712552011-08-05T13:10:08.938+05:302011-08-05T13:10:08.938+05:30@Vish,
Looks like your bumping into this bug / li...@Vish,<br /><br />Looks like your bumping into this bug / limitation of JAX-WS <a href="http://java.net/jira/browse/JAX_WS-345" rel="nofollow">http://java.net/jira/browse/JAX_WS-345</a>. You should keep web services classes in different package and process them separately.Vinod Singhhttps://www.blogger.com/profile/05770985867453681608noreply@blogger.comtag:blogger.com,1999:blog-12168038.post-24815989827675902272011-08-05T03:24:50.180+05:302011-08-05T03:24:50.180+05:30Hi Vinod,
This example is very good to start with...Hi Vinod,<br /><br />This example is very good to start with the webservices project.<br /><br />However I tried to add more service classes and get the following error<br /><br />\src\java\com\demo\service\FirstService.java:14: The endpoint interface com.demo.service.SecondService does not match the interface com.demo.service.FirstService.<br /><br />Looks like apt is not able to map the classes.. For e.g. here it is trying to compile FirstService.java but mapping to SecondService.java.<br /><br />Can you please help me on this?<br /><br />Thanks,<br />VishAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-12168038.post-67741591169052856002011-04-29T21:18:54.260+05:302011-04-29T21:18:54.260+05:30Thank you very much. This was very useful for me.
...Thank you very much. This was very useful for me.<br />It is unbelievable how many incomplete and even misleading posts regarding the topics of the application server deployment nightmare are out there. It is good to see something coherent and correct like this.ncaralicea@gmail.comhttp://nicolaecaralicea.blogspot.com/noreply@blogger.comtag:blogger.com,1999:blog-12168038.post-91632873311296106832010-08-19T15:34:59.933+05:302010-08-19T15:34:59.933+05:30Hi Vinod,
Looking forward to extended help
We h...Hi Vinod,<br /><br />Looking forward to extended help<br /><br /><br />We have built few web-services for different arch layers<br /><br />Main-WS: runs on web server (Apache) <br /><br />myINTERFACEservice – runs on App server (Tomcat)<br /><br />myservice1 - runs on App server (Tomcat)<br />myservice2 - runs on App server (Tomcat)<br />myservice3 - runs on App server (Tomcat)<br />myservice4 - runs on App server (Tomcat)<br />myservice5 - runs on App server (Tomcat)<br />........<br /><br />WS (myservice1, 2, 3……) are intended to only communicate thru “myINTERFACEservice” running on Tomcat<br /><br /><br />In local QA environment all are working fine as intended BUT fails in production environment.<br /><br />Presently, our Web Server (Apache in port 80) and Application Server (Tomcat in port 1024) running in the same box although both Web Server & Application Server do communicate but communication with webservices are still a challenge in productive environment.<br /><br />Also looking forward to configure webservices in Tom to be evoked thru only Main-WS in Apache <br /><br />Please advice<br /><br />Thanks,<br />RamanRamannoreply@blogger.comtag:blogger.com,1999:blog-12168038.post-34924382096378951412010-08-09T11:28:55.785+05:302010-08-09T11:28:55.785+05:30thank you so much sir. Very useful article that so...thank you so much sir. Very useful article that solved my problem.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-12168038.post-91126527194338255802010-06-28T19:58:25.370+05:302010-06-28T19:58:25.370+05:30Hi Vinod
Thanks for the quick reply.
Giving you m...Hi Vinod<br />Thanks for the quick reply.<br />Giving you more details, actually I am integrating Maven with the existing spring application.<br />That existing application did not have anything related to WS inside web.xml or sun-jaxws.xml.<br />Hence I have not updated them explicitly.<br />But if you could please let me know what changes I should do, I can try.<br /><br />Thanks so much for your time and help.<br />-BinalAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-12168038.post-87968104537167173102010-06-24T12:50:04.124+05:302010-06-24T12:50:04.124+05:30@Binal,
Did you made relevant entries in web.xml ...@Binal,<br /><br />Did you made relevant entries in web.xml and sun-jaxws.xml files ?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-12168038.post-86874500426468659352010-06-23T18:40:45.658+05:302010-06-23T18:40:45.658+05:30Hi Vinod
I have a problem as mentioned below.
I w...Hi Vinod<br /><br />I have a problem as mentioned below.<br />I want to create a webservice which is part of the application.<br />To start, I have a wsdl and related xsd file.<br />Using jaxws-maven-plugin's wsimport tool, I got required java classes.<br />Now I have webservice implementation class which has @Webservice annotation. This annotation has fields like serviceName, portName, endpointInterface & targetNamespace. This class uses these newly generated classes and other classes (from the app) too.<br />Now using <i>mvn clean package jboss:hard-deploy</i> command, I deploy the war file to jboss server.<br />When I try to open the url <i>http://localhost:8080/appcontext/serviceName?wsdl </i> it gives me http 404 error which is resource not found.<br /><br />My war file does not show wsdl file. Please help me to know what am I missing. and where should be the wsdl file in a war file?<br /><br />Thanks in advance.<br />-BinalAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-12168038.post-5948418165326661632010-06-10T21:50:50.022+05:302010-06-10T21:50:50.022+05:30@kiransvkumar,
Steps for using JAX-WS with Java 5...@kiransvkumar,<br /><br />Steps for using JAX-WS with Java 5 would also be same. Only difference is that with Java 5 one has to put JAX-WS jars in classpath.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-12168038.post-55521870826044393302010-06-09T10:49:41.950+05:302010-06-09T10:49:41.950+05:30Good post and very useful Vinod. Every where it is...Good post and very useful Vinod. Every where it is referred as jax-ws is used with java 1.6 version only. is is possible to do all the steps mentioned in 1.5? If so can u pls let me know the dependent libraries?Kiran Kumar S Vhttps://www.blogger.com/profile/15120722666715792974noreply@blogger.comtag:blogger.com,1999:blog-12168038.post-40991907615168452802010-02-15T04:26:17.138+05:302010-02-15T04:26:17.138+05:30An extremely good intro book on JAX-WS can be foun...An extremely good intro book on JAX-WS can be found here: http://oreilly.com/catalog/9780596521134 Short, thorough and and the "up and running part" is very accurate.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-12168038.post-7213921746932965892009-11-12T17:18:46.097+05:302009-11-12T17:18:46.097+05:30@Nihar,
No clues about Netbeans though one can al...@Nihar,<br /><br />No clues about Netbeans though one can always define the package name while invoking 'wsimport' as mentioned at <b>Step #6 - Generate client</b> above.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-12168038.post-88911442439400896712009-11-12T17:14:58.979+05:302009-11-12T17:14:58.979+05:30Well i want to create client stub for both of the ...Well i want to create client stub for both of the web services in a different package but as i am creating JAX WS client using netbeans , it directly takes package name from WSDL files only.<br /><br />i dont have a option to generate sources in a different packages as netbeans doesn't allow it to do that.<br /><br />so do you have any idea how to do it ?<br /><br />Thanks,<br />ntimescniharnoreply@blogger.comtag:blogger.com,1999:blog-12168038.post-12765679998933777732009-11-10T20:57:08.373+05:302009-11-10T20:57:08.373+05:30@nihar,
Why don't you create client stubs for...@nihar,<br /><br />Why don't you create client stubs for both of the web services in different packages?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-12168038.post-29342073553351172932009-11-10T18:31:15.091+05:302009-11-10T18:31:15.091+05:30Hi Vinod ,
How can i call multiple web services f...Hi Vinod ,<br /><br />How can i call multiple web services from a single client ?<br /><br />i have created jax-ws artifacts for both services but the problem is both services are sharing same package name and method names.<br />so when i am trying to include it in my web service client as a jar its giving me error <br /><br />Thanks<br />ntimescniharnoreply@blogger.comtag:blogger.com,1999:blog-12168038.post-33423354224032199042009-09-23T15:14:14.572+05:302009-09-23T15:14:14.572+05:30Dear Vinod,
Thanks for providing good tutorial.
C...Dear Vinod,<br />Thanks for providing good tutorial.<br /><br />Can we implement JAX-WS using JDK 1.5 and tomcat-5.0.28. Please advise.Santosh Sharmahttps://www.blogger.com/profile/15325217690135864530noreply@blogger.comtag:blogger.com,1999:blog-12168038.post-31421281518589538972009-09-11T12:21:09.254+05:302009-09-11T12:21:09.254+05:30Are SOAP hadlers only way to capture request and r...Are SOAP hadlers only way to capture request and resonse XMl while calling web service or there is some other way available as wellUnknownhttps://www.blogger.com/profile/11477918875356712912noreply@blogger.comtag:blogger.com,1999:blog-12168038.post-1043307963238389622009-09-08T20:06:05.124+05:302009-09-08T20:06:05.124+05:30With recent updates of Java 6, endorsed directory ...With recent updates of Java 6, endorsed directory mechanism is no longer required for JAX-WS. JAX-WS RI can be downloaded from <a rel="nofollow" rel="nofollow">https://jax-ws.dev.java.net/</a>.Anonymousnoreply@blogger.com