Re: error passing byte[] or strings of encrypted data to Web Service

From: Dominick Baier [DevelopMentor] (dbaier_at_pleasepleasenospamdevelop.com)
Date: 05/30/05

  • Next message: Dominick Baier [DevelopMentor]: "Re: web application development user rights req"
    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??
    >


  • Next message: Dominick Baier [DevelopMentor]: "Re: web application development user rights req"
  • Quantcast