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

  • Home
  • SEARCH
  • 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 723629
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:07:47+00:00 2026-05-14T06:07:47+00:00

We are working together with another firm. our application communicates with the other application

  • 0

We are working together with another firm. our application communicates with the other application through WCF on our side and a custom implemented java wsdl handler on the other side. They specify the wsdl format and one of the rules is that a specific string cannot contain more then 15 characters. (normally it’s 60, but i take 15 for easy example reasons)

When we try to send the following string to them we get an error that the string is too long according to the wsdl:

"example & test" > this is a string of 14 characters, so it should be allowed

the microsoft wcf parser translates this to "example & test" . This encoded string is 18 characters long.

Now what is the standaard behavior to check a maxlength defined in a message? Is it the encoded message or the decoded message? I would think it’s the decoded message , but i ain’t sure. If it is the encoded message, how should we handle this so we would know how we have to split the string?

  • 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-14T06:07:48+00:00Added an answer on May 14, 2026 at 6:07 am

    http://www.w3.org/TR/xmlschema-2/#rf-maxLength
    4.3.3 maxLength

    For string and datatypes ·derived· from string, maxLength is measured in units of characters as defined in [XML 1.0 (Second Edition)]

    Charsets
    [Definition: A parsed entity contains text, a sequence of characters, which may represent markup or character data.]

    Reading that I would think the standard behaviour is the decoded as a marked up character should be treated as a single character.

    So usually you do any splitting/truncation before you encode it.
    Otherwise you run into issues if you truncate through the middle of an encoded character.
    I’ve tested this against a WCF web service with BizTalk behind it and it’s fine with an XML encoded string that is longer than the maxLength.

    It sounds like they are doing it before the decode it though.
    So you may have to encode it first and then split it on the white space.

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

Sidebar

Related Questions

At work we have 4 people working together on a few different projects. For
I am trying to get the yasnippet and pabbrev packages working together with emacs,
I'm working now together with others in a grails project. I have to write
I'm working on a control to tie together the view from one ListView to
I thought people would be working on little code projects together, but I don't
I have existing C++ lib containing many different classes working together. Some example usage
Me and a friend are working on some projects together and we are trying
I'm working on a project where several different object are semantically linked together and
I'm working on a project which means customising an existing application (JasperServer 3.7.1) which
I've been working on a Java EE 6 project (EJB 3.1, JSF 2, JPA

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.