I am trying to create an asp.net web form that allows a user to enter information, then have this information sent via an XMLwriter to a web service.
Here is a snippet of the xml as it should be outputted;
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body xmlns:ns1="http://its/foo.wsdl">
I try to manipulate this via code;
xml.WriteStartElement("soap", "Envelope", "http://schemas.xmlsoap.org/soap/envelope/")
xml.WriteAttributeString("xmlns", "ns1", "http://its/foo.wsdl")
But I get this error:
The 'xmlns' attribute is bound to the reserved namespace 'http://www.w3.org/2000/xmlns/'.
Can anyone tell me what I am doing wrong?
Thanks.