Accessing stateless webservice api in Service fabric - azure-service-fabric

Im trying out the service fabric demo application provided by Microsoft.
https://github.com/azure/service-fabric
Ive got it up and running and i have the SF Explorer showing me all services are up and running as well.
I cant manage to reach the web service api though. It has a controller called HomeController and a method called Index (as well as GuestExe, Stateful, Stateless and Actor). In the properties of the WebService it says its URL is http://localhost:2416/ so i try
http://localhost:2416/Home/Index with a break point set in the index method but i get a "Site cant be reached" error in the browser.
I also try with
http://localhost:2416/Home/
http://localhost:2416/
http://localhost:2416/Index
How can i figure out the right URL to access this Stateless Service?

Related

Using a Web activity along with a linked service to call a rest api

I have to send data to a rest API via data factory.
I get batches of records from a database, send them in the body of the REST API call, which provides a response that informs the action performed on each record.
I created a linked service to the base API URL, and this linked service does the authentication to the API.
My question is how I use this linked service along with a web activity in a pipeline?
The web activity requires me to enter a full URL, which feels redundant as the base URL is already in the linked service.
The web activity does let me add multiple linked services but I'm unsure why it allows multiple linked services and how this is supposed to work.
I would appreciate expertise regarding how the web activity works with a linked service.
Thanks!

REST API SERVICE FOR COLLECTING FORM DATA in JAVA

im planning to develop a webapplication using java and HTML implementing as REST Services and confused how ot start with what technologies..
As a First step my first requirement is just creating a login HTML page and create REST SERVICE for LOGIN which validates the user by connecting to Database and generates a session and next page say shopping page.
Please suggest the Java jars,ide, etc to start.
Sorry, your problem is very complex.
To make a website such as shopping page, you can write code with REST services or no need.
If REST Services is used, you must build and setup 2 system/application: web app & server app. (front-end & back-end). With any system/app, you need technologies its own.
To done, you must know many knowledges such as:
API, Rooter, OOP, MVC, how to connect DB,...
There are many IDE such as Eclipse,... or only need a Editor with a few plugin.

How to Connect to Microsoft Dynamics Navision (NAV) Web Services Endpoints Using SOAP?

I can successfully connect to the main Page for the web service which lists all of the end point URLs;
http://<Server>:<WebServicePort>/<ServerInstance>/WS/<CompanyName>/Page/<ServiceName>
But no matter what combination of URLs / parameters I have tested, I cannot seem to actually connect to any of the end point URLs, they come back with an error every time saying that the page does not exist.
What am I missing? The documentation on this is abysmal from Microsoft.

fiware spagobi api rest validate with keyrock

I have 3 instances:
1.- app web (ubuntu instance)
2.- keyrock instance
3.- spagobi instance
My spagobi instance works validating users with keyrock as the same as App web. I create some reports in it. Now, i need to get these reports to insert into my app web.
Im trying to use http://docs.spagobi.apiary.io/, The preview subresource option. But all times i have a modal window asking my user/pass (as a apache security option).
im using http://spagobi-url/SpagoBI/restful-services/2.0/documents/printers_visited/preview (printers visited is the label of my document). And results:
If i wrote my user/pass in this panel, validation dont work and tries as a loop.
Anyone know how to solve this?
the REST services provided by SpagoBI require basic authentication, that's why you see the modal window asking for credentials.
In order to avoid this, you should implement a SSO between your application and SpagoBI and open a session in SpagoBI: when the session is opened, you should be able to invoke REST services.
Pay attention to the fact that preview subresource is just a static (optional file), it is not the executed report: if you want to execute the report, you should get the content subresource.
Just to let you know, we are currently developing possibility to invoke REST services providing the OAuth token. This should be available in next release.
Hope this helps

Exposing an HTTP proxy through a Turbogears controller

I have a webapp implemented in TurboGears 1.1 that's kind of a front-end for a REST API. I'm trying to expose a URL path on my webapp that's a proxy to the original REST API, so I can access "http://MY_APP/rest_api/foo" and have it work the same as "http://REST_API/foo".
Is there a simple way to set that up with TurboGears, or do I have to expose a normal controller and write all the code to handle GETs and POSTs and params and redirects myself?