System::Web::Services::Protocols::SoapMessage 类

SoapMessage class

表示 SOAP 消息。此类的对象只能使用 System::MakeObject() 函数分配。切勿在栈上或使用 operator new 创建此类型的实例,因为这会导致运行时错误和/或断言故障。始终将此类包装在 System::SmartPtr 指针中,并使用该指针将其作为参数传递给函数。

class SoapMessage : public System::Object

方法

方法描述
CollectHeaders(System::SharedPtr<Object>, System::ArrayPtr<System::SharedPtr<SoapHeaderMapping>>, SoapHeaderDirection)设置 SOAP 标头的内部集合。
FindHeader(System::ArrayPtr<System::SharedPtr<SoapHeaderMapping>>, const TypeInfo&)通过指定的标头类型查找标头映射。
virtual get_Action()返回 ‘SOAPAction’ 属性的值。
get_ContentEncoding()获取 ‘Content-Encoding’ 头的值。
get_ContentType()获取 ‘Content-Type’ 标头的值。
get_Exception()获取 XML Web 服务方法抛出的异常。
get_Headers()返回 SOAP 标头的集合。
get_InParameters()获取传递给 XML Web 服务方法的参数。
get_IsSoap12()返回一个值,指示是否使用 SOAP 版本 1.2。
get_OutParameters()获取传递给 XML Web 服务方法的输出参数。
virtual get_SoapVersion()返回使用的 SOAP 版本。
get_Stage()获取 SOAP 消息的处理阶段。
get_Stream()获取包含 SOAP 消息数据的流。
virtual get_Url()返回 XML Web 服务的 URL。
GetInParameterValue(int32_t)获取指定索引处的输入参数值。
GetOutParameterValue(int32_t)获取指定索引处的输出参数值。
GetReturnValue()获取 XML Web 服务方法的返回值。
set_ContentEncoding(String)设置 ‘Content-Encoding’ 头的值。
set_ContentType(String)设置 ‘Content-Type’ 标头的值。
set_InParameters(System::ArrayPtr<System::SharedPtr<Object>>)设置传递给 XML Web 服务方法的参数。
set_InternalStream(System::SharedPtr<System::IO::Stream>)设置包含 SOAP 消息数据的流。
set_OutParameters(System::ArrayPtr<System::SharedPtr<Object>>)设置传递给 XML Web 服务方法的输出参数。
SetException(SoapException)设置 XML Web 服务方法抛出的异常。
SetHeaders(System::SharedPtr<SoapHeaderCollection>)设置 SOAP 头的集合。
SetStage(SoapMessageStage)设置 SOAP 消息的处理阶段。
SetStream(System::SharedPtr<System::IO::Stream>)设置包含 SOAP 消息数据的流。
SoapMessage()构造一个新实例。
UpdateHeaderValues(System::SharedPtr<Object>, System::ArrayPtr<System::SharedPtr<SoapHeaderMapping>>)更新 SOAP 头的内部集合。

另见