• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to access the data from API through web-services and servlets  RSS feed

 
revathi kurum
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,


I have CarrerBuilder API key to access the data through web-services using servlets. Please help me is there any sample tutorial of webservices and servlets
 
revathi kurum
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I mean how can i access from their server to my server with xml results
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If that is a WS you want to access, then the fact that you're using servlets to do so is irrelevant. Most SOAP WS (assuming that's what it is, I'm simply guessing because you mention XML) make their WSDL available, from which you can create Java client code (which you can then incorporate into your web app). I would expect that information and help is available wherever you got the API key.
 
revathi kurum
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes exactly Ulf Dittmer

1. i created one web-service like username and password and providers(means carrerbuilder and indeed)

2. based on WSDL i created one webservice-client right next there i created one index.jsp(like static form page) and this jsp page it will call servlet that means whatever business logic is there i implemented here.

3. this process is correct or not if it is correct means where i expose my web-services inside servlet and how result its coming either xml or normal.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm confused. In #1 you said you have created a WS, and in #3 you're asking how to expose your WS - what is the difference between these two? There is no point in creating a WS that is not exposed, is there?

And in #3 you mention a servlet and a WS - WS are not accessed the way servlets are accessed, with a mapping in web.xml etc. They are exposed by some WS toolkit that you've added to your web app, like Axis2 for SOAP WS and Jersey for REST WS.

If you just want to create a web page that contains the results of the two WS you're calling, then you might indeed create a servlet to do so.
 
revathi kurum
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Ulf Dittmer for understanding my question even this one i confused thats why only i am not explain to anyone. you understand my question right please can you explain step by step how is flow going on webservices and servlets
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, I don't understand your question, I'm still not clear on what exactly you're trying to do. You seem to confuse servlets with WS; which one of those would be the right approach to use is not clear to me - that depends chiefly on what kind of client is supposed to access it.
 
revathi kurum
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually requriment is how to access the data from carrerbuilder (i.e job search, job derails and job apply) through webservices in J2EE server side. how i have to do this requirement in J2EE server side
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm getting more and more confused now. Let's start from the basics. There are two parts to this that are largely unrelated to one another: 1) access a 3rd party site (CareerBuilder) to retrieve some data, and 2) build a WS or servlet through which the results of this data retrieval can be presented to some user (or client). If I have understood that correctly, which of these two parts are you asking about? My earlier posts were assuming that #1 is done, and now you needed to tackle #2; not so?
 
revathi kurum
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you exactly correct Ulf Dittmer. That 2 points only i want Ulf Dittmer. please can you tell me that process, actually i don't know how to do this one, can you tell me step by step
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So you don't have anything so far? If you're not familiar with WS, start reading here: WebServicesFaq. WS are too big a subject to teach in forum posts.
 
revathi kurum
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your helping to learn a lot
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!