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 7529905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T04:45:59+00:00 2026-05-30T04:45:59+00:00

I am trying to send the MS Word document to a Webservice through SOAP.

  • 0

I am trying to send the MS Word document to a Webservice through SOAP. Do I have to serialize the data first? or is it possible to send it 64bit encoded?

Thanks

  • 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-05-30T04:46:00+00:00Added an answer on May 30, 2026 at 4:46 am

    Yes, you have to think of the Word document as simply any binary file stream. To send a binary file stream through a SOAP or any type of webservice, it must be sent in a manner that the receiving service is going to be able to parse and utilize it. So serializing a big binary file is not going to be very efficient but it can be done. If you absolutely need to make sure the file is included as part of whatever other data you are sending, then that is just something you have to live with. If you have the control or ability to configure the service to do something more efficient, then you could send the file via some other method (IE, use FTP or WEBDEV to get it to a pickup folder) and then in your SOAP request you simply send the filename of the file you dropped off in the pickup folder for you to process as part of your request.

    Added:

    I’ll try to elaborate in more detail on ways to handle including the file in the SOAP request…..

    Basically if you want to try sending the file, open it as a file and just read the binary file in. Then how it gets encoded is either going to be at the whim of the SOAP library you are using (IE, the dotNET Framework if you are using that), or you would have to manually control that by doing something such as Base64 encode the binary data before passing it to your SOAP methods. If you are creating both the client and the server side code, and are using the same SOAP library on both, then it should be safe to just pass the binary to your SOAP method and use whatever techniques it might intrinsically use to convert the binary stream to valid values it will pass and can be decoded properly on the other end –assuming that it will encode the binary stream using some encoding methodology.

    However, if you need to make this available to other platforms or where other persons using the service might be using a different SOAP library implementation, then you should probably use a standardized method such as Base64 encoding the data before you hand it off to SOAP so that you can forcefully make sure it is implemented consistently regardless of the tools being used. I had a client once who decided they wanted to write their own SOAP library instead of using one of the many existing implementations — guess how often we ran into issues with that?!? So if you have to potentially have others talk to your web service, then you want to make sure your binary data is encoded in a format that you can dictate. Hope this helps…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

im trying to send rest api Users.getLoggedInUser i have all the secret session and
I am trying to send some data from a LINQ query in C# to
I'm trying to send an email merging one document (.docx) with a contacts database
I am trying to export a Word document's review comments. I want to export
I am trying to send a word/text from my iphone application to php page,
I'm trying send flash messages and welcome notices to users if it's their first
Trying to send some data form my previous ViewController. To be more clear trying
im trying to send a file in android through sockets. i want to add
Trying to upload a word document then attach it to an email which is
Trying to send a complex type between two systems that have the same code

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.