[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.webservices

WSE: Specifying the Parts of a SOAP Message That Are Encrypted?

(Erwin Smurawski)

1/9/2003 11:16:00 PM

hi,

I now to "Encrypting a SOAP Message" where the complete body will be
encrypted/decrypted.
But is anyone there, who understands how to specifying parts of a SOAP
Message that are encrypted/decrypted?

let's say, we have a WebMethod:

[WebMethod]
public string SaveUserInformation(UserInformation UserInfo) {
Helpers wseHelpers = new Helpers(); //my custom class to check the
SoapRequest and some other things
wseHelpers.ThrowNoSoapRequest();

Debug.WriteLine("Name: " + UserInfo.Name + " CreditCard: " +
UserInfo.CreditCard);
return UserInfo.CreditCard; //return plaintext to client to test the
decryption}
}

public class UserInformation {
public string Name;
/*the CreditCard should be encrypted by the client
and decrypted by the WebMethod. How to do this??*/
public string CreditCard;
}

Did i have to derive the UserInformation class from SoapHeader and
declare an Id - XmlAttribute on top of the CreditCard?
What did I have to do on clientside?
I don't understand the incomplete wse-documentation.

Thanks for your support. Any sample available?

Erwin Smurawski


2 Answers

Richard L Rosenheim

1/10/2003 3:17:00 PM

0

Which article are you referring to?

Richard Rosenheim

"Erwin Smurawski" <Erwin.Smurawski@t-online.de> wrote in message
news:O#zNK0CuCHA.2596@TK2MSFTNGP12...
> hi,
>
> I now to "Encrypting a SOAP Message" where the complete body will be
> encrypted/decrypted.
> But is anyone there, who understands how to specifying parts of a SOAP
> Message that are encrypted/decrypted?
>
> let's say, we have a WebMethod:
>
> [WebMethod]
> public string SaveUserInformation(UserInformation UserInfo) {
> Helpers wseHelpers = new Helpers(); //my custom class to check the
> SoapRequest and some other things
> wseHelpers.ThrowNoSoapRequest();
>
> Debug.WriteLine("Name: " + UserInfo.Name + " CreditCard: " +
> UserInfo.CreditCard);
> return UserInfo.CreditCard; //return plaintext to client to test the
> decryption}
> }
>
> public class UserInformation {
> public string Name;
> /*the CreditCard should be encrypted by the client
> and decrypted by the WebMethod. How to do this??*/
> public string CreditCard;
> }
>
> Did i have to derive the UserInformation class from SoapHeader and
> declare an Id - XmlAttribute on top of the CreditCard?
> What did I have to do on clientside?
> I don't understand the incomplete wse-documentation.
>
> Thanks for your support. Any sample available?
>
> Erwin Smurawski
>
>


(Erwin Smurawski)

1/10/2003 6:01:00 PM

0


"Richard L Rosenheim" <richard@rlr.com> schrieb im Newsbeitrag
news:#PmEAMLuCHA.2300@TK2MSFTNGP11...
> Which article are you referring to?

Web Services Enhancements for Microsoft .NET documentation:
"Specifying the Parts of a SOAP Message That Are Signed or Encrypted"
and
"Determing Which Parts of a SOAP Message Were Signed or Encrypted"

Erwin Smurawski

>
> Richard Rosenheim
>
> "Erwin Smurawski" <Erwin.Smurawski@t-online.de> wrote in message
> news:O#zNK0CuCHA.2596@TK2MSFTNGP12...
> > hi,
> >
> > I now to "Encrypting a SOAP Message" where the complete body will be
> > encrypted/decrypted.
> > But is anyone there, who understands how to specifying parts of a SOAP
> > Message that are encrypted/decrypted?
> >
> > let's say, we have a WebMethod:
> >
> > [WebMethod]
> > public string SaveUserInformation(UserInformation UserInfo) {
> > Helpers wseHelpers = new Helpers(); //my custom class to check the
> > SoapRequest and some other things
> > wseHelpers.ThrowNoSoapRequest();
> >
> > Debug.WriteLine("Name: " + UserInfo.Name + " CreditCard: " +
> > UserInfo.CreditCard);
> > return UserInfo.CreditCard; //return plaintext to client to test the
> > decryption}
> > }
> >
> > public class UserInformation {
> > public string Name;
> > /*the CreditCard should be encrypted by the client
> > and decrypted by the WebMethod. How to do this??*/
> > public string CreditCard;
> > }
> >
> > Did i have to derive the UserInformation class from SoapHeader and
> > declare an Id - XmlAttribute on top of the CreditCard?
> > What did I have to do on clientside?
> > I don't understand the incomplete wse-documentation.
> >
> > Thanks for your support. Any sample available?
> >
> > Erwin Smurawski
> >
> >
>
>