So, if you get an unknown data type when calling a .net webservice from a PHP client, just make sure there is a namespace. I hope this helps.
Thursday, February 25, 2010
WCF Service Data Types Are Unknown to PHP
I wrote this WCF web service the other day, tested the BasicHttpBinding against SOAPUI and all seemed well. Until some of our PHP developers told me that all web methods signatures where showing as UNKNOWN data types (e.g. UNKNOWN SomeWebMethod(UNKNOWN parameter). I noticed that theres was no NameSpace prefix for some of the Serialized objects in SOAP, double checked the NameSpace in the service, and noticed it was blank. I added the a random namespace to my .cs file and everthing was sorted out.
So, if you get an unknown data type when calling a .net webservice from a PHP client, just make sure there is a namespace. I hope this helps.
So, if you get an unknown data type when calling a .net webservice from a PHP client, just make sure there is a namespace. I hope this helps.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment