/* * Copyright 2005 - 2008 WSO2, Inc. http://wso2.com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef WSF_CONSTANTS_H #define WSF_CONSTANTS_H /*#ifdef PHP_WIN32 #define WSF_PHP_API __declspec(dllexport) #else #define WSF_PHP_API #endif #ifdef PHP_WIN32 #define WSF_CALL __stdcall #else #define WSF_CALL #endif*/ /** options for services array */ /*#define WS_PHP_LOG_PREFIX "[WSF/PHP] "*/ #define WS_ACTIONS "actions" #define WS_OPERATIONS "operations" #define WS_OP_MEP "opMEP" #define WS_OP_PARAMS "opParams" #define WS_WSDL "wsdl" #define WS_CLASSMAP "classmap" #define WS_CLASSES "classes" #define WS_CONS_ARGS "args" #define WS_SERVICE_NAME "serviceName" #define WS_PORT_NAME "portName" /** Options array options */ #define WS_IN_ONLY "IN_ONLY" #define WS_IN_OUT "IN_OUT" #define WS_TO "to" /** endpoint uri */ #define WS_USE_WSA "useWSA" #define WS_ACTION "action" /** addressing options */ #define WS_FROM "from" #define WS_REPLY_TO "replyTo" #define WS_FAULT_TO "faultTo" #define WS_SOAP_ACTION "SOAPAction" #define WS_USES_XOP "usesXOP" /** MTOM XOP */ #define WS_DEFAULT_ATTACHEMENT_CONTENT_TYPE "defaultAttachmentContentType" #define WS_ATTACHMENTS "attachments" #define WS_CID2CONTENT_TYPE "cid2contentType" #define WS_RESPONSE_XOP "responseXOP" #define WS_REQUEST_XOP "requestXOP" #define WS_USE_MTOM "useMTOM" #define WS_TIMEOUT "timeout" /** Reliable Messaging */ #define WS_WILL_CONTINUE_SEQUENCE "willContinueSequence" #define WS_LAST_MESSAGE "lastMessage" #define WS_RELIABLE "reliable" #define WS_SEQUENCE_EXPIRY_TIME "sequenceExpiryTime" #define WS_SEQUENCE_KEY "sequenceKey" /** protocol */ #define WS_USE_SOAP "useSOAP" #define WS_HTTP_METHOD "HTTPMethod" /** SSL certificate */ #define WS_SERVER_CERT "CACert" #define WS_CLIENT_CERT "clientCert" #define WS_PASSPHRASE "passphrase" /** wsdl mode */ #define WS_BINDING_STYLE "bindingStyle" #define WS_WSDL "wsdl" #define WS_CACHE_WSDL "cache_wsdl" /** soap fault */ #define WS_FAULT_REASON "Reason" #define WS_FAULT_ROLE "Role" #define WS_FAULT_TEXT "text" #define WS_FAULT_CODE "Code" #define WS_FAULT_CODE_NS "codens" #define WS_FAULT_SUBCODE "Subcode" #define WS_FAULT_DETAIL "Detail" /** header options */ #define WS_INPUT_HEADERS "inputHeaders" #define WS_OUTPUT_HEADERS "outputHeaders" #define WS_HEADER_PREFIX "prefix" #define WS_HEADER_NS "ns" #define WS_HEADER_LOCALNAME "name" #define WS_HEADER_DATA "data" #define WS_HEADER_STR "str" #define WS_HEADER_ROLE "role" #define WS_HEADER_ACTOR "actor" #define WS_HEADER_MUST_UNDERSTAND "mustUnderstand" #define WS_HEADER_PREFIX "prefix" /** security policy */ #define WS_POLICY_NAME "policy" #define WS_SECURITY_TOKEN "securityToken" #define WS_PROXY_HOST "proxyHost" #define WS_PROXY_PORT "proxyPort" /** end options */ #define WS_MSG_PAYLOAD_STR "str" /** soap header attributes */ #define WS_SOAP_ROLE_NONE 1 #define WS_SOAP_ROLE_NEXT 2 #define WS_SOAP_ROLE_ULTIMATE_RECEIVER 3 #define WS_SOAP_ROLE_NONE_URI "http://www.w3.org/2003/05/soap-envelope/role/none" #define WS_SOAP_ROLE_NEXT_URI "http://www.w3.org/2003/05/soap-envelope/role/next" #define WS_SOAP_ROLE_ULTIMATE_RECEIVER_URI "http://www.w3.org/2003/05/soap-envelope/role/next" #define WS_SOAP_1_1_NAMESPACE_URI "http://schemas.xmlsoap.org/soap/envelope/" #define WS_SOAP_1_2_NAMESPACE_URI "http://www.w3.org/2003/05/soap-envelope" /** sandesha2 */ #define WS_SANDESHA2_CLIENT_ACKS_TO "Sandesha2AcksTo" #define WS_SANDESHA2_CLIENT_LAST_MESSAGE "Sandesha2LastMessage" #define WS_SANDESHA2_CLIENT_OFFERED_SEQ_ID "Sandesha2OfferedSequenceId" #define WS_SANDESHA2_CLIENT_DEBUG_MODE "Sandesha2DebugMode" #define WS_SANDESHA2_CLIENT_SEQ_KEY "Sandesha2SequenceKey" #define WS_SANDESHA2_CLIENT_MESSAGE_NUMBER "Sandesha2MessageNumber" #define WS_SANDESHA2_CLIENT_RM_SPEC_VERSION "Sandesha2RMSpecVersion" #define WS_SANDESHA2_CLIENT_DUMMY_MESSAGE "Sandesha2DummyMessage" #define WS_RM_VERSION_1_0_STR "Spec_2005_02" #define WS_RM_VERSION_1_0 1 #define WS_RM_VERSION_1_1_STR "Spec_2006_08" #define WS_RM_VERSION_1_1 2 #define WS_RM_RESPONSE_TIMEOUT "responseTimeout" #define WS_RM_DEFAULT_RESPONSE_TIMEOUT "12" /************ engaged module names *****************/ #define WS_MODULE_ADDRESSING "addressing" #define WS_MODULE_SECURITY "rampart" #define WS_MODULE_RM "sandesha2" /** http status codes */ #define WS_HTTP_OK 200 #define WS_HTTP_INTERNAL_SERVER_ERROR 500 #define WS_HTTP_ACCEPTED 202 #define WS_SVC_INFO "WSFPHPSvcInfo" /*************************************************/ #define WS_SOAP_DOCUMENT 1 #define WS_SOAP_RPC 2 #define WS_SOAP_ENCODED 1 #define WS_SOAP_LITERAL 2 /** functions */ #endif /* WS_COMMON_H */