SoapBodyBinding::PartsString Property
Gets or sets a value indicating which parts of the transmitted message appear within the SOAP body portion of the transmission.
Assembly: System.Web.Services (in System.Web.Services.dll)
Property Value
Type: System::StringA space-delimited string containing the appropriate message parts.
Some parts of the transmitted message can appear in portions other than the SOAP body, such as when SOAP is used with a MimeMultipartRelatedBinding. In such a case, the other members of the Extensions property determine the locations of other parts of the message.
This property returns exactly the same information as the Parts property, but the results are returned within a space-delimited string rather than within an array. PartsString is used internally for xml serialization and shouldn't be called directly. To return the transmitted message parts appearing within the SOAP body portion of the transmission, use the Parts property.
// Create the 'InputBinding' object for the 'SOAP' protocol. InputBinding^ myInput = gcnew InputBinding; SoapBodyBinding^ mySoapBinding1 = gcnew SoapBodyBinding; mySoapBinding1->PartsString = "parameters"; mySoapBinding1->Use = SoapBindingUse::Literal; myInput->Extensions->Add( mySoapBinding1 ); // Assign the 'InputBinding' to 'OperationBinding'. myOperationBinding->Input = myInput; // Create the 'OutputBinding' object' for the 'SOAP' protocol.. OutputBinding^ myOutput = gcnew OutputBinding; myOutput->Extensions->Add( mySoapBinding1 ); // Assign the 'OutPutBinding' to 'OperationBinding'. myOperationBinding->Output = myOutput;
// Create the 'InputBinding' object for the 'SOAP' protocol. InputBinding* myInput = new InputBinding(); SoapBodyBinding* mySoapBinding1 = new SoapBodyBinding(); mySoapBinding1->PartsString = S"parameters"; mySoapBinding1->Use= SoapBindingUse::Literal; myInput->Extensions->Add(mySoapBinding1); // Assign the 'InputBinding' to 'OperationBinding'. myOperationBinding->Input = myInput; // Create the 'OutputBinding' object' for the 'SOAP' protocol.. OutputBinding* myOutput = new OutputBinding(); myOutput->Extensions->Add(mySoapBinding1); // Assign the 'OutPutBinding' to 'OperationBinding'. myOperationBinding->Output = myOutput;
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.