Asked by:
Urgent: wsdoallreceiver incoming message does not contain required security header

Question
-
User-241834828 posted
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;Saturday, December 24, 2011 6:56 AM
All replies
-
User-1269009881 posted
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,
PeterSunday, December 25, 2011 10:21 PM -
User-241834828 posted
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>
Monday, December 26, 2011 2:27 AM -
User-1269009881 posted
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,
PeterTuesday, December 27, 2011 2:02 AM -
User-241834828 posted
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
Tuesday, December 27, 2011 2:45 AM -
User-241834828 posted
Dears ,
i gave up and post it soap xml
Monday, February 4, 2013 3:42 AM