Я создал собственный сервис WCF с приложением C #. Я хочу отправлять сообщения в приложение C # с удаленного сервера php. Как я могу выполнить эту функцию?
<?xml versio="1.0"?>
<configuration><system.serviceModel>
<services>
<service name="MyMathServiceLib.MyMathService" behaviorConfiguration="myMathServiceBehave">
<host>
<baseAddresses>
<add baseAddress="http://localhost:9001/MyMathService"/>
<add baseAddress="net.tcp://localhost:9002/MyMathService"/>
</baseAddresses>
</host>
<endpoint address="http://localhost:9001/MyMathService" binding="basicHttpBinding" contract="MyMathServiceLib.IMyMathService"/>
<endpoint address="net.tcp://localhost:9002/MyMathService" binding="netTcpBinding" contract="MyMathServiceLib.IMyMathService"/>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
<endpoint address="mex" binding="mexTcpBinding" contract="IMetadataExchange"/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="myMathServiceBehave">
<serviceMetadata httpGetEnabled="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>
Это мой файл app.config (ссылка: http://www.codeproject.com/Articles/650869/Creating-a-Self-Hosted-WCF-Service)
Моя цель — отправить сообщение с php сервера в приложение c #
Следуйте простым шагам:
http://localhost:9001/MyMathService
в твоем случае). Заполните пример данных в запросе и нажмите «XML».Других решений пока нет …