web-services

Can't send parameter through alamofire to webservice

≯℡__Kan透↙ 提交于 2019-12-29 09:42:16
问题 I want to send parameter through Alamofire to webservice. I have checked the webservice and it is working properly but it is not accepting parameter just getting response of else part. Here is my Alamofire code I am using in swift iOS. let parameters: Parameters = [ "signers": "ram,Rahim", "message": "hello,World", "path": "www.webservice.com", "sequence":"1,2" ] Alamofire.request("http://www.webservice.pixcel.com/esp.php", parameters: parameters).responseJSON(completionHandler: { (response)

WCF (svc) Service but client wants to connect as if it was “.asmx”

让人想犯罪 __ 提交于 2019-12-29 09:41:09
问题 I have this scenario. Client requested us to have a WebService. I created a WCF Service. After we sent them our url to the web service description, client says As it is we cannot consume a WCF service, can you publish it a web service? Now i am wondering, they are asking me for a asmx... right? Is there any way that i can "offer" my WCF service as an asmx service so i don't have to rewrite the whole thing? my first "solution" is to have an .asmx file calling my .svc files directly... i don't

Async requests to a web service

心已入冬 提交于 2019-12-29 09:40:07
问题 How to make async requests to a webservice from a Thread? 回答1: Here is the short answer without a load of explanations. Before calling the Async method on your Client object make sure you are not running on the UI Thread:- System.Threading.ThreadPool.QueueUserWorkItem( o => { try { svc.SomeMethodAsync(); } catch (err) { // do something sensible with err } }); Now the corresponding completed event will occur on a ThreadPool thread not the UI Thread. 回答2: Here is a solution using WCF. Service

How to pass image from a flex application to a asp net c# web service?

荒凉一梦 提交于 2019-12-29 09:32:51
问题 I want to store images from the flex application to a asp net web service and at a later point will be sending these images back to flex application . Can you please give a example web method in c# or suggest a website to read about how to do this. I tried goggling but couldn't find anything very useful 回答1: There are two ways I can think of: use AMF and send ByteArray to C# (flex to c#) use URLRequest and it's data property to send ByteArray encoded in Base64 via HTTP POST 来源: https:/

How to call overloaded wsdl webservice method from php soap client

喜欢而已 提交于 2019-12-29 09:32:48
问题 Webservice : http://webservices.dishtv.in/Services/Mobile/Trade/TradeSubscriberInfo.asmx Overloaded method is GetSubscriberInfoV2 MessageName="GetSubscriberInfoVCLogV2" My php code is, <?php $mobileno="01523833622"; $url="http://webservices.dishtv.in/Services/Mobile/Trade/TradeSubscriberInfo.asmx?wsdl"; $client = new SoapClient($url); $soapHeader = array('UserID' => '47','Password' => 'zZa@#286#@'); $header = new SOAPHeader('http://tempuri.org/', 'AuthenticationHeader', $soapHeader); $client

How to call overloaded wsdl webservice method from php soap client

白昼怎懂夜的黑 提交于 2019-12-29 09:32:17
问题 Webservice : http://webservices.dishtv.in/Services/Mobile/Trade/TradeSubscriberInfo.asmx Overloaded method is GetSubscriberInfoV2 MessageName="GetSubscriberInfoVCLogV2" My php code is, <?php $mobileno="01523833622"; $url="http://webservices.dishtv.in/Services/Mobile/Trade/TradeSubscriberInfo.asmx?wsdl"; $client = new SoapClient($url); $soapHeader = array('UserID' => '47','Password' => 'zZa@#286#@'); $header = new SOAPHeader('http://tempuri.org/', 'AuthenticationHeader', $soapHeader); $client

Lost Connection to “iPhone”

非 Y 不嫁゛ 提交于 2019-12-29 09:24:26
问题 When i am trying to run application in the real device getting this error Restore the connection to “iPhone” and run “My App” again, or if “My App” is still running, you can attach to it by selecting Debug > Attach to Process > My App. Actually getting this problem when loading bunch of images(nearly 35) into CollectionView from web service. But not getting this problem when i am running in simulator. 回答1: This could be a memory issue if you have images of very high resolution. Check the

How to submit multiple entities to the post method from jersey client program?

时光毁灭记忆、已成空白 提交于 2019-12-29 08:58:09
问题 I am trying to pass multiple entities to the web service method. The web service method has two parameters of pojo entity type. I am able to post only one entity to the web service method. I am unable to post multiple entities to the web service method. Server side code: @POST @Path("/test") @Produces(MediaType.APPLICATION_XML) @Consumes(MediaType.APPLICATION_XML) public void testMethod(Emp emp, Student stud){ ... } Client side code: ... ... Emp emp = new Emp; Student stud = new Student();

How do I POST a JSON formatted request to GET JSON data from a URL in R into the data.frame in a less verbose manner?

梦想与她 提交于 2019-12-29 08:10:40
问题 I have written the following code in R to start using a data request API. It's a normal web service JSON API. library(RJSONIO) library(RCurl) library(httr) r <- POST("http://api.scb.se/OV0104/v1/doris/sv/ssd/START/PR/PR0101/PR0101A/KPIFastM2", body = '{ "query": [], "response": { "format": "json" } }') stop_for_status(r) a<-content(r, "text", "application/json", encoding="UTF-8") cat(a, file = "test.json") x<-fromJSON(file("test.json", "r")) mydf<-do.call(rbind, lapply(x$data, data.frame))

Blank value in web service for Int64 type

一世执手 提交于 2019-12-29 07:41:37
问题 I consume a web service that has a numeric element. The Delphi wsdl importer sets it up as Int64. The web service allows this element to be blank. However, because it is defined as Int64, when I consume the web service in Delphi without setting a value for it, it defaults to 0 because it's an Int64. But I need it to be blank and the web service will not accept a value of 0 (0 is defined as invalid and returns an error by the web service). How can I pass a blank value if the type is Int64? 回答1