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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:06:07+00:00 2026-05-31T20:06:07+00:00

I have a XMLHTTPRequest that contains SOAP message. I want to add guid that

  • 0

I have a XMLHTTPRequest that contains SOAP message.
I want to add guid that will identified the message and will be consume by C# web service.
The GUID goal is to identified specific user and supposed to escort all user requests for authentication purpose on server, This GUID is created at user login, saved on server and then for every request the request guid checked by server.

Should I use XMLHTTPRequest header like this:

setRequestHeader("GUID", this.requestGUID);

Or use SOAP Header

<?xml version="1.0"?<?xml version="1.0"?>
<soap:Envelope
xmlns:soap="http://www.w3.org/2001/12/soap-envelope"
soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">

<soap:Header>
  <GUID>someGUID...</GUID>
</soap:Header>
...
...
</soap:Envelope>

Is there any advantages for one of them?

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-31T20:06:08+00:00Added an answer on May 31, 2026 at 8:06 pm

    I think that the answer on your question is mostly a matter of taste. I personally would prefer to use setRequestHeader method: it take less space in the message and is not SOAP dependent (I personally like JSON more as SOAP).

    If I would know more about the nature of the GUID value I would probably change my mind. If the GUID is the property of the data then the message body would be better choice. Having no more information as you posted in the question I stay by setRequestHeader choice.

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

Sidebar

Related Questions

I have a web application that adds contextual information to XmlHttpRequest objects using the
I have a javascript that does this (http is your XMLHttpRequest object) var r
I have a bit of data that I want to use to build a
I have website that use XMLHttpRequest (jQuery, actually). I also have another site running
I have a form that contains 5 drop down lists which are created by
I am making HTTP requests to a web service that requires authentication. My intiial
I've got a problem with XMLHttpRequest. I have a that has a onChange event
Do any of the currently popular browsers have particular problems caching* XMLHttpRequest responses that
I have a webpage that contains a form with several text fields and an
I have a JavaScript application that uses XMLHttpRequest to fetch and parse about 60,000

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.