Solved

Encoding SOAP request - Apache Axis

Posted on 2008-06-19
9
1,402 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
  • 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
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
HSSFWorkbook cannot be resolved error 10 66
Why method in Java which is called from Runnable run() doesn't need to be 'static'? 1 24
xampp tool 12 48
jsp login check 12 28
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
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…

813 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now