web-services

exposing sql server data from an asp.net webapp to silverlight and win forms via linq

痞子三分冷 提交于 2020-01-06 04:56:06
问题 I have an asp.net web app which holds its data in an sql server 08 r2 db. I have a silverlight admin interface on the same web app, and I will have a win forms app which will need to add/retrieve data from the sql db. Is there a way I can use linq in both clients? I mean something like linq2twitter, where in the silverlight or in winforms app I can use linq to query and update the data. Currently Im thinking of just using web services, but the data objects are complicated and they're

coldfusion web service issue

不羁岁月 提交于 2020-01-06 04:55:06
问题 I have the following web service call: <cfinvoke webservice="#application.capsRemote#card.cfc?wsdl" method="purchase" returnVariable="retpurchase" refreshwsdl="true"> <cfinvokeargument name="iCustomer" value="#session.user.customerCode#"> <cfinvokeargument name="iAmountCents" value="#form.cc_amount*100#"> <cfinvokeargument name="sCard" value="#form.cc_number#"> <cfinvokeargument name="sExpiry" value="#form.cc_expiry#"> <cfinvokeargument name="sType" value="PAYMENT"> <cfinvokeargument name=

File upload of CommonsMultipartFile using RestTemplate is failing

核能气质少年 提交于 2020-01-06 04:35:11
问题 I'm trying to consume a web service that accepts a CommonsMultipartFile in the request. So, I created an HTTP client using Spring's RestTemplate. Below is the method that takes in URI and a MultipartFile as parameters. I'm trying to pass this file to the web service in the form of ByteArrayResource. public String upload(String uri, MultipartFile file) throws IOException { logger.info("URI: " + uri); ByteArrayResource fileAsResource = new ByteArrayResource(file.getBytes()) { @Override public

hibernate class not found exception

☆樱花仙子☆ 提交于 2020-01-06 04:30:05
问题 before reading my problem this work in a normal dynamic web project i create a web service like this methode: http://www.youtube.com/watch?v=o2Vjs8ylmFM using CFX 2.4 and with the 2.5 dynamic web model version and when i run hibernate in this current client web project generated by the web service i get an exception this is it: Etat HTTP 500 - -------------------------------------------------------------------------------- type Rapport d''exception message description Le serveur a rencontré

Connecting to multiple web services via soap in C#

佐手、 提交于 2020-01-06 04:20:06
问题 I'm building a service that aggregates a bunch of data from multiple soap web services. There's a standard on what the web service call and soap package is supposed to look like. But of course, everybody's version is just a little bit different primarily in namespace usage. Is there any why in c# to dynamically fetch a wsdl and create the soap package based on it at runtime? I don't want to have to run the wsdl utility statically for every new service that comes online. 回答1: It is possible to

Design consideration for data retrieval : pooling vs SqlDependency and SqlCacheDependency

爱⌒轻易说出口 提交于 2020-01-06 04:05:14
问题 I am little confused in one of the design consideration. Following are my requirements: My web-application need to retrieve real time data through database. Every update in the data should be reflected back to user. A session can last for couple of hours Every user will have their personal data in the report (eg select * from user where User = ‘A1’;) There can be around 300-400 users at a time Data retrieval mechanism should be outside the main application (eg. Web services) Database is

ASMX equivalent of RegisterAsyncTask

*爱你&永不变心* 提交于 2020-01-06 03:57:08
问题 When an ASPX page needs to make a call to a potentially long-running operation (lengthy DB query, call to a remote webservice, etc.), I use RegisterAsyncTask, so the IIS worker thread is returned to the pool, rather than being tied up for the duration of the long-running operation. However ASMX webservices don't have a RegisterAsyncTask function. When an ASMX webservice needs to call a potentially long-running operation, how can I implement the same behavior as RegisterAsyncTask? Note: the

Need to create a jar out of the web service client files

别说谁变了你拦得住时间么 提交于 2020-01-06 03:53:10
问题 I have the WSDL file for a JAX-WS web service. I have created a maven-archetype-quickstart project(simple java project) and imported it to Eclipse Kepler workspace using import->existing maven project. I copied the wsdl file to the project's src/main/resources folder(created resources newly). I generated the web service client using the maven plugin <plugin> <groupId>org.apache.cxf</groupId> <artifactId>cxf-codegen-plugin</artifactId> <version>2.7.11</version> <executions> <execution> <id

Error on TIdHTTP on Setting Host and Port at Runtime for SMS web service delivery

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-06 03:43:05
问题 I am trying to use an SMS API for Delphi from http://www.human.com.br but I get an 'access violation' error when the component tries to set the host and port of the webservice after creating an instance of Indy's TIdHTTP . host := TidHTTP.Create; host.Socket.Port := 80; // error right here! host.Socket.Host := 'system.human.com.br'; uri := TidURI.Create(); The original component was created in Indy60 and I have Indy170, so the was no Socket between host and Port and I had to put it. What is

Do I need to update WCF service references, when making an agument optional?

巧了我就是萌 提交于 2020-01-06 03:38:04
问题 We have a webservice that is used by a lot of other processes. It takes an object (made from an XSD) as an argument. One of the properties (a datetime) in this object is now made nullable. The question is: Do I now have to find all of the processes that reference this webservice and update their reference, in order for them to keep working? Thanks. 回答1: This is a tricky question. I am thinking you should be fine because you are not removing or add new parameters to the interface. It is just a