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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:01:38+00:00 2026-05-23T20:01:38+00:00

I am facing some problem while returning data from web services. I am using

  • 0

I am facing some problem while returning data from web services.
I am using Metro stack.

Problem:
The problem is my data contain some control characters. I don’t want to encrypt my data, as this will involve client side code changes as well.
Better way is to remove control characters, but character by characters scanning and removing/replaceAll will have some performance impact.

Probable solution:
What I want to do is intercept SOAP message before metro send it to client and check control characters. And then replace all control characters of XML before returning.

Do anyone here have any idea how can I intercept response before returning? Or
how I can write my own serializer/deserializer where I can replace control char?

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-23T20:01:38+00:00Added an answer on May 23, 2026 at 8:01 pm

    I found XMLAdapter very useful in my case.
    Adding info as in case any buddy can find it useful.
    Reference: http://weblogs.java.net/blog/kohsuke/archive/2005/09/using_jaxb_20s.html

    XMLAdapter contain abstract method marshal and unmarshal. So I used appropriate encoder in marshal/unmarshal method.

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

Sidebar

Related Questions

Hi guys I am using entity framework, I am facing some problem while checking
While using some regex in C#, I'm facing the following problem : Consider this
I have 2 classes Test(Base)and Program(child). Now I am facing some problem while downcasting.
I'm facing a problem while unit testing my forms. The problem is that data
I am facing some issues while serializing objects (I am using JBoss Drools, and
I'm using XStream to serialize some objects to XML, and am facing a problem
I'm facing some problem when I fetch page content of particular Id. I'm using
Hi I am facing this problem while building a source using ant Problem: failed
I am facing a problem related to get out all the controls from some
I'm getting ready to implement a source control system (subversion) but I'm facing some

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.