web-services

docker nginx connection refused while connecting to upstream

ε祈祈猫儿з 提交于 2020-07-18 11:35:30
问题 I use shiny server to build a web-app on port 3838, when i use nginx in my server it works well. But when I stop nginx on my server and try to use docker nginx, I find the site comes to a '502-Bad Gate Way' error and nginx log shows: 2016/04/28 18:51:15 [error] 8#8: *1 connect() failed (111: Connection refused) while connecting to upstream, ... I install docker-nginx by this command: sudo docker pull nginx My docker command line is something like (for clear i add some indent): sudo docker run

Best Practice for loading data from server (Android App)

爷,独闯天下 提交于 2020-07-18 07:31:24
问题 I'm building an Android app, which should: show some data, loaded from a server in the Internet. At the moment I have a local SQliteDB used in my app where the data is stored, which should be displayed. I use this, because I want to be able to show the data, even if there is temporarily no internet connection available. Next step I will work on inserting data in the local SQliteDB from a internet server. I thought about doing it this way: When app starts, check if internet is available. If

How to add token authentication to web services for “Auth-Token”?

五迷三道 提交于 2020-07-17 08:54:26
问题 I'm newer to web services, but I have a web service that I'm consuming/wrapping in Visual Studio C# that ends in Service.asmx where I did Add Service Reference and it pulled in all of the elements that were showing in Service.asmx?wsdl . It has objects for Username and Password that worked fine, but now the company who created this web service is changing to token authentication where I get a GUID token and pass null to these elements. Well shouldn't the web service show a new element where I

How to add token authentication to web services for “Auth-Token”?

你。 提交于 2020-07-17 08:53:20
问题 I'm newer to web services, but I have a web service that I'm consuming/wrapping in Visual Studio C# that ends in Service.asmx where I did Add Service Reference and it pulled in all of the elements that were showing in Service.asmx?wsdl . It has objects for Username and Password that worked fine, but now the company who created this web service is changing to token authentication where I get a GUID token and pass null to these elements. Well shouldn't the web service show a new element where I

Jaspert report get data from provider with web service. How to?

谁说胖子不能爱 提交于 2020-07-16 04:25:51
问题 There is system, that has data, and can provide it's data with web-services (for example Lotus Notes database). Can Jasper get data for it's report by calling web-service? 回答1: You can, but it will probably get very complicated very quickly. But if you want to travel that path, it is definitely possible with a JRXmlDataSource. You will have to define the datasource like: new net.sf.jasperreports.engine.data.JRXmlDataSource( net.sf.jasperreports.engine.util.JRLoader.getLocationInputStream(

Is REST only for Web APIs? If not, then what other systems can obey REST apart from Web APIs?

蹲街弑〆低调 提交于 2020-07-15 15:14:04
问题 I hear people say as per Roy Feilding that REST is not just for web services. If so, what other systems/mechanisms/anything can use it? 回答1: The REST interface is designed to be efficient for large-grain hypermedia data transfer -- Fielding, 2000. REST is intended for long-lived network-based applications that span multiple organizations -- Fielding, 2008 The problem, of course, is that if that's what you need -- the web is sitting right there, so in most cases it's going to be more practical

How to modify the httpAddress in WSDL?

廉价感情. 提交于 2020-07-09 08:37:36
问题 the problem almost like this: ASP.NET Web Service changes port on Invoke.I try to use the SoapExtensionReflector to modify the service address in WSDL,and it works on SaopAddress,but the http address is still nochanging. the result like this: - <wsdl:service name="WebService1"> - <wsdl:port name="WebService1Soap" binding="tns:WebService1Soap"> <soap:address location="http://I can remove this Port:3821/WebService1.asmx" /> </wsdl:port> - <wsdl:port name="WebService1Soap12" binding="tns

Angular 6 accessing REST failing with Access-Control-Allow-Origin

好久不见. 提交于 2020-07-05 08:12:51
问题 So I am trying to load the data from a REST source into my Angular 6 app using http: HttpClient from '@angular/common/http' . Calling the app in the browser using ng serve --open though doesn't do the job. I assume CORS to be the problem here. I guess I either have to set the server or the client headers with Access-Control-Allow-Origin or something, but I have already tried multiple ways without any success in making this simple REST call work. So what follows below is what I coded. Calling

Angular 6 accessing REST failing with Access-Control-Allow-Origin

感情迁移 提交于 2020-07-05 08:07:31
问题 So I am trying to load the data from a REST source into my Angular 6 app using http: HttpClient from '@angular/common/http' . Calling the app in the browser using ng serve --open though doesn't do the job. I assume CORS to be the problem here. I guess I either have to set the server or the client headers with Access-Control-Allow-Origin or something, but I have already tried multiple ways without any success in making this simple REST call work. So what follows below is what I coded. Calling

getting System.NullReferenceException: 'Object reference not set to an instance of an object.' when calling a service

a 夏天 提交于 2020-06-29 04:59:04
问题 I am using .net core and consumed a WCF service. When I pass Api key in header and call a service , it throws NullReferenceException error. Below is the function I am using to call a service public async void CallService(string reqdata, string partner) { BasicHttpBinding basicHttpBinding = null; EndpointAddress endpointAddress = null; ChannelFactory<IRequestChannel> factory = null; QuoteEngineService.MarketingSoftwareClient service = new QuoteEngineService.MarketingSoftwareClient(); try {