Last time forgot to convert the header files.
smart_str *build_soap_action(zval *this_ptr, char *soapaction);
-// Master functions all encode/decode should be called thur these functions
+/* Master functions all encode/decode should be called thur these functions */
xmlNodePtr master_to_xml(encodePtr encode, zval *data, int style);
zval *master_to_zval(encodePtr encode, xmlNodePtr data);
#ifdef HAVE_PHP_DOMXML
-//user defined mapping
+/* user defined mapping */
zval *to_xml_before_user(encodeType type, zval *data);
xmlNodePtr to_xml_user(encodeType type, zval *data, int style);
xmlNodePtr to_xml_after_user(encodeType type, xmlNodePtr node, int style);
zval *to_zval_after_user(encodeType type, zval *data);
#endif
-//zval type decode
+/* zval type decode */
zval *to_zval_double(encodeType type, xmlNodePtr data);
zval *to_zval_long(encodeType type, xmlNodePtr data);
zval *to_zval_bool(encodeType type, xmlNodePtr data);
xmlNodePtr to_xml_long(encodeType type, zval *data, int style);
xmlNodePtr to_xml_bool(encodeType type, zval *data, int style);
-//String encode
+/* String encode */
xmlNodePtr to_xml_string(encodeType type, zval *data, int style);
xmlNodePtr to_xml_stringl(encodeType type, zval *data, int style);
-//Null encode
+/* Null encode */
xmlNodePtr to_xml_null(encodeType type, zval *data, int style);
-//Struct encode
+/* Struct encode */
xmlNodePtr to_xml_object(encodeType type, zval *data, int style);
-//Array encode
+/* Array encode */
xmlNodePtr guess_array_map(encodeType type, zval *data, int style);
xmlNodePtr to_xml_array(encodeType type, zval *data, int style);
xmlNodePtr to_xml_map(encodeType type, zval *data, int style);
-//Try and guess for non-wsdl clients and servers
+/* Try and guess for non-wsdl clients and servers */
xmlNodePtr guess_xml_convert(encodeType type, zval *data, int style);
-//Datetime encode/decode
+/* Datetime encode/decode */
xmlNodePtr to_xml_datetime_ex(encodeType type, zval *data, char *format, int style);
xmlNodePtr to_xml_datetime(encodeType type, zval *data, int style);
xmlNodePtr to_xml_time(encodeType type, zval *data, int style);
struct _sdl
{
- xmlDocPtr doc; //pointer to the parsed xml file
- HashTable *types; //array of sdlTypesPtr
- HashTable *encoders; //array of encodePtr
- HashTable *bindings; //array of sdlBindings (key'd by name)
+ xmlDocPtr doc; /* pointer to the parsed xml file */
+ HashTable *types; /* array of sdlTypesPtr */
+ HashTable *encoders; /* array of encodePtr */
+ HashTable *bindings; /* array of sdlBindings (key'd by name) */
char *target_ns;
char *source;
};
void *bindingAttributes;
};
-//Soap Binding Specfic stuff
+/* Soap Binding Specfic stuff */
struct _sdlSoapBinding
{
char *transport;
{
char *ns;
int use;
- char *parts; //not implemented yet
- char *encodingStyle; //not implemented yet
+ char *parts; /* not implemented yet */
+ char *encodingStyle; /* not implemented yet */
};
struct _sdlSoapBindingFunction
sdlSoapBindingFunctionBody falut;
};
-//HTTP Binding Specfic stuff
+/* HTTP Binding Specfic stuff */
/*********** not implemented yet ************
struct _sdlHttpBinding
{
struct _sdlRestrictions
{
- HashTable *enumeration; //array of sdlRestrictionCharPtr
+ HashTable *enumeration; /* array of sdlRestrictionCharPtr */
sdlRestrictionIntPtr minExclusive;
sdlRestrictionIntPtr minInclusive;
sdlRestrictionIntPtr maxExclusive;
int nullable;
int min_occurs;
int max_occurs;
- HashTable *elements; //array of sdlTypePtr
- HashTable *attributes; //array of sdlAttributePtr
+ HashTable *elements; /* array of sdlTypePtr */
+ HashTable *attributes; /* array of sdlAttributePtr */
sdlRestrictionsPtr restrictions;
encodePtr encode;
};
char *functionName;
char *requestName;
char *responseName;
- HashTable *requestParameters; //array of sdlParamPtr
- HashTable *responseParameters; //array of sdlParamPtr (this should only be one)
+ HashTable *requestParameters; /* array of sdlParamPtr */
+ HashTable *responseParameters; /* array of sdlParamPtr (this should only be one) */
int bindingType;
void *bindingAttributes;
};
char *ref;
char *type;
char *use;
- HashTable *extraAttributes; //array of xmlNodePtr
+ HashTable *extraAttributes; /* array of xmlNodePtr */
};
sdlPtr get_sdl(char *uri);
# include "ext/domxml/php_domxml.h"
#endif
-// PHP_STREAMS were introduced php-4.2.0.. i think
-// Make this part of configure
+/*
+ PHP_STREAMS were introduced php-4.2.0.. i think
+ Make this part of configure
+*/
#ifdef STREAMS_DC
# define PHP_STREAMS
#endif
PHP_MSHUTDOWN_FUNCTION(soap);
PHP_MINFO_FUNCTION(soap);
-//Registry Functions
-//TODO: this!
+/*
+ Registry Functions
+ TODO: this!
+*/
PHP_FUNCTION(load_sdl);
PHP_FUNCTION(unload_sdl);
PHP_FUNCTION(unload_all_sdls);
PHP_FUNCTION(soap_encode_to_zval);
-//Server Functions
+/* Server Functions */
PHP_FUNCTION(soapserver);
PHP_FUNCTION(setclass);
PHP_FUNCTION(addfunction);
PHP_FUNCTION(map);
#endif
-//Client Functions
+/* Client Functions */
PHP_FUNCTION(soapobject);
PHP_FUNCTION(__use);
PHP_FUNCTION(__style);
PHP_FUNCTION(__headerclass);
PHP_FUNCTION(__headerfunction);
-//SoapVar Functions
+/* SoapVar Functions */
PHP_FUNCTION(soapvar);
-//SoapFault Functions
+/* SoapFault Functions */
PHP_FUNCTION(soapfault);
-//SoapParam Functions
+/* SoapParam Functions */
PHP_FUNCTION(soapparam);