How to handle Odata? - visual-studio-2017

I am using Visual studio, and have a connected service to Odata service.
But I am not sure how i can extract meaningfull items from this?
How do enter the data within the odata service, and can i somehow scope my way
through different entries stored in this?

Odata is best for creating and consuming rest full APIs. It helps you focus our business while building restful APIs

Related

How to access the dataset on API Portal (which provides REST Webservice) using SSIS

I want to access the data sets on an API portal(using SSIS) which provides an Internet REST web service to expose certain functions to the third party applications.
I am relatively new to the Webservices concept. Could someone help me by providing a tutorial or step by step procedure on how to access the datasets on this portal using HTTPS and REST services methodology ?
Also, it has some authentication parameters that needs to be included in header of the request, like AUTH_CUSTID, AUTH_KEY and AUTH_SOURCE.
Thanks in Advance!
This may or may not help you (depending on whether I understood your requirement):
http://blogs.msdn.com/b/dbrowne/archive/2010/07/08/how-to-configure-an-ssis-package-to-access-a-web-service-using-wcf.aspx

Calling an external API from Microsoft Dynamics Nav

I am researching how to integrate Microsoft Dynamics NAV with my existing REST API (built on Django REST Framework). What I would like to do is trigger API calls from NAV to CRUD objects via the REST API.
Reading the web services docs for NAV, it seems clear that NAV can expose a web service for other software to consume from. But can NAV consume 3rd party APIs? In the web services examples documentation, it says:
Solutions that need to execute business logic or read data from
Microsoft Dynamics NAV are candidates for Web service implementation.
These can also be solutions that write data to Microsoft Dynamics NAV
and validate the data using existing business logic.
Also, it gives the following example of how to use web services:
Execute any kind of business logic that is more easily developed and
managed in Microsoft Dynamics NAV.
However, I don't see any examples of data writing. It doesn't seem that in the exposure of web service pages or codeunits, there's a way to make calls to 3rd party APIs and execute business logic with the data that comes back within NAV. Is this actually possible?
Unfortunately not, no.
You do however have access to the full .NET framework from within the 'Development Client' of Dynamics NAV - When defining your variables select the Type of DotNet
It's far from perfect, so for larger tasks I'll create AddIns or completely external libraries (depending on version).
For something smaller like this I personally find it easiest to write it in C# as a small (console) app and the 'translate' it back into Dynamics NAV.
If you are looking for way to invoke a web service then why do you need Nav web services? Nav web services is a way to call Nav.
These can also be solutions that write data to Microsoft Dynamics NAV and validate the data using existing business logic.
This means if you invoke published Nav web service then you can pass data to your call and the data will be validated and saved to Nav. So this is about how to push data to Nav, not pull from external system.
If you want to invoke a web service from Nav consider this options:
Write external wraper library (as mentioned by #SeeSharp or as described). Then use it in C/AL as DotNet or Automation types of variables.
Use existing libraries like 'Microsoft XML, v6.0'.XMLHTTP60 right in C/AL to make http calls to your web service.
Do it Navision style.
Last damn option is to write console application that will consume your web service and call it from Nav using shell. This is not an option, I know.

Login/Registration functionality in cq5

I need to create register/login functionality in CQ5. There are three ways
1 - The register/login functionality should be prepared as web service hosted on a Java Application Server and then we can consume data from web services.
2 - The functionality should be prepared as web service based on RESTFull that hosted on CQ itself since AEM is developed around the REST principal and REST web services is certainly one which will be supported. So I believe RESTfull web services can be hosted with CQ5.
3 - Why do we need web services? I do not think it requires web services since my application is not going to communicate with other application and it dont want to expose any services to outside world. Why don't we create register/login functionality as we do in normal web application. Can we create a OSGI bundle that invoke databases to store user details for register/login functionality?
I would go for 3rd option but my concern is AEM is not the place to build our business logic to carry out functions that are not related to content rendering.
which option would you choose and why? Kindly share your ideas and thoughts. I am just looking for best solution to develop register/login functionality in CQ.
Thanks
I think i am late to the party but it might help someone. Yes, you can very well create rest webservices in CQ and they work well. So, you can take that approach.
The way to go about implementing login/registration would be how it is done OOTB but OOTB is also bad in the way it implements it so you have to make modifications to overcome that.
1) You need to register and Authentication handler with CQ. If you are looking for a sample there is a form authentication handler source that you can look at.
2) We have integrated out Auth handler with Active Directory (AD). Since AD is supported by default, so it is easy to integrate with Auth Handlers.
3) Next you need to create a user login token for which you can look into TokenUtil class of CQ or if you are looking to develop SSO, you can look into SSO code that is packaged OOTB.

Extract data from Crystal Reports via Web Service

I would like to access the aggregated data of a chart in a Crystal Report. It seems there are many different Web services such as SAP BO RESTful Web Service, Crystal Reports REST WebService, OpenDocument Web service and it is - to be honest - a bit confusing.
Does anyone know if accessing the aggregated data of a Crystal Report via a Web Service is possible?
If so, which web service is the correct one?
In the best case I would expect to get the data in XML or JSON format in return.
Thanks for your suggestions. :)
I'm not an expert on Crystal Reports, but you can already eliminate OpenDocument for this scenario, as this is used to open a document hosted in the BI Platform, and display it in the browser. The use case for OpenDocument is to provide inter- and intra-document links as well as allow you to link from outside the BI Platform to a specific document.
Using the Crystal Report REST SDK, you could perhaps use the OData protocol to retrieve the necessary information. Have a look at the RESTful Web Services documentation to see if that provides what you need (OData is described in section 3.6).

Connect to CRM with only webservies

Can someone please point me to the direction where there is a example on how to connect and retrieve data from Microsoft Dynamic online 2011 with only the web services, such as Discovery and Organization, and not using any of the SDK that Microsoft provided. It would also be nice if I dont need to add System.ServiceModel.
I looked at the Soap example it still used Microsoft.Crm.Sdk.Samples.
The reason i am avoiding any SDK or namespace is I am trying to build a SQL CLR that can connect to CRM online and retrieve the data i needed for the reports. The reports are based on my local database and CRM data.
Thank you for all the help
Most data can be fetched (and relationships are well represented) via the oData/REST web services. You don't need any particular SDKs or custom code, just anything that can read data in XML or JSON format from a URI.
[Your Organization Root URL]/XRMServices/2011/OrganizationData.svc is where you'll find the fun stuff. Documentation is on MSDN at http://msdn.microsoft.com/en-us/library/gg334767.aspx