xsl-list
[Top] [All Lists]

RE: Question on SOAP

2005-03-30 13:10:52
I can't see what this has to do with XSL, but the document (after correcting
the mail-mangler's insertion of 3D) looks perfectly well-formed to me. (The
error message suggests there were two namespace declarations for xmlns on
the same element, which isn't the case for the sample as shown.)

As for why the namespace declarations are there, I've no idea, but
presumably the sender of the message thought that the schema required
stopRunningMandateResponse to be in namespace urn:css, and
McomStopRunningMandateResponse to be in no namespace. If that's not the
case, you need to complain to them.

Michael Kay
http://www.saxonica.com/ 

-----Original Message-----
From: babu(_dot_)eshwaramoorthy(_at_)wipro(_dot_)com 
[mailto:babu(_dot_)eshwaramoorthy(_at_)wipro(_dot_)com] 
Sent: 30 March 2005 20:44
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Question on SOAP



Hi All,

I am invoking a webservice and getting the below response.
Can anyone tell me why the elements in the response message 
contains the
attribute "xmlns".



<soapenv:Envelope
xmlns:soapenv=3D"http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema";
xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance";>
      <soapenv:Body>
              <stopRunningMandateResponse xmlns=3D"urn:css">
                      <McomStopRunningMandateResponse xmlns=3D"">
                              <ns1:Error_Code
xmlns:ns1=3D"urn:css.simpay.er.mobile.belgacom.be">0</ns1:Error_Code>
                      </McomStopRunningMandateResponse>
              </stopRunningMandateResponse>
      </soapenv:Body>
</soapenv:Envelope>

This "xmlns" attribute is creating problem when I try to parse the
response message. I am getting the below errror "The document is not
well-formed xml document . Unrecoverable errors encountered while
parsing:org.xml.sax.SAXParseException: Attribute "xmlns" was already
specified for element "stopRunnigMandateResponse".

Thanks in advance,
Babu



Confidentiality Notice


The information contained in this electronic message and any 
attachments to this message are intended
for the exclusive use of the addressee(s) and may contain 
confidential or privileged information. If
you are not the intended recipient, please notify the sender 
at Wipro or Mailadmin(_at_)wipro(_dot_)com immediately
and destroy all copies of this message and any attachments.

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>