/    Sign up×
Community /Pin to ProfileBookmark

problem sending a <html> content as string in soap request

Hello,
I am trying to call a webservice which is deployed in axis in which I have to send a <html> content as a input string in the soap request.I am getting the response from the webservice but its not giving me the proper result .Its supposed to validate the sent <html> content and return the errors as an xml file.I get an xml file as response but it just returns an empty tag .So my guess was that its not actually taking the inout which I am sending .I am using javascript(ajax) inthe client side .

this is the string which i am sending in my javascript code,
var contentkupu=<![CDATA[“<html>”+”<head>”+”<title>”+”Welcome to the default publication”+”</title>”+”</head>”+”<body>”+kupu.getHTMLBody()+”</body>”+”</html>”]]>;

This is the soapbody which is send in my soap request,
<s:Body>
<x:check xmlns:x=”http://webservice.checker.applications.bika.fit.fraunhofer.de“>
<url>http://localhost:8080/axis/services/ImergoService</url>
<content>
&lthtml>&lt;head>&lt;title>welcome to the default publication&lt;/title>&lt;head>
&lt;body>………………………..
………………………….
</content>
<contentType>html</contentType>
<encoding>iso-8859-1</encoding>
<ruleSet>WCAG 1.0 A</ruleSet>
</x:check>
</s:Body>

My soap response,
<checkReturn xmlns:soapenc=”http://schemas.xmlsoap.org/soap/encoding/” xsi:type=”soapenc:string”>
&lt;document>
&lt;title>&lt;![CDATA[null]]>&lt;/title>
&lt;resourceURL>&lt;![CDATA[http://localhost:8080/axis/services/ImergoService]]>&lt;/resourceURL>
&lt;validationReport>&lt;/validationReport>
&lt;cssCheckReport>&lt;/cssCheckReport>
&lt;ruleCheckReport rulesetId=”null” rulesetName=”null”>&lt;/ruleCheckReport>
&lt;/document>
</checkReturn>

I am supposed to get something like this inside the validation report tag
<validationReport>
<error lineNumber=”1″ columnNumber=”109″>
<messageStr><![CDATA[Endtag für unvollständiges Element
“HEAD”]]></messageStr>
<codeSample><![CDATA[TR/html4/strict.dtd”><html><head></head><body><h1>Test</h1><h3>foo</h3></body></
^]]></codeSample>
</error>
</validationReport>

The < is automatically changed to &lt; .

I tried sending the content with <[CDATA[]]> and tried by giving > symbol with &gt; entity references but either way didnt work .My question is am I sending the html content in the right way ?If not what is the mistake I am making?How to send a <html> content as a soap input string in the soap request body?
I am completely new to all these .
can anyone help me?It would be of great help to me.
Thanking you in advance.

regards,
robina

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @ephram spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...