• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

exposes a web service and create a file

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I am currently trying to expose a web service to an external application which should allow me to read in information such as first name, surname and a few other details. I want to store this information in a csv file and then call another web service on this. Is this possible? And where would be the best place to look to get a basic example of this?

Sorry if this is a very basic question but I am very new to web services and the code which I currently trying to support is not very well maintained.

Thank you for your time.
 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It should be possible. I don't think you can send the csv file via SOAP though, but you can probably use a servlet if you wanted to do that.

Will you be deploying your webservice as part of an application?

There are some tutorials available on mkyong jax-ws-wsgen-tool-example.
I'm sure there are loads of examples out there. You can look at metro jax-ws. Part of the download bundle I think there are examples.

Edit if you're using JBoss have a look at JBossWS
 
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Keep in mind that web services are for connecting applications. So, you want to design an application that enables a human user to enter information. The application then creates a CSV file and calls a web service to send the gathered information (in the form of a CSV file.) This is possible.

In order to attach files to SOAP messages, there is an API for this, SwA (SOAP with Attachments.)

In this scenario there is only one web service, not two.
 
Helen Ross
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Jimmy for the reply. I want a web service that will take a allow another application to pass values into my application. I then want my application to create the .csv file to be stored in a certain location as I need to be able to pick it up for editing within my application.
 
Jimmy Clark
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok. Based on your new statement, you do not need to use the SOAP with Attachments API since your do not want to create a web service that includes a file.

You want to create a data-oriented web service that will enable client applications to send data to your application. This is relatively basic and a good approach. In order to create this web service, you will also need to develop an internal client application to simulate the service's users and to test the web service during development.

The first task then is to clearly identify the data that will be transmitted. This includes data type, how many values, and size. Here you should also be thinking about security requirements such as how will you identify authorized applications. The details of what your application does once it receives the data are irrelevant in terms of developing the web service component.

The purpose of this web service is to simply allow client applications to send data to your application. The web service does not create CSV files or do any processing of the information sent. "Web Services" is a Integration technology not an Implementation technology.

You can surely find a variety of examples of web services. There are many different flavors of implementations as well as multiple styles, e.g. RESTful, SOAP.

I suggest that you visit the Apache Axis site and go through their documentation. Once you have a good understanding of what is required to develop a web service using the Axis SOAP Engine, roll yor sleeves up and give it a try. Good luck!
 
Getting married means "We're in love, so let's tell the police!" - and invite this tiny ad to the wedding:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic