problem with sending html content as input in soap request

wxdqz

New Member
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 content="<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><head><title>welcome to the default publication</title><head>
<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">
<document>
<title><![CDATA[null]]></title>
<resourceURL><![CDATA[http://localhost:8080/axis/services/ImergoService]]></resourceURL>
<validationReport></validationReport>
<cssCheckReport></cssCheckReport>
<ruleCheckReport rulesetId="null" rulesetName="null"></ruleCheckReport>
</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黵 unvollst鋘diges 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 < .

I tried sending the content with <[CDATA[]]> and tried by giving > symbol with > 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 technologies.
can anyone help me?It would be of great help to me.
Thanking you in advance.

regards,
robina
 
Back
Top