Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~2K People Reached
Favorite Forums
Favorite Tags
c++ x 7
Member Avatar for vihrao

I created a sample wcf REST service in .NET 3.5 vs.net 2008 Defined interface cdservice [ServiceContract] public interface CdService { [OperationContract] [WebGet(UriTemplate = "service/*", ResponseFormat = WebMessageFormat.Xml)] string[] GetConfig(); } Implemented GetConfig in Service1.cs namespace CdService { public class Service1 : CdService { public string[] GetConfig() { string[] services = …

Member Avatar for Ketsuekiame
0
213
Member Avatar for vihrao

I have problems in serializing a list. Here is my class: [CODE]public partial class ProblemType { private List<DateTimeType> dateTimeField; public ProblemType() { this.dateTimeField = new List<DateTimeType>(); } public List<DateTimeType> DateTime { get { return this.dateTimeField; } set { this.dateTimeField = value; } } } public partial class DateTimeType { private …

Member Avatar for nick.crane
0
154
Member Avatar for vihrao

How can I extract the data for a specific XML element and convert it into byte array My XML file; [CODE] <?xml version="1.0" encoding="utf-8" ?> <root> <creditcard> <number>19834209</number> <expiry>02/02/2002</expiry> </creditcard> <name> <first>Mary</first> <mi>V</mi> <last>Jones</last> </name> <personal> <dob>01011966</dob> <gender>male</gender> </personal> </root> [/CODE] I want to extract the element <creditcard> and all …

Member Avatar for vihrao
0
945
Member Avatar for vihrao

I want to encrypt and decrypt different elements of xml file with different RSACryptoServiceProvider keys [CODE]RSACryptoServiceProvider rsaKey = new RSACryptoServiceProvider(cspParams); string publicKey = rsaKey.ToXmlString(false); RSACryptoServiceProvider rsaKey2 = new RSACryptoServiceProvider(cspParams2); string publicKey2 = rsaKey2.ToXmlString(false); [/CODE] ex: I encrypt <creditcard> element with publicKey and I encrypt <personal> element with publicKey2. Here is …

0
64
Member Avatar for vihrao

I want to create a rsa key in c# and export the container. I am having difficulty. I create container like this: [CODE]CspParameters cspParams = new CspParameters(); cspParams.KeyContainerName = "XML_ENC_RSA_KEY";[/CODE] The msdn example says I can export the container with this syntax: aspnet_regiis -pa "XML_ENC_RSA_KEY" "NT AUTHORITY\NETWORK SERVICE". This does …

0
74
Member Avatar for vihrao

I am using operator to add two matrices stored inside matrix objects. I instantiate and initialize two matrices. Then I call operator to add them. But before adding the two matrices: m1 and m2 , their destructors gets called. When I start adding the matrices since m2 matrix array has …

Member Avatar for VernonDozier
0
487
Member Avatar for vihrao

I am trying to add two matrices and get error when I add two matrices in the line rslt = m1+m2 using operator overloading. Both m1 and m2 are matrix classes. Here is the code: [CODE] int main(int argc,char *argv[]) { matrix * rslt; //matrix *m1 = new matrix(); matrix …

Member Avatar for vihrao
0
229