SoapBodyBinding isbb = null;
XmlMembersMapping inputMembers = null;
- bool isWrapped = CheckIsWrapped ();
-
isbb = OperationBinding.Input.Extensions.Find (typeof(SoapBodyBinding)) as SoapBodyBinding;
if (isbb == null) throw new InvalidOperationException ("Soap body binding not found");
- inputMembers = ImportMembersMapping (InputMessage, isbb, style, false, isWrapped);
+ inputMembers = ImportMembersMapping (InputMessage, isbb, style, false);
if (inputMembers == null) throw new InvalidOperationException ("Input message not declared");
// If OperationBinding.Output is null, it is an OneWay operation
osbb = OperationBinding.Output.Extensions.Find (typeof(SoapBodyBinding)) as SoapBodyBinding;
if (osbb == null) throw new InvalidOperationException ("Soap body binding not found");
- outputMembers = ImportMembersMapping (OutputMessage, osbb, style, true, isWrapped);
+ outputMembers = ImportMembersMapping (OutputMessage, osbb, style, true);
if (outputMembers == null) throw new InvalidOperationException ("Output message not declared");
}
}
}
- bool CheckIsWrapped ()
- {
- return (OutputMessage == null || (OutputMessage.Parts.Count == 1 && OutputMessage.Parts[0].Name == "parameters")) &&
- (InputMessage == null || (InputMessage.Parts.Count == 1 && InputMessage.Parts[0].Name == "parameters"));
- }
-
- XmlMembersMapping ImportMembersMapping (Message msg, SoapBodyBinding sbb, SoapBindingStyle style, bool output, bool wrapped)
+ XmlMembersMapping ImportMembersMapping (Message msg, SoapBodyBinding sbb, SoapBindingStyle style, bool output)
{
string elemName = Operation.Name;
if (output) elemName += "Response";
- if (wrapped)
+ if (msg.Parts.Count == 1 && msg.Parts[0].Name == "parameters")
{
// Wrapped parameter style