web-services

Cordova app can't connect with Dynamics NAV Web-Service (ODATA) after update to iOS 10

那年仲夏 提交于 2019-12-25 04:28:26
问题 We are developing an app with Cordova that syncs information with an ODATA Web-Service made available by a Microsoft Dynamics NAV 2013 Middle tier. Under Android there is no problem with the connection and under iOS 8 and 9 it works as well. On Devices using iOS 10 the connection does not work and returns a HTTP 400 Bad Request error. The connection has the following structure (this is test code, works on Android and iOS 8 and 9, but not on iOS 10) var xreq = new XMLHttpRequest(); xreq.open(

What is the full WSDL endpoint url

五迷三道 提交于 2019-12-25 04:23:16
问题 I have a wsdl content which shows the Service element like below. <service name="CheckIn"> <port name="CheckInSoap" binding="s0:CheckInSoap"> <soap:address location="http://10.50.130.93:16200/_dav/cs/idcplg" /> </port> </service> I want to the access the WSDL url like http://ip:port/../..?wsdl from the server 10.50.130.93 . I have tried the url http://10.50.130.93:16200/_dav/cs/idcplg?wsdl and http://10.50.130.93:16200/_dav/cs/idcplg/CheckIn?wsdl . But both them doesn't show the WSDL content

Not getting success in calling asp.net web service from sencha touch

有些话、适合烂在心里 提交于 2019-12-25 04:21:29
问题 Here's my code which i am using to get data from web service:- Ext.onReady(function(){ var url = "http://192.168.1.15/JSONDemo/Service1.asmx/getString"; Ext.Ajax.request({ method: 'get', url: url, // params: {'name':'himanshu'}, jsonData: { 'name': 'Himanshu'}, // headers: { 'Content-Type': 'application/xml; charset=utf-8' }, success: function (response, request) { alert('Working!') alert(response.responseText) console.log('Response:-'+response.responseText) }, failure: function (response,

Bad Request when making a call to a REST WCF WebService

爷,独闯天下 提交于 2019-12-25 04:19:59
问题 I'm writing an Android application and a WCF REST service to call from it. When I try to make a call to a certain method I receive an "Bad Request" message. In a previous test I managed to do this call and its worked, but after some changes in classes I could not again. This is the classes in the service: public class Venda { public int Cod { get; set; } public string Pedido { get; set; } public int Cliente { get; set; } public int Vendedor { get; set; } public string Modo { get; set; }

Error deploying JAXWS webservice on Websphere server

為{幸葍}努か 提交于 2019-12-25 04:19:15
问题 I am deploying JAX-WS webservice on websphere and when I am testing the same through soapUI, it is throwing below error. Please advice what can be the issue: ClassCastException: com.ibm.xml.xlxp2.jaxb.JAXBContextImpl incompatible with com.sun.xml.bind.api.JAXBRIContext Note: I have chanaged the classloader setting in websphere from parent first to parent last as well. following are the jars in my war file. jaxb-api-2.2.6.jar jaxb-impl-2.2.5.jar jaxb-xjc-2.1.9.jar jaxws-api-2.1.jar jaxws-maven

How to understand what XML to send to an ASMX web service?

为君一笑 提交于 2019-12-25 04:17:07
问题 I am trying to consume some .asmx service in a console application (I will later use the code to make a dll and use it somewhere else). But I don't know what the schema of the web service is. I just know the URL of the service which on navigating using the browser gives a page which enlists the functions of the web service. On clicking on a function I get a page with this written under the heading SOAP 1.1: The following is a sample SOAP 1.1 request and response. The placeholders shown need

Web Service sending information to iPhone

空扰寡人 提交于 2019-12-25 04:14:50
问题 I created a couple web services for my app as follows. 1. Allows a host device to send its information to the web service and will store it in a sql database. 2. Allows a client device to see all nearby devices based on the information in the sql database. I want the client to now be able to click one of the devices to connect to, which would then somehow link the two together. The question I have is right now my web services can only send a response to a device's request. What I want is if

page redirect , before ajax call success

倾然丶 夕夏残阳落幕 提交于 2019-12-25 04:14:27
问题 I'm using jquery 1.7.2 for some ajax call onloud of an aspx page. ajax calls webservice methods . if user push refresh button or click on some menu to redirect to another page when ajax calls still in progress and not success yet, an error shown in firebug console that not make sense. what can i do to kill ajax pending requests when user try to leave the page? 回答1: you can do this for instance it your ajax calling function var call = $.ajax({ type: "POST", url: "mywebservice.aspx", data:

200kb image to base64 cannot send to web service

喜欢而已 提交于 2019-12-25 04:13:40
问题 I got bad request 400 when i send base64 image in the web service, I put base64 string to JSON and POST it using retrofit. here is my code Bitmap bm = BitmapFactory.decodeFile("IMAGE PATH"); ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); bm.compress(Bitmap.CompressFormat.PNG, 50, byteArrayOutputStream); byte[] byteArray = byteArrayOutputStream .toByteArray(); String imgbase64 = Base64.encodeToString(byteArray, Base64.NO_WRAP + Base64.URL_SAFE); And add to

Post data ajax from file local to server in pure javascript

不问归期 提交于 2019-12-25 04:11:59
问题 I want to post info of login from file local to server. This is my code: var UrlDetails = 'http://xxx.xxx.x.xxx:xxxx'; function createCORSRequest(method, url, asynch) { // Create the XHR object. var xhr = new XMLHttpRequest(); if ("withCredentials" in xhr) { // XHR for Chrome/Firefox/Opera/Safari. xhr.open(method, url, true); //if (method == 'POST') { // xhr.setRequestHeader('Content-Type', 'application/json'); //} } else if (typeof XDomainRequest != "undefined") { // XDomainRequest for IE.