PHP ENUM SOAP WCF

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jpbarretomp
Forum Newbie
Posts: 1
Joined: Mon May 14, 2012 2:19 pm

PHP ENUM SOAP WCF

Post by jpbarretomp »

Hello guys,


I'm trying send a enum type with WCF(WebService) and that's the problem:


" Uncaught SoapFault exception: [HTTP] Error Fetching http headers... "


I think that the main problem is that PHP not recognize enum type, so when the WCF try send a object that contain a enum, i'm receiving that error.


some idea of how solve that?
x_mutatis_mutandis_x
Forum Contributor
Posts: 160
Joined: Tue Apr 17, 2012 12:57 pm

Re: PHP ENUM SOAP WCF

Post by x_mutatis_mutandis_x »

Enums define a fixed set of valid values. Try using the data type of the values (i.e., if the yhe method requires an enum of strings, send a string value matching the enum's value)
Post Reply