1

So, I want to get data from a wcf service, http://www.domain/Service.svc. To access, you need a header Authorization: username_value:password_value, in plain text. However, when I try to get data from Service.svc, I receive 400 Bad Request. MY guess is the security part of must be set accordingly. My settings are now:

<system.serviceModel> <bindings> <basicHttpBinding> <binding name="BasicHttpBinding_IService" closeTimeout="00:01:00"> <security mode="None"> <transport clientCredentialType="None" proxyCredentialType="None" /> <message clientCredentialType="UserName" /> </security> 

Is it OK like this ? Thanks.

2
  • 1
    Welcome to stackoverflow! You need to post the client side and server side WCF configuration. Someone will most likely be able to help you then. Commented Oct 3, 2013 at 11:10
  • Just refer this article stackoverflow.com/questions/2456301/… may be this will resolved your query. Commented Oct 3, 2013 at 12:47

1 Answer 1

0

Use:

<security mode="Transport"> <transport clientCredentialType="UserName" proxyCredentialType="None" /> </security> 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.