Do you have any control over the service? I'm suggesting that you change it to document/literal style, and then you should be able to send the HTML content as pure XHTML, not as a string within an element called content. In other words the input message would look like this:
<s:Body> <x:check xmlns:x="http://webservice.checker.applications.bika.fit.fraunhofer.de"> <url>http://localhost:8080/axis/services/ImergoService</url> <content> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>welcome to the default publication</title> </head> <body> ... </body> </html> </content> </x:check> </s:Body> Anne On 8/20/05, Robina Brintha <[EMAIL PROTECTED]> wrote: > Thanks for the reply.Actually I am using AJAX architecture in javascript > code in which the request is send as SOAP encoding and sending it as a > string is defined in the wsdl .What do you mean by send it as XML?sorry I > didnt get you properly.can you explain a bit about it if > possible,please?Thanking you in advance. > regards, > robina > > > On 8/20/05, Anne Thomas Manes <[EMAIL PROTECTED]> wrote: > > I suggest that you not use SOAP encoding (use Document style), and > > that you not try to send the content as a string. Send it as XML. (use > > DOM). > > > > Anne > > > > On 8/20/05, Robina Brintha <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > 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> > > > <html><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ü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 < . > > > > > > 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 > > > > > > > > > > > > > > > Robina > > > Master of Media Informatics > > > (RWTH univ) > > > Bonn > > > Germany > > > > > > > > > -- > > > > > > > > > > > > Robina > > > Master of Media Informatics > > > (RWTH univ) > > > Bonn > > > Germany > > > > > > > > > -- > > > > > Robina > Master of Media Informatics > (RWTH univ) > Bonn > Germany >
