Solved

Encoding SOAP request - Apache Axis

Posted on 2008-06-19
9
1,392 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
 
LVL 2

Author Comment

by:sandeep1984
ID: 21843540
Only The soap body is getting encoded.
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
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…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

760 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

17 Experts available now in Live!

Get 1:1 Help Now