Hi all,
I am using VS 2008 WCF to create a sample service. The problem is the request and response has lots of information like encoded string, codes, uuid and so on. when i tried the same source code on VS 2010 WCF it is like clean and does not have any special data like this. what could be wrong ? what should i change in my project settings to get a clear output without encryption stuff
Below is the actual xml request/response got when used on a WCF client of VC 2008
Request on VS 2008:
<s:Envelope xmlns:a="http://www.w3.org/2005/08/addressing" xmlns:s="http://www.w3.org/2003/05/soap-envelope">
<s:Header>
<a:Action s:mustUnderstand="1">http://tempuri.org/IFCAuthorizationService/ValidateUserForLogin</a:Action>
<a:MessageID>urn:uuid:8ec9bf47-9d78-4963-ad75-66868ea37386</a:MessageID>
<a:ReplyTo>
<a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address>
</a:ReplyTo>
</s:Header>
<s:Body>
<ValidateUserForLogin xmlns="http://tempuri.org/">
<userName>god</userName>
<password>god2</password>
<udId>1234</udId>
</ValidateUserForLogin>
</s:Body>
</s:Envelope>
Response of 2008:
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<s:Header>
<a:Action s:mustUnderstand="1" u:Id="_2">http://tempuri.org/IFCAuthorizationService/ValidateUserForLoginResponse</a:Action>
<a:RelatesTo u:Id="_3">urn:uuid:9e6a188f-008b-40c4-8779-5ac4cc93cd06</a:RelatesTo>
<o:Security s:mustUnderstand="1" xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<u:Timestamp u:Id="uuid-c17c9a6a-92d3-430e-8034-ced269528280-11">
<u:Created>2010-08-04T09:52:49.258Z</u:Created>
<u:Expires>2010-08-04T09:57:49.258Z</u:Expires>
</u:Timestamp>
<c:DerivedKeyToken u:Id="uuid-c17c9a6a-92d3-430e-8034-ced269528280-7" xmlns:c="http://schemas.xmlsoap.org/ws/2005/02/sc">
<o:SecurityTokenReference>
<o:Reference URI="urn:uuid:1aa74b41-0c7d-485e-97ab-9a721bce5a48" ValueType="http://schemas.xmlsoap.org/ws/2005/02/sc/sct" />
</o:SecurityTokenReference>
<c:Offset>0</c:Offset>
<c:Length>24</c:Length>
<c:Nonce>cM+QLJpZmdwj5IcoStLuKg==</c:Nonce>
</c:DerivedKeyToken>
<c:DerivedKeyToken u:Id="uuid-c17c9a6a-92d3-430e-8034-ced269528280-8" xmlns:c="http://schemas.xmlsoap.org/ws/2005/02/sc">
<o:SecurityTokenReference>
<o:Reference URI="urn:uuid:1aa74b41-0c7d-485e-97ab-9a721bce5a48" ValueType="http://schemas.xmlsoap.org/ws/2005/02/sc/sct" />
</o:SecurityTokenReference>
<c:Nonce>/wGlyMgFXHYXk0xWEregXg==</c:Nonce>
</c:DerivedKeyToken>
<e:ReferenceList xmlns:e="http://www.w3.org/2001/04/xmlenc#">
<e:DataReference URI="#_1" />
<e:DataReference URI="#_4" />
</e:ReferenceList>
<e:EncryptedData Id="_4" Type="http://www.w3.org/2001/04/xmlenc#Element" xmlns:e="http://www.w3.org/2001/04/xmlenc#">
<e:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes256-cbc" />
<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
<o:SecurityTokenReference>
<o:Reference ValueType="http://schemas.xmlsoap.org/ws/2005/02/sc/dk" URI="#uuid-c17c9a6a-92d3-430e-8034-ced269528280-8" />
</o:SecurityTokenReference>
</KeyInfo>
<e:CipherData>
<e:CipherValue>y4lRwVsMW1V4/Q8M/c09dn/DBsIBV84OxyBa8nloVuogpC93L+mzTdyB8o0ZBHi/u7KFnuNJojtwgKNgDBGdI6cwDI+57p2Hd5Hw4zxCUWBuiHB4gFdmjpG2PvXSFnkQHrxWwDq6k/PcjaipfO22BoeNsAndPwJCewkjQwb15UkPNyT60edcPIhl20VbkAFKIqZRm+ZYFCYZOVErr2SNb/bLldB12YmVxDsRSW+6BY964/FYeS+1u6WOOmlqLUYOJOe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75uoZ6lTndU3vr1p8J7K5rhDRgiZDBMrmCI5tJVHUTlYT81Knf1VgnvA7UYw60cCntRvOwekClokdUdF8BG4TXI/h0J5ZWBuRFZoK5DVwIz0zyEqIC1WAwhs2mdRaynn5F5mZvLyvlcX+llJYkh+Z/CXV9Pagy09kzrK5R0375og5xohpk5i63vmb8m3xu7qjl5d+a2RNZGToTHWq+KVDv/vYTwTIUYfeFpJRFKyuiY684/G+Jh00CURvy8z1O7YincYoFHWGhtcIoI/UNw+Loxq9lpqBIrIbw42RN2S6g9DQu4NvKqPAjGSRJ0TBidLX6hn8mAkvOesp31e8GKxgGHhjctDcNJBX/BtaALQCtERF8IQPrdVA+OPZcKioqYF9GL1DmBdebehHODBkQ4NZivmFvUMpfR/DocbWPmKExJ9A0xKDV/5WcIPxS0gQsMZJqtqlWRalNbwHIRz/7u/LXhrLgAKi5NDfZ0xGr/Y7Xelp7ObcIL4D4agbe12tibucam+Te4WzP2DiROeF5bCa60oYY0LtassEuRBi65kmFOW0Ubl4QYakBcYKb1JKdrWbDoLwFdoYehClaUw1ffbfaGmBQhcGctNlMXKSbPInzrCgIYw/HjUSVJCzVAJF9mfpRnCeK9VmHKmPWUQdHZoJUsmURQLAB7ftXVZY1SMrgW+A+rEhh4K4QCmS1Isp8E3MagWNW9E9UEyc5//3/PneSMScIDbGJAZThiC+LdQIUewXBNnclykPgzVoBVduQP9CVpF8kfhxiV7/7tDlARBQT3/FDpXOyQewOf7K6LVotTkk5WxlT1LxRPcOTyhNU4RXC6z1K4cv7sub</e:CipherValue>
</e:CipherData>
</e:EncryptedData>
</o:Security>
</s:Header>
<s:Body u:Id="_0">
<ValidateUserForLoginResponse xmlns="http://tempuri.org/">
<ValidateUserForLoginResult>success</ValidateUserForLoginResult>
</ValidateUserForLoginResponse>
</s:Body>
</s:Envelope>