Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Saving a PDF from a URL in my Server.

 
Thapliyal Akshat
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Everyone,

I have created a web service client using Axis2. Within the response I get a PDF URL which the Web service has created on its own server. The Web service is developed by a third party.

My concern is how can I save that PDF on my servers. I need exact replica of the actual PDF because that PDF is mailed to every customer.

I know that there are lot of API's available to which I can pass the URL but Is there any other way through which I can achieve this using the Web Service technologies.


Thanks and Regards,
Akshat Thapliyal
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can open a URLConnection and stream the data to your server. Is that what you want ?

If the URL sent by the web service is public and unprotected, then you can simply pass that URL to your clients. They can download it from there if they want to. Reliability of the third party server will be a matter for consideration of course.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic