i have created WCF Service, i want to consume WCF Service in PHP with json format. i don't have any idea how to call WCF Service in PHP.
Asked
Active
Viewed 814 times
1
-
This really depends on how you built your WCF Service. You could write it to be [RESTful](http://msdn.microsoft.com/en-us/library/ee391967.aspx) - then it's as simple as calling a URL – Prescott Dec 20 '11 at 07:29
1 Answers
0
As prescott said - if it's a restful service then you are calling a url.
If the service is using soap and wsdl (not JSON as stated) Using WCF Services with PHP has a simple example.
If your service is actually returning SOAP and you /want/ it to return JSON, either re-jig the service to use Content Negotiation via the WcfWebApi or setup multiple endpoints
Hopefully one of these options will help you.

Community
- 1
- 1

Neil Thompson
- 6,356
- 2
- 30
- 53