File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Web Service Creation With AttachMent

 
Santosh Raveendran
Ranch Hand
Posts: 83
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Santosh Raveendran
Ranch Hand
Posts: 83
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2933
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Santosh Raveendran
Ranch Hand
Posts: 83
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2933
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
  • 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/
  •  
    It is sorta covered in the JavaRanch Style Guide.
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic