c# - Test wcf service with SOAPUI not working -


i have wcf service working fine while consuming vs application. giving error(an error occurred when verifying security message.) while consuming soap ui.

if run wcf in vs below request (working fine)

<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/itest/getuserdata</a:action>     <a:messageid>urn:uuid:7b4aa2ac-4399-4e24-9ea7-b8f3a9c446b6</a:messageid>     <a:replyto>       <a:address>http://www.w3.org/2005/08/addressing/anonymous</a:address>     </a:replyto>   </s:header>   <s:body>     <getuserdata xmlns="http://tempuri.org/">       <employeeid>xxxx</employeeid>     </getuserdata>   </s:body> </s:envelope> 

but if try consume soapui below request (not working)

post http://localhost/abc/test.svc http/1.1 accept-encoding: gzip,deflate content-type: application/soap+xml;charset=utf-8;action="http://tempuri.org/itest/getuserdata" content-length: 435 host: localhost proxy-connection: keep-alive user-agent: apache-httpclient/4.1.1 (java 1.5)  <soap:envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:tem="http://tempuri.org/">    <soap:header xmlns:wsa="http://www.w3.org/2005/08/addressing"><wsa:action>http://tempuri.org/itest/getuserdata</wsa:action></soap:header>    <soap:body>       <tem:getuserdata>          <!--optional:-->          <tem:employeeid>xxxx</tem:employeeid>       </tem:getuserdata>    </soap:body> </soap:envelope> 


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -