To replicate, Add WCF to project.
Service1.prg:
Code: Select all
using System
using System.Collections.Generic
using System.Runtime.Serialization
using System.ServiceModel
using System.Text
BEGIN NAMESPACE xSharpWinFormsApp1
CLASS Service1 IMPLEMENTS $contractName$
METHOD DoWork() as VOID STRICT
RETURN
END CLASS
END NAMESPACE
Code: Select all
using System
using System.Collections.Generic
using System.Runtime.Serialization
using System.ServiceModel
using System.Text
namespace xSharpWinFormsApp1
{
[ServiceContract]
public interface IService1
{
[OperationContract]
void DoWork()
}
}
Also to be able to call a WCF web service from a web application, a X# web application template must be available and which creates a Global.asx.prg to properly setup CORS properties.
Jamal