File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Web Service Creation With AttachMent Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Web Service Creation With AttachMent" Watch "Web Service Creation With AttachMent" New topic
Author

Web Service Creation With AttachMent

Santosh Raveendran
Ranch Hand

Joined: Jun 29, 2008
Posts: 83
Hi

can any one advice on developing a service for returning a file , i am currently using eclipse 3.1 for creating a the web service.

Thanks
Santhosh


SCJP 1.4,SCWCD5, SCBCD5
Thanks, Santhosh
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Hi,
Would this discussion helps you to get started ?
http://www.coderanch.com/t/429065/Web-Services/java/Web-Services-returning-File-help

If not let us know.

Regards
Balaji


Spritle Software Blogs
Santosh Raveendran
Ranch Hand

Joined: Jun 29, 2008
Posts: 83
Hi Balaji

Thanks for the reply , i checked but couldnt come to any conclusion , it would be great if you could guide some more

Thanks
santhosh
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2906
santosh raveendran wrote:i am currently using eclipse 3.1 for creating a the web service.


I presume that means that you are using Axis 1.x as your SOAP web service stack.
It comes with the axis/samples/attachments sample service which demonstrates the use of attachments.
EchoAttachment.java
EchoAttachmentsService.java

"Don't succumb to the false authority of a tool or model. There is no substitute for thinking."
Andy Hunt, Pragmatic Thinking & Learning: Refactor Your Wetware p.41
Santosh Raveendran
Ranch Hand

Joined: Jun 29, 2008
Posts: 83
thanks peer , i placed both the files in a package named samples.attachments but i am getting compilation error due to missing

samples.attachments.TestRef can you send that too so that i can test with EchoAttachment.java

Thanks
Santhosh
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2906
  • Those files are part of the standard Axis 1.x distribution. You shouldn't have to download anything.
  • The above files are served by a subversion server that has all the other files http://svn.apache.org/repos/asf/webservices/axis/trunk/java/samples/attachments/
  •  
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Web Service Creation With AttachMent
     
    Similar Threads
    i want to know how do you invoke any string,array,object data from web service
    How do we get the CurrentURL ??
    Design pattern to consume an existing web service
    Syncing files
    Web service method call behaviour?