?
Solved

Encoding SOAP request - Apache Axis

Posted on 2008-06-19
9
Medium Priority
?
1,431 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
Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

 
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 1000 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
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 …
Suggested Courses
Course of the Month12 days, 5 hours left to enroll

752 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