Hi,
I have a serious WCF problem. If you go to the following link in your browser, you'll get a JSon result.
http://cobra-soft.no-ip.info:2080/Q2CService2.svc/GetAfdelingen?Login=cobrasoft&password=cobrasoft
I can't get this info from B4A with HTTPUtils. Can somebody please help me? This is *VERY* urgent :sign0013:.
Greetings,
Sigurd
WCF Service definition for this URL on my Server:
<OperationContract()>
<WebInvoke(method:="GET")>
Public Function GetRBCountPerDay(ByVal Login As String, ByVal Password As String, ByVal AfdelingCONT_ID As String, ByVal DateFrom As Date, ByVal DateTill As Date) As List(Of RBCountPerDay)
Dim CurrentCONT_ID = CheckUser(Login, Password)
If Not CurrentCONT_ID.HasValue OrElse CurrentCONT_ID.Value = Guid.Empty Then
Return Nothing
Else
Dim objAfdelingCONT_ID = New Guid(AfdelingCONT_ID)
DateTill = DateTill.Date.AddDays(1)
Using ctxQ2C As New Q2CModel.Q2CEntities
Dim varResult = From d In ctxQ2C.Document
Where d.DCMT_Type = 14 AndAlso d.DCMT_DatumUitvoer.HasValue AndAlso
d.DCMT_Locatie_ID.HasValue AndAlso d.DCMT_Locatie_ID = objAfdelingCONT_ID AndAlso
d.DCMT_DatumUitvoer.Value >= DateFrom AndAlso d.DCMT_DatumUitvoer.Value < DateTill
Group By Base = New With {d.DCMT_Locatie_ID, d.DCMT_DatumUitvoer.Value.Year,
d.DCMT_DatumUitvoer.Value.Month, d.DCMT_DatumUitvoer.Value.Day} Into Aantal = Group
Order By Base.DCMT_Locatie_ID, Base.Year, Base.Month, Base.Day
Select New RBCountPerDay With {.DCMT_Locatie_ID = Base.DCMT_Locatie_ID, .Year = Base.Year, .Month = Base.Month, .Day = Base.Day, .Count = Aantal.Count()}
Return varResult.ToList
End Using
End If
End Function
I have a serious WCF problem. If you go to the following link in your browser, you'll get a JSon result.
http://cobra-soft.no-ip.info:2080/Q2CService2.svc/GetAfdelingen?Login=cobrasoft&password=cobrasoft
I can't get this info from B4A with HTTPUtils. Can somebody please help me? This is *VERY* urgent :sign0013:.
Greetings,
Sigurd
WCF Service definition for this URL on my Server:
<OperationContract()>
<WebInvoke(method:="GET")>
Public Function GetRBCountPerDay(ByVal Login As String, ByVal Password As String, ByVal AfdelingCONT_ID As String, ByVal DateFrom As Date, ByVal DateTill As Date) As List(Of RBCountPerDay)
Dim CurrentCONT_ID = CheckUser(Login, Password)
If Not CurrentCONT_ID.HasValue OrElse CurrentCONT_ID.Value = Guid.Empty Then
Return Nothing
Else
Dim objAfdelingCONT_ID = New Guid(AfdelingCONT_ID)
DateTill = DateTill.Date.AddDays(1)
Using ctxQ2C As New Q2CModel.Q2CEntities
Dim varResult = From d In ctxQ2C.Document
Where d.DCMT_Type = 14 AndAlso d.DCMT_DatumUitvoer.HasValue AndAlso
d.DCMT_Locatie_ID.HasValue AndAlso d.DCMT_Locatie_ID = objAfdelingCONT_ID AndAlso
d.DCMT_DatumUitvoer.Value >= DateFrom AndAlso d.DCMT_DatumUitvoer.Value < DateTill
Group By Base = New With {d.DCMT_Locatie_ID, d.DCMT_DatumUitvoer.Value.Year,
d.DCMT_DatumUitvoer.Value.Month, d.DCMT_DatumUitvoer.Value.Day} Into Aantal = Group
Order By Base.DCMT_Locatie_ID, Base.Year, Base.Month, Base.Day
Select New RBCountPerDay With {.DCMT_Locatie_ID = Base.DCMT_Locatie_ID, .Year = Base.Year, .Month = Base.Month, .Day = Base.Day, .Count = Aantal.Count()}
Return varResult.ToList
End Using
End If
End Function