• 0

c# WebService XML as parameter


Question

Hello gang,

 

I'm having an interesting situation and I could use a second set of eyes.  I have created a webservice that accepts an XMLDocument as a parameter, but in my testbed app the value shows up as an XMLNode.  WTH?

[WebMethod(CacheDuration = 2)]
public XmlDocument SaveFeelz(XmlDocument xmlFeelz)
{
//code here....
}

See image for the intellisense I am seeing.   Any thoughts?

post-45653-0-24072000-1401734152.png

Link to comment
https://www.neowin.net/forum/topic/1216153-c-webservice-xml-as-parameter/
Share on other sites

4 answers to this question

Recommended Posts

  • 0
  On 02/06/2014 at 18:36, James Rose said:

Hello gang,

 

I'm having an interesting situation and I could use a second set of eyes.  I have created a webservice that accepts an XMLDocument as a parameter, but in my testbed app the value shows up as an XMLNode.  WTH?

[WebMethod(CacheDuration = 2)]
public XmlDocument SaveFeelz(XmlDocument xmlFeelz)
{
//code here....
}

See image for the intellisense I am seeing.   Any thoughts?

 

Where is the xmlFeelz object you are passing in as the parameter? I would need to see more of your code to see what is happening.

  • 0
  On 02/06/2014 at 18:59, winlonghorn said:

Where is the xmlFeelz object you are passing in as the parameter? I would need to see more of your code to see what is happening.

 

Thanks for taking the time.  I have an existing XML file for testing and I get it via a OpenFileDialog

XmlDocument xmlFeelz = new XmlDocument();

xmlFeelz.Load(objFileDialog.FileName);

XmlDocument xmlResult = new XmlDocument();

FeelzMeServices.FeelzMeSrvc objFMS = new FeelzMeServices.FeelzMeSrvc();

XmlDocument xmlReturn = objFMS.SaveFeelz(xmlFeelz);

However, that said... the TestBed code doesn't really change the fact that the intellisense is asking for the wrong type

This topic is now closed to further replies.
  • Posts

    • From a quick Google it seems 6GHz is optional on 802.11be. Ubiquiti has one, Unifi U7 Lite.
    • Disagreed, I feel it’s going somewhere and his role served a purpose - and moreover with maybe what 10 mins of screen time - he had a bit of character development also.
    • This is the Superman film I had been waiting for. The tone was fine, yes a little more “fun” than previous outings but a lot of that came from supporting characters. Krypto was well handled, and somehow managed to not be an annoying distraction and actually a valid part of the story. Hoult was GREAT as Luthor. Genuinely so happy that this wasn’t crap. I personally enjoyed Superman Returns, despite its flaws (tried too much to hide behind the older movies, had no real fight to Superman). I enjoyed the Man Of Steel movies despite their flaws (totally that is NOT Superman). But this - this is the film I had wanted. In the UK we are far more reserved in cinemas than Americans. It’s rare that there is the whooping and hollering that we have seen from videos of US theatres, so when I say that the audience clapped at the end of this - it’s quite a big deal. As for all this “Superman has gone woke” BS - he is freaking Superman and if at any point in that movie you found yourself pooh-pooing his actions, you are just - you’re aligning your thinking with the problems and not the solutions. I adore how the movie addressed the modern world through thinly veiled allegory (Israel, online bots, perceptions of people, how they change on a dime) - that is maybe one of the greatest strengths of  comics, they rarely pull punches with that sort of thing, and look, THIS IS SUPERMAN, he’s meant to be the global boyscout and that is a strength and where he falls down sometimes, that’s just who he is and who he is meant to be. I also am glad there was no reference to the worldwide joke that is “Truth, Justice and the American way”. I can understand the comment suggesting this film was a little too “fun” or “whimsical”, but I’d urge a rewatch of the Donner Superman. It was very much a flawed masterpiece and its subsequent sequel had too many jokes that didn’t land. While there was a lot of James Gunn in this movie, I feel he pulled it back significantly, it wasn’t Guardians and moreover a lot of the fun came from supporting roles.
    • People do it everywhere. Should be legal to be allowed to bitch slap people who put their phone on speaker in public places
  • Recent Achievements

    • One Month Later
      Ricky Chan earned a badge
      One Month Later
    • First Post
      leoniDAM earned a badge
      First Post
    • Reacting Well
      Ian_ earned a badge
      Reacting Well
    • One Month Later
      Ian_ earned a badge
      One Month Later
    • Dedicated
      MacDaddyAz earned a badge
      Dedicated
  • Popular Contributors

    1. 1
      +primortal
      504
    2. 2
      ATLien_0
      207
    3. 3
      Michael Scrip
      205
    4. 4
      Xenon
      141
    5. 5
      +FloatingFatMan
      115
  • Tell a friend

    Love Neowin? Tell a friend!