SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2004
    Location
    uk
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    posting xml file to a web service

    what is the correct syntax to post an xml file to a web service.

    ive tried

    XmlDocument x = new XmlDocument();
    x.LoadXml(XMLFile);

    TxttoolsAddressbookServiceService myService = new TxttoolsAddressbookServiceService();
    myService.Addressbook(x);

    but this gives error on build -

    cannot convert from 'System.Xml.XmlDocument' to 'TxtToolsService.AddressbookRequest'

    also i tried converting the file to a series of bytes but get this error on build -

    cannot convert from 'byte[]' to 'TxtToolsService.AddressbookRequest'

    Whats the correct way to pass the xml data to the web service?

  2. #2
    SitePoint Enthusiast share's Avatar
    Join Date
    Jul 2008
    Posts
    56
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You may want to consider outsourcing the work.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •