Link to home
Start Free TrialLog in
Avatar of Bilawal sharif
Bilawal sharif

asked on

Error method not allowed usin g POST in WCF

Error method not allowed usin g POST in WCF


i want to send data from android to sqlserver using wcf post method because i want to send a stream of basex64 as a image in a parameter which GET method not accept in a browser but the post method can do this work.Kindly tell me the use of post method in WCF.Is is requires any additional information in post method?My all GET methods working fine.
First time post the problem hope so any one can rep me,tnx bilawal sharif
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

Error method not allowed usin g POST in WCF
you cannot change the accepted method (like GET, POST) of WCF as your wish, you need to follow the configuration of WCF whether an accepted method (like GET, POST) is allowed.

apparently, it seems that POST method is not allowed here. so try get the relevant documentation and check the WCF configuration there.

also use request tool such as Postman for your request verification.

https://www.getpostman.com/
do you need further assistance here?
Avatar of Bilawal sharif
Bilawal sharif

ASKER

I have use the postman as well but still having error using post method.Will you please suggest me the right way to use the post method how i configure the WCF for POST method?
well since we don't have the codes how you coding the WCF, it would be difficult for us to troubleshoot.

but you mentioned you still got error when using postman. what error message you getting there?
I want to sent the parameters in body of the POST method while in GET method we usually sent the parameters in browser as a query string.But in my case i want to sent the parameters in body of POST method when i am going to do this i face the error(Server encounter error method not allowed).GET method running fine but in the same way when i am trying to do this for POST method this is not working.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.