Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > [WebMethod] passing, receving XmlNode Without a Namespace

Reply
Thread Tools

[WebMethod] passing, receving XmlNode Without a Namespace

 
 
Colin
Guest
Posts: n/a
 
      12-01-2003
Hi all,

For some reasons I sometimes use the following interface for xml passing:
[WebMethod]
public XmlNode getSomeOutputXml(XmlNode someInputXml)
{

}

Normally I return a domdocument. If I return it, a default namespace is
inserted:

<soap:Body>
- <getSomeOutputXmlResponse xmlns="http://www.uwv.nl/webservices/">
- <getSomeOutputXmlResult>
- <SomeXml xmlns=""> <!-- Here is the problem ! -->
- <Response>
- etc....

I do not want that. I want the namespace to be the same as
getSomeOutputXmlResponse (without inserting it another time), is that
possible ?

When I change the WSDL by hand so that it reflects the precise interface
(including the things that are normally in the XmlNode), the .Net generated
code of the client application will not pick up the return message (input is
ok), I think because of the inserted namespace (the object says <invalid
value> in the quick watch). Is that possible ? Or is it likely that there
was another error. Is there any tracing possible to see what the generated
code does so I can see where things go wrong ?

To solve this: Can I maybe create Xml Elements or Nodes without the help of
a document ?

To solve this: Can I change the WSDL so that it reflects the empty namespace
?

A lot of questions... If anybody could clear some of these things up, I
would be very glad.

Kind regards,

Colin.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Uploading/receving/sending problems Thaqalainnaqvi@gmail.com Computer Support 0 05-06-2006 04:04 PM
Receving usercontrol and page h-h ASP .Net 1 12-26-2005 02:30 AM
Problem in receving mail with attachment patelvinay.visnagar@gmail.com ASP .Net 2 11-10-2005 01:17 PM
Receving an array as parameter metz C Programming 4 04-27-2005 06:15 PM
Receving IDSN incoming calls on a 2621XM Stephan Cohen Cisco 0 10-23-2003 08:18 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57