Re: error passing byte[] or strings of encrypted data to Web Service
From: Dominick Baier [DevelopMentor] (dbaier_at_pleasepleasenospamdevelop.com)
Date: 05/30/05
- Previous message: ChuckD_Duncan: "error passing byte[] or strings of encrypted data to Web Service"
- In reply to: ChuckD_Duncan: "error passing byte[] or strings of encrypted data to Web Service"
- Next in thread: Yunus Emre ALPÖZEN [MCSD.NET]: "Re: error passing byte[] or strings of encrypted data to Web Service"
- Reply: Yunus Emre ALPÖZEN [MCSD.NET]: "Re: error passing byte[] or strings of encrypted data to Web Service"
- Reply: 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 02:29:50 -0700
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: ChuckD_Duncan: "error passing byte[] or strings of encrypted data to Web Service"
- In reply to: ChuckD_Duncan: "error passing byte[] or strings of encrypted data to Web Service"
- Next in thread: Yunus Emre ALPÖZEN [MCSD.NET]: "Re: error passing byte[] or strings of encrypted data to Web Service"
- Reply: Yunus Emre ALPÖZEN [MCSD.NET]: "Re: error passing byte[] or strings of encrypted data to Web Service"
- Reply: ChuckD_Duncan: "Re: error passing byte[] or strings of encrypted data to Web Ser"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]