00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef OpenSOAP_Block_H
00012 #define OpenSOAP_Block_H
00013
00014 #include <OpenSOAP/XMLElm.h>
00015 #include <OpenSOAP/XMLNamespace.h>
00016
00023 #ifdef __cplusplus
00024 extern "C" {
00025 #endif
00026
00031 typedef struct tagOpenSOAPBlock OpenSOAPBlock;
00032
00037 typedef OpenSOAPBlock *OpenSOAPBlockPtr;
00038
00051 int
00052 OPENSOAP_API
00053 OpenSOAPBlockGetValueMB(OpenSOAPBlockPtr soap_block,
00054 const char * type_name,
00055 void * value);
00056
00069 int
00070 OPENSOAP_API
00071 OpenSOAPBlockGetValueWC(OpenSOAPBlockPtr soap_block,
00072 const wchar_t * type_name,
00073 void * value);
00074
00087 int
00088 OPENSOAP_API
00089 OpenSOAPBlockSetValueMB(OpenSOAPBlockPtr soap_block,
00090 const char * type_name,
00091 void * value);
00092
00105 int
00106 OPENSOAP_API
00107 OpenSOAPBlockSetValueWC(OpenSOAPBlockPtr soap_block,
00108 const wchar_t * type_name,
00109 void * value);
00110
00123 int
00124 OPENSOAP_API
00125 OpenSOAPBlockSetNamespaceMB(OpenSOAPBlockPtr soap_block,
00126 const char * ns_uri,
00127 const char * ns_prefix);
00128
00141 int
00142 OPENSOAP_API
00143 OpenSOAPBlockSetNamespaceWC(OpenSOAPBlockPtr soap_block,
00144 const wchar_t * ns_uri,
00145 const wchar_t * ns_prefix);
00146
00157 int
00158 OPENSOAP_API
00159 OpenSOAPBlockGetNamespace(OpenSOAPBlockPtr soap_block,
00160 OpenSOAPXMLNamespacePtr * ns);
00161
00174 int
00175 OPENSOAP_API
00176 OpenSOAPBlockIsSameNamespaceMB(OpenSOAPBlockPtr soap_block,
00177 const char * ns_uri,
00178 int * is_same_uri);
00179
00192 int
00193 OPENSOAP_API
00194 OpenSOAPBlockIsSameNamespaceWC(OpenSOAPBlockPtr soap_block,
00195 const wchar_t * ns_uri,
00196 int * is_same_uri);
00197
00214 int
00215 OPENSOAP_API
00216 OpenSOAPBlockAddAttributeMB(OpenSOAPBlockPtr soap_block,
00217 const char * attr_name,
00218 const char * attr_type,
00219 void * attr_value,
00220 OpenSOAPXMLAttrPtr * attr);
00221
00238 int
00239 OPENSOAP_API
00240 OpenSOAPBlockAddAttributeWC(OpenSOAPBlockPtr soap_block,
00241 const wchar_t * attr_name,
00242 const wchar_t * attr_type,
00243 void * attr_value,
00244 OpenSOAPXMLAttrPtr * attr);
00245
00258 int
00259 OPENSOAP_API
00260 OpenSOAPBlockGetAttributeMB(OpenSOAPBlockPtr soap_block,
00261 const char * attr_name,
00262 OpenSOAPXMLAttrPtr * attr);
00263
00276 int
00277 OPENSOAP_API
00278 OpenSOAPBlockGetAttributeWC(OpenSOAPBlockPtr soap_block,
00279 const wchar_t * attr_name,
00280 OpenSOAPXMLAttrPtr * attr);
00281
00296 int
00297 OPENSOAP_API
00298 OpenSOAPBlockGetChildValueMB(OpenSOAPBlockPtr soap_block,
00299 const char * p_name,
00300 const char * type_name,
00301 void * value);
00302
00317 int
00318 OPENSOAP_API
00319 OpenSOAPBlockGetChildValueWC(OpenSOAPBlockPtr soap_block,
00320 const wchar_t * p_name,
00321 const wchar_t * type_name,
00322 void * value);
00323
00338 int
00339 OPENSOAP_API
00340 OpenSOAPBlockSetChildValueMB(OpenSOAPBlockPtr soap_block,
00341 const char * p_name,
00342 const char * type_name,
00343 void * value);
00344
00359 int
00360 OPENSOAP_API
00361 OpenSOAPBlockSetChildValueWC(OpenSOAPBlockPtr soap_block,
00362 const wchar_t * p_name,
00363 const wchar_t * type_name,
00364 void * value);
00365
00377 int
00378 OPENSOAP_API
00379 OpenSOAPBlockGetNextChild(OpenSOAPBlockPtr soap_block,
00380 OpenSOAPXMLElmPtr * xml_elm);
00381
00394 int
00395 OPENSOAP_API
00396 OpenSOAPBlockAddChildMB(OpenSOAPBlockPtr soap_block,
00397 const char * elm_name,
00398 OpenSOAPXMLElmPtr * xml_elm);
00399
00412 int
00413 OPENSOAP_API
00414 OpenSOAPBlockAddChildWC(OpenSOAPBlockPtr soap_block,
00415 const wchar_t * elm_name,
00416 OpenSOAPXMLElmPtr * xml_elm);
00417
00430 int
00431 OPENSOAP_API
00432 OpenSOAPBlockGetChildMB(OpenSOAPBlockPtr soap_block,
00433 const char * elm_name,
00434 OpenSOAPXMLElmPtr * xml_elm);
00435
00448 int
00449 OPENSOAP_API
00450 OpenSOAPBlockGetChildWC(OpenSOAPBlockPtr soap_block,
00451 const wchar_t * elm_name,
00452 OpenSOAPXMLElmPtr * xml_elm);
00453
00464 int
00465 OPENSOAP_API
00466 OpenSOAPBlockGetMustunderstandAttr(OpenSOAPBlockPtr soap_block,
00467 int * must_std);
00468
00477 int
00478 OPENSOAP_API
00479 OpenSOAPBlockSetMustunderstandAttr(OpenSOAPBlockPtr soap_block);
00480
00489 int
00490 OPENSOAP_API
00491 OpenSOAPBlockClearMustunderstandAttr(OpenSOAPBlockPtr soap_block);
00492
00503 int
00504 OPENSOAP_API
00505 OpenSOAPBlockGetActorAttr(OpenSOAPBlockPtr soap_block,
00506 OpenSOAPStringPtr * actor_url);
00507
00518 int
00519 OPENSOAP_API
00520 OpenSOAPBlockSetActorAttrMB(OpenSOAPBlockPtr soap_block,
00521 const char * actor_url);
00522
00533 int
00534 OPENSOAP_API
00535 OpenSOAPBlockSetActorAttrWC(OpenSOAPBlockPtr soap_block,
00536 const wchar_t * actor_url);
00537
00546 int
00547 OPENSOAP_API
00548 OpenSOAPBlockClearActorAttr(OpenSOAPBlockPtr soap_block);
00549
00558 int
00559 OPENSOAP_API
00560 OpenSOAPBlockSetActorAttrNext(OpenSOAPBlockPtr soap_block);
00561
00572 int
00573 OPENSOAP_API
00574 OpenSOAPBlockIsActorAttrNext(OpenSOAPBlockPtr soap_block,
00575 int * is_actor_next);
00576
00587 int
00588 OPENSOAP_API
00589 OpenSOAPBlockGetName(OpenSOAPBlockPtr block,
00590 OpenSOAPStringPtr * name);
00591
00604 int
00605 OPENSOAP_API
00606 OpenSOAPBlockGetCharEncodingString(OpenSOAPBlockPtr soap_block,
00607 const char * ch_enc,
00608 OpenSOAPByteArrayPtr b_ary);
00609 #ifdef __cplusplus
00610 }
00611 #endif
00612
00613 #endif