Manual addressing is enabled on this factory
I'm pretty sure that my config files are now right, on both client and server can be seen here. I experienced this error and the problem was resolved by adding the WebHttpBehavior line 2 below :.
I added a service reference as usual and got this error. Turns out all I had to do was to amend the client config to use an endpoint config with a behaviour specifing webhttp. Brian - thanks for your guidance on this. Since this is relatively new turf for me, just the explanation of why those errors were popping up lead me in the right direction :. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 12 years, 1 month ago. Active 4 years, 2 months ago. Viewed 53k times. User posted Thanks for the reply.
Any Idea, how can I resolve this error. User posted Bad Request means you are not sending the requested data in correct format. So your service has started receiving the request and it is not in the right format.
If possible post here what data your service is looking for and what you are sending. User posted Yes, I can post. ExecuteReader ; while dr. By the way, do you really want to use WebHttpBinding i. Please modify the client side contract, set the WebGet attribute same with your service side. Thanks for your reply i am accessing the service by adding it's reference as service reference and instantiating the object of the service.
AddUser objuser ;. CreateChannel ;. At most one body parameter can be serialized without wrapper elements. The content you requested has been removed. Ask a question. Quick access. Search related threads.
Remove From My Forums. Answered by:. Archived Forums. Personalized Community is here! Quickly customize your community to find the content you seek. Personalize Community Now. Visit Microsoft Learn. Jamesss asked a question on 20 Dec AM.