Hi there,
I' ve read lot of how to's about implementing Service Layer on .NET and finally I could say that I've Service Layer configured and Service Reference
correctly added to my .NET Project. This article from Maria Trinidad Martinez Gea: How to consume Service Layer oData services from .NET via
WCF it's really good!
But now I can't find any information on how doing a simple query to ServiceLayer reference on my project. I tried many things like:
Dim sl As New ServiceReference1.SAPB1.ServiceLayer(New Uri(ConfigurationManager.AppSettings("SERVICE_LAYER_URL")))
Dim order As Document = New ServiceReference1.SAPB1.Document
Dim response As DataServiceResponse
order.CardCode = "TEST"
order.DocDueDate = DateTime.Today
order.DocDate = DateTime.Today
order.DocType = "dDocument_Items"
order.DownPaymentType = "tYES"
sl.AddToOrders(order)
response = sl.SaveChanges()
I was waiting for Maria Trinidad's .NET Sample App so I' ve started to investigate by myself but I always get same error: "Invalid session" ...
I imagine that need to create a new Session like I was doing with PostMan but actually I'm a little bit confused on how to CRUD any SAPB1."Object"
If someone can have an idea about it, doesn't matter if its C# or VB.NET
Thanks for all