I'm sorry, actually the struct is in a class library which the WCF calls to access database. Please help me with this.
On Thu, Mar 31, 2011 at 1:43 PM, KS Vishvajith <[email protected]>wrote: > Hi all, > > I have a remote WCF service hosted on a windows service. The wcf service > has a public struct as > > public struct _PERSONdETAIL > { > string _name; > string _title; > string _designation; > Nullable<DateTime> _datemet; > string _placemet; > string _comment; > Nullable<DateTime> _birthday; > Int64 _personid; > > public void setdata(string name, > Int64 personid, > string title, > string designation, > string placemet = null, > string comment = null, > Nullable<DateTime> datemet = null, > Nullable<DateTime> birthday=null > ) > { > _name = name; > _title = title; > _designation = designation; > _datemet = datemet; > _placemet = placemet; > _comment = comment; > _birthday = birthday; > _personid = personid; > } > > > public void getdata(ref string name, > ref string title, > ref string designation, > ref Nullable<DateTime> datemet, > ref string placemet, > ref string comment, > ref Nullable<DateTime> birthday, > ref Int64 personid) > { > name = _name; > title = _title; > designation = _designation; > datemet = _datemet; > placemet = _placemet; > comment = _comment; > birthday = _birthday; > personid = _personid; > } > }; > > > and a public method as > > [OperationContract] > void wcf_get_user_visible_person_id_set(Int64 _userid, ref > List<PgDbConn.PgDbConnector._PERSONdETAIL> _pdetails); > > My question is, how can I call PERSONdETAIL.getdata() & > PERSONdETAIL.setdata() methods from the client? > > > -- > *With best regards, > K.S.Vishvajith* > -- *With best regards, K.S.Vishvajith* -- You received this message because you are subscribed to the Google Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en or visit the group website at http://megasolutions.net
