how to call wcf in postman?
how to call wcf in postman?
in app.config change <service name="GettingStartedLib.WeatherService">
project name+service name
line# <endpoint address="" binding="basicHttpBinding" contract="GettingStartedLib.IWeather">
change bnding and contract name
line# 23 <add baseAddress="http://localhost:8733/Design_Time_Addresses/GettingStarted/WeatherService" />
change port and service name accordingly
URL of service http://localhost:8733/Design_Time_Addresses/GettingStarted/WeatherService/
Method: Post
Header: Content-type: text/xml
SOAPAction: http://Microsoft.ServiceModel.Samples/IWeather/Hello
Interface name and function name
body: Raw and contetns type xml
eg.
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<Hello xmlns="http://Microsoft.ServiceModel.Samples">
<name>ali</name>
</Hello>
</s:Body>
</s:Envelope>
Share This with your friend by choosing any social account