Calling a Web Service Method

All methods that are exposed by Web services are also available in proxy objects. The methods that are shared by proxy objects use the same names as their corresponding WSDLs. Web-service method calls should be placed in main transactions.

Example

[Transaction(Etranstype.TRANSTYPE_MAIN)]
public void TMain()
{
  string sReturn = mService.echoString("Test");
  Bdl.Print(sReturn);
}

To customize your Web-service calls from a generated BDL script, you must allow the exchange of data between BDL and .NET with usage of attributes or method parameters.

Example

[Transaction(Etranstype.TRANSTYPE_MAIN)]
[TestAttribute("EchoInput", "Test")]
public void TMain()
{
  string sReturn = mService.echoString(Bdl.AttributeGet("EchoInput"));
  Bdl.Print(sReturn);
}
or
[Transaction(Etranstype.TRANSTYPE_MAIN)]
public void TMain(string sEcho)
{
  string sReturn = mService.echoString(sEcho);
  Bdl.Print(sReturn);
}