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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:44:41+00:00 2026-05-30T09:44:41+00:00

The method call is successful without Request body. When I use below Request body,

  • 0

The method call is successful without Request body. When I use below Request body, I get HTTP/1.1 400 Bad Request. Do you see any obvious problem with below requst body?

Request Body

{ 
    "_userConfigData":{"UserName":"bXZpbmphbXVyaQ==", "FirstName":"User1", "LastName":"Last1", "ContactInfo":"None" }, 
    "_configResult": "Miscellaneous"
}

Request Headers

User-Agent: Fiddler
Content-Type: application/json
Host: localhost:1706
Content-Length: 167

Here is the server side method:

[OperationContract]
[WebInvoke(UriTemplate = "UpdateUserDetails/?_clientIP={_clientIP}&AdminName={AdminName}", Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Wrapped)] 
public void UpdateUserDetails(UserConfigData _userConfigData, ConfigResult _configResult, string _clientIP, string AdminName)
{
    // 
}

Here is the URL that I use with Fiddler2:

http://localhost:1706/WCF/UserConfig/UserConfigService.svc/UpdateUserDetails?_clientIP=localhost&AdminName=admin

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-30T09:44:42+00:00Added an answer on May 30, 2026 at 9:44 am

    I was able to get your code to work, but I had to make some modifications.

    1. I had to move the data carried by the query string into the body itself, otherwise it didn’t work.
    2. I had to get rid of the BodyStyle Wraped option.

    Anyway, here is the updated model objects with your data:

    public class UserConfigData
    {
        public string UserName { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public string ContactInfo { get; set; }
    }
    
    public class Result
    {
        public UserConfigData UserConfigData { get; set; }
        public string ConfigResult { get; set; }
        public string ClientIp { get; set; }
        public string AdminName { get; set; }
    }
    

    The server side method:

    [WebInvoke(UriTemplate = "UpdateUserDetails", Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json)]
    public void UpdateUserDetails(Result result)
    {
        //
    }
    

    The json that you pass in:

    {
        "AdminName":"String content",
        "ClientIp":"String content",
        "ConfigResult":"String content",
        "UserConfigData":{
            "ContactInfo":"String content",
            "FirstName":"String content",
            "LastName":"String content",
            "UserName":"String content"
        }
    }
    

    UPDATE:
    Fiddler request screen shot:
    Fiddler request screen shot

    And the request gets to the server UpdateUserDetails() Handler:
    UpdateUserDetails

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

Sidebar

Related Questions

I have this method call I have to use... financial_document.assets.length But financial_document.assets could be
You can use a standard dot notation or a method call in Objective-C to
the title already tells the question: you can successfully call the Print-Method on a
Can you intercept a method call in Perl, do something with the arguments, and
Can I intercept a method call in Objective-C? How? Edit: Mark Powell 's answer
I have a method that varies by a single method call inside, and I'd
Iam getting OutOfMemoryException while making remote method call. RemoteEntity.SetLocalStore(DATASET); passed value is dataset. Note
I'm trying to intercept a method call (afterInsert() of a domain class) in a
It is my understanding that I can test that a method call will occur
The TransactionScope expects a call to its Complete method as follows. Otherwise the transaction

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.