Re: error passing byte[] or strings of encrypted data to Web Service
From: Yunus Emre ALPÖZEN [MCSD.NET] (yemre_at_msakademik.net)
Date: 05/30/05
- Previous message: maidoo: "Re: web application development user rights req"
- In reply to: Dominick Baier [DevelopMentor]: "Re: error passing byte[] or strings of encrypted data to Web Service"
- Next in thread: ChuckD_Duncan: "Re: error passing byte[] or strings of encrypted data to Web Ser"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 30 May 2005 20:59:18 +0300
U are right. Converting Base64 should fix it. To overcome this issue, I
prefer to implement a class and mark it serializable and embed my data in
it. Conversion is done automatically. I used this method for secure file
transfer over SSL in web services. It works perfectly...
-- Thanks, Yunus Emre ALPÖZEN BSc, MCSD.NET "Dominick Baier [DevelopMentor]" <dbaier@pleasepleasenospamdevelop.com> wrote in message news:421237632530493895783323@news.microsoft.com... > Hello ChuckD_Duncan, > > try converting your encrypted strings to Base64 prior to sending > > string s = Convert.ToBase64(byte[]) > > this should be done automatically upon serialization by the proxy > infrastructure (what datatype ends up in your wsdl document) ?? > > --------------------------------------- > Dominick Baier - DevelopMentor > http://www.leastprivilege.com > >> passing something simple like: >> bool result = Sample("first", "second"); >> works fine... but when the two args are replaced by encrypted strings, >> I >> get the same "object not set to an instance" error message as in the >> start of this thread. >> >> bool result = Sample( szEncryp, szXMLPublicKey); >> >> also blows up if the first parm is NOT encrypted at all, just "xyz". >> The >> XML string is in fact a well-formed XML: >> string szXMLPublicString = provider_alg.GetXMLString(false); // >> and >> can be viewed and verified as a valid XML string. >> Help?? >> > > >
- Previous message: maidoo: "Re: web application development user rights req"
- In reply to: Dominick Baier [DevelopMentor]: "Re: error passing byte[] or strings of encrypted data to Web Service"
- Next in thread: ChuckD_Duncan: "Re: error passing byte[] or strings of encrypted data to Web Ser"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|