Operation.ParameterOrderString Property

Gets or sets an optional Remote Procedure Call (RPC) signature that orders specification for request-response or solicit-response operations.

Namespace: System.Web.Services.Description
Assembly: System.Web.Services (in system.web.services.dll)

public:
property String^ ParameterOrderString {
	String^ get ();
	void set (String^ value);
}
/** @property */
public String get_ParameterOrderString ()

/** @property */
public void set_ParameterOrderString (String value)

public function get ParameterOrderString () : String

public function set ParameterOrderString (value : String)

Not applicable.

Property Value

A list of names of the MessagePart instances separated by a single space.

The named MessagePart instances must adhere to the following rules:

  • The order of the named MessagePart instances reflects the order of the parameters in the RPC (remote procedure call) signature, which is the name of the operation, its input and output parameters, the results it returns and the exceptions it might be asked to handle.

  • The return value is not present in the list.

  • If the MessagePart name appears in both the input and output messages, it is an in/out parameter.

  • If the MessagePart name appears only in the input message, it is an in parameter.

  • If the MessagePart name appears only in the output message, it is an out parameter.

Note that this parameter list is not required, even if the Operation is to be used with an RPC-style Binding. Do not call ParameterOrderString directly. This method is only used internally for XML serialization. To return the parameter list use ParameterOrder.

String^ myString = nullptr;
Operation^ myOperation = gcnew Operation;
myDescription = ServiceDescription::Read( "Operation_2_Input_CS.wsdl" );
array<Message^>^myMessage = gcnew array<Message^>(myDescription->Messages->Count);

// Copy the messages from the service description.
myDescription->Messages->CopyTo( myMessage, 0 );
for ( int i = 0; i < myDescription->Messages->Count; i++ )
{
   array<MessagePart^>^myMessagePart = gcnew array<MessagePart^>(myMessage[ i ]->Parts->Count);

   // Copy the message parts into a MessagePart.
   myMessage[ i ]->Parts->CopyTo( myMessagePart, 0 );
   for ( int j = 0; j < myMessage[ i ]->Parts->Count; j++ )
   {
      myString = String::Concat( myString, myMessagePart[ j ]->Name, " " );
   }
}

// message part names.
myOperation->ParameterOrderString = myString;
array<String^>^myString1 = myOperation->ParameterOrder;
int k = 0;
Console::WriteLine( "The list of message part names is as follows:" );
while ( k < 5 )
{
   Console::WriteLine( myString1[ k ] );
   k++;
}

String myString = null;
Operation myOperation = new Operation();
myDescription = ServiceDescription.
    Read("Operation_2_Input_JSL.wsdl");
Message myMessage[] = new Message[myDescription.get_Messages().
    get_Count()];
// Copy the messages from the service description.
myDescription.get_Messages().CopyTo(myMessage, 0);
for (int i = 0; i < myDescription.get_Messages().get_Count();
    i++) {
    MessagePart myMessagePart[] = new MessagePart[myMessage[i].
        get_Parts().get_Count()];
    // Copy the message parts into a MessagePart.
    myMessage[i].get_Parts().CopyTo(myMessagePart, 0);
    for (int j = 0; j < myMessage[i].get_Parts().get_Count(); 
        j++) {
        myString += myMessagePart[j].get_Name();
        myString += " ";
    }
}
// Set the ParameterOrderString equal to the list of 
// message part names.
myOperation.set_ParameterOrderString(myString);
String myString1[] = myOperation.get_ParameterOrder();
int k = 0;
Console.WriteLine("The list of message part names is as follows:");
while (k < 5) {
    Console.WriteLine(myString1.get_Item(k));
    k++;
}

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show: