wcf restful service with my windows app - windows-phone-8

We have used WCF restful service end point for Windows phone 8 App, Using HTTP request its running but sometime it throws error by showing "REMOTE SERVER RETURNED ERROR:NOT FOUND". And this error is coming very commonly with "https:" with only "http:" also this error coming but not frequently

Related

Truncated Response from Nginx server

I have a .net WebApi service which is hosted on IIS server, it returns JSON response. when i hit the .net service via postman i get proper complete data as expected.
When i call the same service via Kong Api Gateway (Configured on linux machine with Nginx) from postman, i get truncated JSON response from postman and error calling from c# code.
Received an unexpected EOF or 0 bytes from the transport stream.
Response from postman as below
Can someone please provide me some pointers to proceed with.

IBM API Connect Test and Monitor giving Invalid Request error

I am trying to use API Connect Test and Monitor tool wherein when I gave a Get request and url and with and without authorization token, I am getting this error:
Error. Invalid Request
When I do it using Postman, I get a proper 200 OK response (with and without authorization token).
I have tried for POST request also. Same works in Postman but not in IBM API Test and Monitor.
The IBM API Test and Monitor tool is a cloud-based service. Hence, it can only be used to query endpoints that are publicly available on the internet.
localhost refers to the user's computer which does not normally expose any TCP ports to the wider internet.
You can, however, use the IBM API Test and Monitor desktop app to query localhost

What App server to use for json and soap API

I am trying to select a app server platform to service JOSN & Soap POST requests from client app on Desktops. The app server runs on linux and use PHP code.
I searched and found PHP framework but that doesn't give you easy to use auth user/password, so you have to do the auth in app code. What is to use for simple request/response app server with secure auth like user/password on first request and then token like normal web servers.
Currently using Drupal 7 REST services module to handle request auth, but SOAP has security issues. Looking for better and light weight framework.
For your API : https://www.drupal.org/project/jsonapi (it's gonna be implemented in 8.7 anymay)
If you have an external authentication provider (like keycloak, azureAD…) : https://www.drupal.org/project/oauth2_jwt_sso
If you don't : https://www.drupal.org/project/simple_oauth

Office (JS) Outlook addin and Exchange token authentication

My Office add-in (which runs in Outlook) uses the OfficeJS library to get a callback token for authentication against Exchange:
Office.context.mailbox.getCallbackTokenAsync(...);
The token is sent to our server together with some message/attachment IDs and the server will attempt to connect to Exchange to retrieve said mail attachment. I use the EWS java API library for this. I am getting an Unauthorized 401 HTTP error back from Exchange when trying to bind to an EmailMessage:
ExchangeService exchangeService = new ExchangeService();
exchangeService.getHttpHeaders().put("Authorization", "Bearer " + callbackToken);
exchangeService.setUrl(new URI(ewsUrl));
EmailMessage mailMessage = EmailMessage.bind(exchangeService, new ItemId(mailMessageId));
When tested against Office 365 it all works flawlessly. However, when running this at a client I get the HTTP 401 response. The client runs Exchange 2013 on-premise. Does Exchange 2013 on-premise even support token authentication? Is there anything that needs to be done to enable this on that version of Exchange?

Using WCF service for windows mobile and server communication?

I am using this code for Windows phone and server communication using WCF for sending my data from phone to server and get response. But I am getting error "The remote server returned an error: NotFound."
How this URI is created:
string ServiceUri = "http://localhost:30576/Service1.svc/Rest/add/"
+ Number1 + "/" + Number2;
I did not understand from where /Rest/add/ came from. I may be getting error due to this.
Look at the web.config, at the "RESTEndPoint" section. His base address for the endpoint is "rest". So you have to use what ever is there in your web.config endpoint address.