You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by "Ramanswamy, Muthu" <mr...@gers.com> on 2002/06/25 04:15:20 UTC

DHTML and xmlns is the SOAp Envelope.

Hi All-

I am using Apache SOAP with DHTML. When I get the SOAP Envelope from Apache,
I couldn't BIND with the XML Island. I am using IE 6.0. Appreciate any help.

Here is a sample code:

The first segment works without the xmlns. The second segment for the code
that has got the soap envelope doesn't work.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
	<title>My DHTML Test with Apache SOAP Message</title>
</head>

<!-- This segment works -->
<XML ID="xmlDataTwo">
<?xml version='1.0' encoding='UTF-8'?>
<return>
<lastName>Nala</lastName>
<firstName>Simba</firstName>
<movie>Lion King</movie>
</return>
</XML>
<table datasrc="#xmlDataTwo">
<td><div datafld="lastName"></div></td>
<td><div datafld="firstName"></div></td>
<td><div datafld="movie"></div></td>
</table>

<!-- This segment with xmlns doesn't work -->
<XML ID="xmlData">
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<ns1:EchoMessageResponse xmlns:ns1="urn:com-gers-MyMovie"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<return xsi:type="ns1:MyMovie">
<lastName xsi:type="xsd:string">Nala</lastName>
<firstName xsi:type="xsd:string">Simba</firstName>
<movie xsi:type="xsd:string">Lion King</movie>
</return>
</ns1:EchoMessageResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
</XML>

<table datasrc="#xmlData">
<td><div datafld="lastName"></div></td>
<td><div datafld="firstName"></div></td>
<td><div datafld="movie"></div></td>
</table>
</body>
</html>

Question? How can I bind Apache SOAP envelope to the XML Data Island?
Appreciate your help.

Thanks., 

--
To unsubscribe, e-mail:   <ma...@xml.apache.org>
For additional commands, e-mail: <ma...@xml.apache.org>