If you want to authenticate your web Service with SoapHeader, then you can define a custom class that inherited from SoapHeader, and authenticate the caller credentials before calling web methods. As for this, you can refer to this article to get help.
Dear Peter As i mentioned above , i am using web servis that is 3 party which was written java platfom so when i add as a web services i cand find the header mettoht to push my user name and passwor to auth the services.
i have to auth the services because services waits aboce format to auth
Rahmi Tugrul...
Member
44 Points
12 Posts
Urgent: wsdoallreceiver incoming message does not contain required security header
Dec 24, 2011 10:56 AM|LINK
hi all
After adding web services whis written java platform
it gives this error. web services expecting from me username and passwor eventhough i give these info
How can i add SoapHeader while calling web services below i tried to post via cridential
NetworkCredential netCredential = new NetworkCredential("xxxx", "xxxx");Uri uri = new Uri(ot.Url);
ICredentials credentials = netCredential.GetCredential(uri, "Basic");
ot.Credentials = credentials;
ot.PreAuthenticate = true;
Peter pi - M...
Star
12871 Points
1786 Posts
Re: Urgent: wsdoallreceiver incoming message does not contain required security header
Dec 26, 2011 02:21 AM|LINK
Hi,
If you want to authenticate your web Service with SoapHeader, then you can define a custom class that inherited from SoapHeader, and authenticate the caller credentials before calling web methods. As for this, you can refer to this article to get help.
http://www.codeproject.com/KB/webservices/SOAPHeaderAuthentication.aspx
Regards,
Peter
If you have any feedback about my replies, please contact msdnmg@microsoft.com
Microsoft One Code Framework
Rahmi Tugrul...
Member
44 Points
12 Posts
Re: Urgent: wsdoallreceiver incoming message does not contain required security header
Dec 26, 2011 06:27 AM|LINK
Dear Peter As i mentioned above , i am using web servis that is 3 party which was written java platfom so when i add as a web services i cand find the header mettoht to push my user name and passwor to auth the services.
i have to auth the services because services waits aboce format to auth
<SOAP-ENV:Header>
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
SOAP-ENV:mustUnderstand="1">
<wsse:UsernameToken>
<wsse:Username>username</wsse:Username>
<wsse:Password>password</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
Peter pi - M...
Star
12871 Points
1786 Posts
Re: Urgent: wsdoallreceiver incoming message does not contain required security header
Dec 27, 2011 06:02 AM|LINK
Hi,
You want to pass username and password to the third party java web service for authentication. As for this, you can check the following similar post.
http://forums.asp.net/t/1328084.aspx/1
Regards,
Peter
If you have any feedback about my replies, please contact msdnmg@microsoft.com
Microsoft One Code Framework
Rahmi Tugrul...
Member
44 Points
12 Posts
Re: Urgent: wsdoallreceiver incoming message does not contain required security header
Dec 27, 2011 06:45 AM|LINK
Hi Peter at first thanks for your deep interest over this subject,
i checked the url tha you mentioned i will find the solution :) or try to find solution
if you find any articles about this subject please let me know
thanks
Rahmi Tugrul...
Member
44 Points
12 Posts
Re: Urgent: wsdoallreceiver incoming message does not contain required security header
Feb 04, 2013 07:42 AM|LINK
Dears ,
i gave up and post it soap xml