.net client for Java (Axis2) web service with UserName Security WSE 3.0

Hello,

I am not able to call a java web service using c# VS 2005. Pleaes Help.. I am using WSE 3.0 Here is what it generates...


<?xml version="1.0" encoding="utf-8"?>
   <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
      <soap:Header>
         <wsa:Action>urn:MYURL.com/TheService/getMethod</wsa:Action>
         <wsa:MessageID>urn:uuid:1c5398d0-ca77-443f-a71e-08b18986e882</wsa:MessageID>
         <wsa:ReplyTo>
            <wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address>
         </wsa:ReplyTo>
         <wsa:To>http://localhost:8421/the/services/TheService</wsa:To>
         <wsse:Security soap:mustUnderstand="1">
            <wsu:Timestamp wsu:Id="Timestamp-2ad48bb9-4d2c-49d9-8e75-315b6ad2d868">
               <wsu:Created>2008-11-05T02:13:12Z</wsu:Created>
               <wsu:Expires>2008-11-05T02:18:12Z</wsu:Expires>
            </wsu:Timestamp>
            <wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="SecurityToken-299a03c2-9432-4698-8442-9fc3c8c5c04d">
               <wsse:Username>theuser</wsse:Username>
               <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">jtT6X4XEpJjeN5LxhHP/yb9stz8=</wsse:Password>
               <wsse:Nonce>fkanrkls6oHVANrTw==</wsse:Nonce>
               <wsu:Created>2008-11-05T02:13:12Z</wsu:Created>
            </wsse:UsernameToken>
         </wsse:Security>
      </soap:Header>
      <soap:Body>
         <getMethod xmlns="http://MYURL.com/TheService/">

         </getMethod>
      </soap:Body>
   </soap:Envelope>




Now, if I remove the extra headers and time stamp from this, it works great (see below)


<?xml version="1.0" encoding="utf-8"?>
   <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
      <soap:Header>
          <wsse:Security soap:mustUnderstand="1">
            <wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="SecurityToken-299a03c2-9432-4698-8442-9fc3c8c5c04d">
               <wsse:Username>theuser</wsse:Username>
               <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">jtT6X4XEpJjeN5LxhHP/yb9stz8=</wsse:Password>
               <wsse:Nonce>fkanrkls6oHVANrTw==</wsse:Nonce>
               <wsu:Created>2008-11-05T02:13:12Z</wsu:Created>
            </wsse:UsernameToken>
         </wsse:Security>
      </soap:Header>
      <soap:Body>
         <getMethod xmlns="http://MYURL.com/TheService/">

         </getMethod>
      </soap:Body>
   </soap:Envelope>



please help!
nj07869Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ShazbotOKCommented:
Any code examples to show on this?  Normally it would pertain to how your setting your SoapHeader data to send.
0
nj07869Author Commented:
i am using WSE 3.0.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
nj07869Author Commented:
d
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.