Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7976011
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T08:48:13+00:00 2026-06-04T08:48:13+00:00

I am trying to implement a web service in Java to receive a file

  • 0

I am trying to implement a web service in Java to receive a file from my client application which is implemented in .Net. But, I am unable to implement the Java web service. I tried a lot to get any example program. But, I didn’t get it.

My main objectives is:

  1. I will browse and send a file using my .Net client software
  2. My Java web service will be able to receive that file
  3. After receiving that file, I will do some processing using that file and generate a new file.
  4. Now, I will have to return that new file to my .Net client again

Simply,

Input: My web method will have to receive a file
Output: My web method should return a file

Below are my local environment details:

Apache Tomcat 7, Axis 2, Eclipse, JRE 6

Can anybody help me how to write that web method in my Java web service?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T08:48:15+00:00Added an answer on June 4, 2026 at 8:48 am

    You can send/receive files as base64 encoded data contained within the XML document or as attachments contained outside the XML document (MTOM).

    In wsdl first approach you need to use schema type “base64Binary”.

    In code first approach you can write:

    public DataHandler yourMethod(DataHandler input)
    or
    public byte[] yourMethod(byte[] input)
    

    Links:

    • http://axis.apache.org/axis2/java/core/docs/mtom-guide.html
    • http://wso2.org/library/3860
    • http://wso2.org/library/1675
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to implement an Asynchronous file download from a web server using
I am trying to implement recoemmender code in java dynamic web application using direct
I'm trying to implement a web service which accepts a list of strings, each
I need to call a web service written in .NET from Java. The web
I am trying to implement a web service that uses open JPA to access
I'm trying to implement OpenId login for a web application. Whenever new user who
I am (just for fun) trying to implement a High Score web-service. I would
I'm trying to implement Windows Live Authentication in my ASP.Net application. Article really help
I'm trying to build a simple web service which return a list of shows
I'm new to java and I'm trying to compile and run a web service

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.