WebService - [SoapRpcMethod]

WebService - [SoapRpcMethod]

  
Hi,

How can i do something like this
[SoapRpcMethod]
        [WebMethod]
        public MyObj HelloWorld2()
        {
            MyObj myObj = new MyObj();
            myObj.name = "foobar";
            myObj.value = 42;
            return myObj;
        }
[SoapRpcMethod]
        [WebMethod]
        public MyObj HelloWorld2()
        {
            MyObj myObj = new MyObj();
            myObj.name = "foobar";
            myObj.value = 42;
            return myObj;
        }

//[SoapRpcMethod]
        [WebMethod]
        public MyObj HelloWorld2()
        {
            MyObj myObj = new MyObj();
            myObj.name = "foobar";
            myObj.value = 42;
            return myObj;
        }
[SoapRpcMethod]
[WebMethod]
public MyObj HelloWorld()
{
  ...
}

And change the WebServiceBinding?
It's possible?

Best regards,
Daniel Freitas
Hi Daniel,

It is not possible to expose a web service like the one you described directly from an OutSystems application.

If you need to expose OutSystems business logic with that WS interface, the best and more structured way to do it is the following:
  1. Expose a regular OutSystems Web Service from your applicaiton;
  2. Create a ASP.Net application that will simply exposes the desired WS interface - it consumes the OutSystems web service and exposes it with the properties you described;
This way you have all the power of the OutSystems platform for the development of the Web Service logic, and, by creating a thin .Net interface, you are able to expose the WS Interface that you need.

Kind Regards,

Daniel Lourenço
OutSystems