Solved

Encoding SOAP request - Apache Axis

Posted on 2008-06-19
9
1,423 Views
Last Modified: 2013-12-02
Hi,

I have a SOAP server developed in Apache Axis 1.4 and deployed Apache Tomcat.
I am getting SOAP requests in third party in encoded format.
That is "<" being encoded to "&lt;" and ">" to "&gt;".
As a result, I was unable to parse the SOAP XML.
I would like to know how to encode and decode tags.
And also how to encode & decode Data.

Thanks.
0
Comment
Question by:sandeep1984
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
9 Comments
 
LVL 23

Expert Comment

by:Siva Prasanna Kumar
ID: 21821989
How are you trying to parse the SOAP Request? can you provide those details?
0
 
LVL 2

Author Comment

by:sandeep1984
ID: 21828547
I am saving the SOAP body as XML, and then parsing using dom4J.

But I want to know the encoding mechanism for data encoding.
0
 
LVL 23

Expert Comment

by:Siva Prasanna Kumar
ID: 21829912
Sandeep your web service may or may not be actually returning &lt; in the SOAP message, are you getting the soap message starting with &lt;envelope&gt; ???

or only the xml message inside it has that kind of &lt; encodings, if its only the message then you need to handle this separately. if not then show the code of how you are trying to parse I can help better thanks.
0
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
LVL 2

Author Comment

by:sandeep1984
ID: 21843540
Only The soap body is getting encoded.
0
 
LVL 23

Accepted Solution

by:
Siva Prasanna Kumar earned 500 total points
ID: 21844969
then its nothing to do with encoding your web service itself is returning the actual message with &lt; kind of tags.
0
 
LVL 2

Author Comment

by:sandeep1984
ID: 21852657
I would like to know how can I encode the data while sending SOAP request (Not the tags)
0
 
LVL 23

Expert Comment

by:Siva Prasanna Kumar
ID: 21854027
Sandeep if you don't provide any code of how you are making the request or how you are handling the response there is nothing much I can help.
0
 

Expert Comment

by:BeWhereWhen
ID: 22196247
No answer at all . Rubbish.
0
 
LVL 23

Expert Comment

by:Siva Prasanna Kumar
ID: 22196303
@BeWhereWhen
if u are facing some problem, ask a new question don't comment on a closed question, In case of sundeep the web service it self was sending < as part of the message.
0

Featured Post

Turn Insights into Action

Communication across every corner of your business is essential to increase the velocity of your application delivery and support pipeline. Automate, standardize, and contextualize your communication processes with xMatters.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

687 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question