• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP - Web Services

 
Setrak Aivazian
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Sirs,
I am very very new in Java programming and I want some assistance.
My target is to build a JSP client in order to retrieve data via Web services from the WSDL https://xx.xx.xx.xx/ulissia-webservices/services/UserService?wsdl. Method getUserData .
Could someone give me an example how could I structure my app? As a framework I am using Eclipse  Java EE IDE for Web Developers version Neon 1a.
 
Tapas Chand
Ranch Hand
Posts: 583
8
BSD Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the ranch  :)
To call the specified method in the web service you need to build a SOAP client.
So before going for the solution you need to study SOAP web services and implementation of SOAP in Java.
 
Tapas Chand
Ranch Hand
Posts: 583
8
BSD Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Currently I am not able to find a good URL.
You can have a look at this for now.
 
Tim Moores
Bartender
Posts: 3137
50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tapas Chand wrote:implementation of SOAP in Java

... and just because it didn't get mentioned explicitly: since Java code has absolutely no place in JSPs, that code goes into a servlet or JSP bean, not into the JSP itself.

Setrak Aivazian wrote:As a framework I am using Eclipse  Java EE IDE for Web Developers version Neon 1a.

Eclipse is not a framework, it's an IDE - as such it has no bearing on how the design and implementation of the solution get structured.
 
Setrak Aivazian
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Tapas for your quick response.
Please note that I have already read about SOAP and I have done the exercises with Eclipse.
The one that I would like to know is to how could I build my own app in the real life, taking as a consideration the above WSDL which is in a running state in the above url.
 
Tim Moores
Bartender
Posts: 3137
50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Axis2 is a good SOAP implementation; it can be found at http://axis.apache.org/axis2/java/core/ and has lots of documentation online, including installation and quickstart guides.

But since you're just starting out: do you really want to learn SOAP? It has been replaced in lots of places by simpler REST approaches; maybe those would be better stating points, as SOAP can be tricky to implement (definitely compared to REST).
 
Setrak Aivazian
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Many thanks Tim for your comments as I am a very beginner in Java.
Guys is it possible to assist me step by step to build my app? A small example.
I would appreciate your assistance.
 
Setrak Aivazian
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim unfortunately I have to implement my app in SOAP.
 
Tapas Chand
Ranch Hand
Posts: 583
8
BSD Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As you have already read about SOAP and done exercises with eclipse, you must be knowing that the starting point to build a SOAP client is to download the WSDL file.
And use that WSDL to create a stub.
As mentioned by Tim, go through the Axis2 URL and try to start something.
Then post if you are facing some difficulties, people will be happy to help. :)
 
Setrak Aivazian
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Many thanks for your responses.
I am going to create a stub from WSDL. I will come back if I have some problems.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic