Share via


save Method (SoapMapper)

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

This method converts the COM value of the SoapMapper object to XML and saves the result as a <part> element in the SoapSerializer object representing a SOAP message.

Syntax

HRESULT save(
  ISoapSerializer* pISoapSerializer, 
  BSTR bstrEncoding, 
  enEncodingStyle enStyle,
  BSTR bstrMessageNS, 
  long lFlags 
);

Parameters

  • pISoapSerializer
    [in] SoapSerializer object to save the SoapMapper object in.
  • bstrEncoding
    Value of encodingStyle attribute specified in the Web Services Description Language (WSDL) file.
  • enStyle
    Value of the style and use attributes in the WSDL file (enDocumentEdncoded, enDocumentLiteral, enRPCEncoded, or enRPCLiteral).
  • bstrMessageNS
    XML namespace of the element being mapped.
  • lFlags
    If the value is 0, the method adds Href attribute to the element.

    If the value is 1, the method calls the SoapTypeMapper object.

Return Value

The following table describes the common return values.

Value Description

S_OK

Success.

E_NOTIMPL

The function contains no implementation.

E_OUTOFMEMORY

Out of memory.

Remarks

You must call the save method on the same thread used to set the SoapMapper object's COM value.

Requirements

Header mssoap.h
Library uuid.lib
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

WSDLReader
SoapMapper