Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. WSE 3.0 using TCP and custom data.

WSE 3.0 using TCP and custom data.

Scheduled Pinned Locked Moved Web Development
questionjsonhelptutorial
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Steve Messer
    wrote on last edited by
    #1

    I am trying to create an complex object to send back as a response to a request. for example: [SoapMethod("GetRO")] public RODataResponse GetRO( GetRORequest request ) { RODataResponse resp = new RODataResponse(); string a = request.target; string b = request.roId; resp.status = "GetRO Goooood"; resp.roData = null; return resp; }My object is defined as:

        public class RODataResponse
        {
            public string status;
            public RepairOrder roData;
        }
    

    Which contains a complex object that fails with a serialization error when using Wse2wsdl.exe.

        public class RepairOrder
        {
            public Dictionary lineItemList = new Dictionary();
            
            public RepairOrder()
            {
               lineItemList.Add( "one", new LineItem());
            }
        }
    

    My question is how do you make this work? How do I make a list of items serializible?

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups