(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