On Jun 28, 9:19 am, maflat...@gmail.com wrote:
> On Jun 28, 7:47 am, Martin Honnen <mahotr...@yahoo.de> wrote:
>
>
>
>
>
> > maflat...@gmail.com wrote:
> > > The issue is that the namespace changes depending on where the web
> > > service resides (ex. staging, production, local computer). How can I
> > > get thehttp://localhost/site/test/webservice.asmxdynamically(parse
> > > it from XmlDocument?)
>
> > I would suggest to configure your web service in a way that the
> > namespace does not change. That is possible as a namespace does not have
> > to refer to an existing resource.
>
> > If you want to read out namespaces from an XmlDocument then how you do
> > that depends on the structure of the XML. If there is just one default
> > namespace declaration on the root element e.g.
> > <root xmlns="
http://example.com/2007/ns1"> > > then you can simply access
> > doc.DocumentElement.namespaceURI
> > (where doc is your XmlDocument instance).
>
> > Using SelectSingleNode or SelectNodes you are also able to access the
> > namespace nodes the XPath data model knows. If you need help with that
> > then show us a relevant sample of the XML.
>
> > --
>
> > Martin Honnen --- MVP XML
> >
http://JavaScript.FAQTs.com/ >
> Thank you for your reply. Can you please show me or point me to an
> article for configuring web services in a way that the namespace does
> not change?
>
> Thanks
> Maz.- Hide quoted text -
>
> - Show quoted text -
Never mind. Dumb question. I got it.