• Post Reply Bookmark Topic Watch Topic
  • New Topic

Create a service provider for an existing SOAP webservice  RSS feed

 
rasster shib
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a SOAP based web service for few operations that I am testing with SOAP UI right now.
I created this webservice from a wsdl using the jaxws plugin in the maven pom.xml

I would now like to create a Service Provider that will have a login page(and other UI) etc and then it can connect to my
SOAP based web service that I have created. What would be the right way to create this service provider and how do I go about doing it?
Any pointers would be appreciated
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So you want to create a web UI for a WS? That means the server code would act as a client to the WS - no particular problem there. Or are you saying the web UI is colocated in the same web app with the WS and should call its methods directly? Also not a problem, but you need to think about the API exposed by the WS classes. Or even better, design an API that both the web app and the WS use.
 
rasster shib
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply. Yes, basically exploring the options. Can you give pointers on how to do this? any tutorials/links or anything.
I already have SOAP webservices running. Infact I have a separate web service for each operation (so about 2-3 webservices in total)
I can access them using SOAP UI.
In the request I set some parameters and can see the corresponding response.
Now I would like to create s Service Provider for this.
But right now not sure how to do this as I am relatively new to web services
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Start by telling us what you mean by "Service Provider" - it's not a term with a single, fixed meaning.

Do you want to run the web GUI within the same web app, or a different web app?
 
rasster shib
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Service Provider is going to be a different webapp (not the same).
It will be a webapp with some simple screen. Say for example, it will be a screen
with some fields that you can populate and hit a button and then it should connect
to the web service and pass some parameters to it.

So, basically right now, I am using SOAP UI to set the parameters in the request and get
the response back. Now, I would want to create a webapp that has a form to populate some fields
and then call the webservice (passing some parameters to it) and get some response back.
Let me know if you need me to explain more.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In that case the web app acts as a client to the WS. You'd use the tools that come with your SOAP implementation to create Java client classes from the WSDL of the WS, and then use those in the web UI web app to access the WS.
 
rasster shib
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, would that be the best way to do it? Just checking if there is any other/better way typically used
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"best" in what way? In which way are you trying to improve on it?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!