Solved

Encoding SOAP request - Apache Axis

Posted on 2008-06-19
9
1,413 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
Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

 
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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL several years ago, it seemed like now was a good time to update it for object-oriented PHP.  This article does that, replacing as much as possible the pr…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

739 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