You can transform operation inputs and results into a different schema structure using this Service Operation builder.
To do this, make sure the desired schema is available in the WebApp. This schema can be created with a builder such as Schema or Simple Schema Generator, or you can use any schema in the WebApp that was created by any other builder.
When you call a service operation via the Service Consumer builder, the result IXml data for the operation is a reference to the same IXml object specified in the provider's Service Operation builder. It is not a separate copy of the data. This means that if the provider code keeps a reference to the IXml object, and if the result data is then modified in the Consumer model, the data will be changed in both places.
Select Specify input schema in the field for Input Structure Handling. Select your schema type in the Input Schema field. Then select Specify input values for Input Field Mapping. This gives you the Input Field Values table.Result Transformation
Input fields for the called operation are listed in the name column. You specify values for an input in the values column. If you open the value picker, all the fields from your operation's inputs are listed in the Arguments section. This makes it easy to map between fields if the two structures have different field names. You can also specify any other value to supply to the called action. For example, you may have some fields that have hard-coded values, or values from a variable.
Use the same approach for result transformation as you did for input transformation. Select Specify result schema in the field for Result Structure Handling. Select a schema type in the Result Schema field. Then select Specify result values for Input Field Mapping. This gives you the Result Field Values table.
Result fields from your new operation are listed the name column. You specify values for a result in the values column. If you open the value picker, all the fields from the results of the action you are calling are listed in the Results section. This makes it easy to map between fields if the two structures have different field names. You can also specify any other value to supply to the result field. For example, you may want to call a method to calculate a field value by picking from the MethodCall section.
Parent topic: Using data services: wpf7