WSE 3.0 using TCP and custom data.
Web Development
1
Posts
1
Posters
0
Views
1
Watching
-
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?