Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
elwoos
Master Smack Fu Yak Hacker
2052 Posts |
Posted - 2008-06-11 : 10:38:46
|
I know this is a bit off target but I have had no luck anywhere else.I'm trying to use a .net client to call a java based web service. I have no control over the web service and https is not an option. What I am trying to achieve is this in the SOAP header. <soap:Header> <wsa:Action></wsa:Action> <wsa:MessageID>uuid:117b889e-6fa3-4b7b-b56d-c53942bd8cb8</wsa:MessageID> <wsa:ReplyTo> <wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address> </wsa:ReplyTo> <wsa:To>http://MyServer/MyWS/services/MyWebService</wsa:To> <wsse:Security soap:mustUnderstand="0"> <wsse:UsernameToken wsu:Id="Username-Token-7683000"> <wsse:Username>MyUID</wsse:Username> <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">Y2hh34x234</wsse:Password> <wsse:Nonce>FuEm3KF31ab31vysvl8Zdw==</wsse:Nonce> <wsu:Created>2008-05-14T09:01:46Z</wsu:Created> </wsse:UsernameToken> </wsse:Security> </soap:Header> <soap:Body>... I originally tried with VS.NET 2003. Using that I could get the username token in there but couldn't get rid of the timestamp - which caused an error.I now have added VS.NET 2008 to my machine and tried to code this using WCF. Now I can remove the timestamp but not find out how to add the username token. When I try to set the binding it wants https which is not an option)Does anyone have any suggestions/pointers/clues how to do this with either version of VS.NET please, or am I going to have to try to hand code this lot?I have found this whole experience very frustrating. I understand why the changes were made to WCF but in my case it appears to simply be obstructive!Many many thanks in advancesteve-----------ASCII and ye shall receive. |
|
|
|
|