So actually getting some time on my project now....
I have questions on my handish coded xdata server (following Holgers https://www.youtube.com/watch?v=2SCvzw0L27o) and not being able to connect in anything other than the browser interactively. Can't work out what to put into the TXDataWebConnection for the URL.
For the moment I am just trying to get some of my data where I am controlling what is available on a web page. In Holgers example he writes a School list and a schools list using batch move.
I created something almost identical and the
http://localhost:2001/tms/FB15DataDTest/$model
returns the bit at the bottom (See {....).
The youtube clip goes on to consume this in the desktop client, but I want it in the web, so I created a simple webcore app and tried using a TXDataWebConnection , but when I put in the URL (http://localhost:2001/tms/FB15DataDTest) and connect (at design time) I get....
---------------------------
Error
---------------------------
Could not perform WinHttp operation.
Error: (12005) The URL is not valid
Could not create connection.
---------------------------
OK Details >>
---------------------------
{
"Title": "Server API",
"Version": "1.0",
"Schemas": [
{
"Namespace": "XData.Default",
"EntityTypes": [],
"EntityContainers": [
{
"Name": "Default",
"EntitySets": []
}
],
"EnumTypes": [],
"Controllers": [
{
"Name": "SIPPTestService",
"Actions": [
{
"Name": "Sum",
"Parameters": [
{
"Name": "A",
"BindingMode": "FromURI",
"Input": true,
"Type": "Double"
},
{
"Name": "B",
"BindingMode": "FromURI",
"Input": true,
"Type": "Double"
}
],
"HttpMethod": "GET",
"OperationId": "ISIPPTestService.Sum"
},
{
"Name": "EchoString",
"Parameters": [
{
"Name": "Value",
"Input": true
}
],
"HttpMethod": "POST",
"OperationId": "ISIPPTestService.EchoString"
},
{
"Name": "GetAccessAreas",
"Parameters": [],
"HttpMethod": "GET",
"IsResultStream": true,
"IsResultSingleObject": true,
"OperationId": "ISIPPTestService.GetAccessAreas"
},
{
"Name": "GetAccessAreasBatch",
"Parameters": [],
"HttpMethod": "GET",
"IsResultStream": true,
"IsResultSingleObject": true,
"OperationId": "ISIPPTestService.GetAccessAreasBatch"
}
]
}
]
}
]
}