WCF generation incorrect
Posted: Thu Jun 13, 2019 8:29 pm
It seems the WCF generation code is incomplete. It is creating X# code in Service.prg and C# code in IService1.prg which leads to compile errors.
To replicate, Add WCF to project.
Service1.prg:
IService.prg has C# code:
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
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