• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Need a help on Web service startup

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
javascript:emoticon('');

HI
I am new to web services.I do have a basic understanding of web services.I have a idea about soap and wsdl.I am trying to implement a sample poc which fetches a list of objects.when i give id it should fetch the corresponding information based on the id.The information fetched i am putting it in list object.

I wrote a one method which returns a list and takes argument as String.I want to expose this method as a web service.

I have created a standalone java project and wrote a method like this.

public class StudentDetails
{


public List<ArrayList> getStudentDetails(String stdId){
List<ArrayList> list=new ArrayList();
Student std=new Student();
std.setStdName("studentstudent");
std.setStdType("typed1234");
return list;
}
}

I am using eclipse and apache axis1 as an soap runtime engine.

I tried to expose the above class as a web service by selecting the option create web service then I got the following error.I am not
sure It is a error or warning.Please find it in the attachement "error_creating_webservice.JPG".
I tried by clicking on ok button in the screen shot attached but still i did not see any wsdl file generated.

Please guide me in how to proceed.

Regards,
sameer.





error_creating_webservice.JPG
[Thumbnail for error_creating_webservice.JPG]
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
Do yourself a favour and avoid JAX-RPC and Axis 1 if you do not really have to. There are much more recent things out there, for instance JAX-WS and Metro (web service stack).
You can find a lot of web service tutorials here: http://netbeans.org/kb/trails/web.html
I suggest you work through a tutorial and then modify it to suit your needs.
Good luck!
 
sameer kum
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Krizsan,

Thanks for your guidance.I need to use Eclipse only.No Net Beans.Could you please guide me in learning web services.
I am having a basic idea of webservice but don't know how to start in java web services.could you please share any e books of developing java web services with eclipse.Please guide me


Regards,
sameer.

 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
It is possible to use the metro web service stack when developing in Eclipse.
You may want to write one or two Ant-scripts to automate, for instance, generation of stub classes from a WSDL.
Step-by-step instructions on how to develop web services and clients with Metro in Eclipse are available in my book:
http://www.slideshare.net/krizsan/scdjws-5-study-notes-3085287
It is free, you only need to register (also free) on Slideshare to be able to download it.
Best wishes!
 
sameer kum
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Krizsan,

thanks for your help.I am not able to download the file from link mentioned in the post.I am getting some error message.Please find error message in the attachement.


Regards,
sameer.
download_error_pdf.jpg
[Thumbnail for download_error_pdf.jpg]
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
People have had problems downloading documents from Slideshare with anti-virus software enabled.
Please try to disable anti-virus software etc when downloading. Also try different browser(s).
For further assistance regarding problems with Slideshare, please contact Slideshare.
Best wishes!
 
reply
    Bookmark Topic Watch Topic
  • New Topic