ISoapDeSerializer::Start Method

HRESULT Start([in] ISOAPNode * node, [in] BSTR ElementName, [in] ISoapDeSerializerAttributes * Attributes, [in] ISOAPNamespaces * ns);

The de-serializer engine calls this to start de-serializing the current element into a COM value.

 

Parameters

node
ISOAPNode *, [in]: The resulting node that needs updating with the finalized value
ElementName
BSTR, [in]: The name of the element being de-serialized
Attributes
ISoapDeSerializerAttributes *, [in]: Access to any attributes that may be on this element
ns
ISOAPNamespaces *, [in]: Allows access to the namespace manager, so that you can do prefix/URI mappings

 

Return Values

Throw an error to stop the de-serialization process, the error will be returned to the client.

 

Sample Code

Option Explicit

const SOAP_ENC = "http://schemas.xmlsoap.org/soap/encoding/"

Implements ISoapDeSerializer

Private Sub ISoapDeSerializer_Start(ByVal node As PocketSOAP.ISOAPNode, ByVal ElementName As String, ByVal Attributes As PocketSOAP.ISoapDeSerializerAttributes, ByVal ns As PocketSOAP.ISOAPNamespaces)
    If Not Attributes.Exists("arrayType", SOAP_ENC ) Then
        Err.Raise vbObjectError + 9876, , "Array is missing arrayType attribute!"
    End If
    dim arrType as string
    arrType = Attributes.Value("arrayType", SOAP_ENC )
    CrackSoapArrayType arrType
    ...
End Sub

 

See Also

The ISoapDeSerializer Interface | 

 

 

Copyright

Copyright © Simon Fell, 2000-2004. All rights reserved.