web-services

asp.net webservice with jquery on different domain

Hi Friends, I got to work on PHP app which requires a webservice call to an Asp.net webserivce. Client insist to call this webservice with POST directly via jquery. My knowledge says its not possible to call different domain webservice from JS and I'll have to create a proxy page to consume this webservice. So I just want to confirm,...

Is Tomcat middleware?

So I have a client that needs to be running tomcat for various things (Solr and a webservice as well) and after having a meeting with him and another programmer on the project, I got a little confused. The other programmer was throwing around buzzwords and saying things like "We need to have middleware for tomcat." In response to this, m...

Dynamic URL from WCF Web Service

I'm trying to serve up Excel documents that I have stored in a database via a WCF RSS feed (the user clicks a link in the feed and it sends down a specific Excel document). The Excel files aren't sitting in a directory any where (in which case I could just give each user a static URL). So what I'd like to do is have a dynamically ge...

How to save logins in a winfrom application?

Hi All, I have a winform application and a list of logins to some web-service. Upon checking 'remember me' I serialize a dictionary into a file along with the encrypted password, but I wonder if this is the best practice to do such a thing or not.. Here's my code public void LoginsInit() { FileStream file = new FileStream(loginsFileP...

What is the best way to design big WCF Duplex Services with a Silverlight application?

Hello, I am currently working on a silverlight application, more precisely a game, that has 2 states : Lobby and Game. I created my service application to reflect that structure. I created a LobbyService to handle all lobby related operations and a GameService to handle all actual game operations. On top of that, I have a third service...

Async web service call from asp.net 2.0 web client to WCF web service (async issue)

Hello, I am trying to make async web service call from asp.net 2.0 web client to WCF web service. I created the proxy class using the svcutil.exe with the async option. Here is an example of the client code calling the web service: protected void Page_Load(object sender, EventArgs e) { WSClient client = new WSClient(); Asyn...

I want to upload a file in server by using web services in c#

I have developed an application which is uploading a file in my system.Now i want to upload in another system or server. I have given the path of another system but iam getting forbidden 403 error. how to resolve that error. Any suggestions plz. ...

Generate webservice from wsdl

This is maybe a really simple question, but I couldn't locate an answer: For a client I need to HOST a webservice. The client has sent me a wsdl file that the webservice should 'implement'. How do I go about that? I've generated any number of client-rpoxies but this is the other way around. I can use both ASP.NET 2.0 webservices or Wind...

Java concurrency : Making webservice access threadsafe

Hi I'd like to know the correct / best way to handle concurrency with an Axis2 webservice. Eg, given this code: public class MyServiceDelegate { @Resource UserWebService service; // Injected by spring public CustomerDTO getCustomer() { String sessionString = getSessionStringFromCookies(); service.setJSES...

Do the Amazon web service APIs support barcode/UPC queries?

I skimmed through their documentation and found it a bit overwhelming at first. I know you can search for items by entering a UPC (the number below a 1D barcode), but I couldn't find a word about it in the API. What I want to do is perform a product lookup by doing a UPC search after scanning a barcode. ...

How to connect to a web service in the same solution from javascript

I have a solution with several projects, one a web site the other a separate web server. (They will reside on different hosts.) I need to connect to the web service from some javascript in the web site. However, although this seems like an obvious, easy thing, I can't seem to get it right. My web service works fine, I can connect to it f...

Testing WCF service with Fitnesse, should I add WebReference??

I want to use Fitnesse to do a subsytem testing of a WCF service. Now to test a WCF service should I add the 'WebReference', and to add the webreference I require to host the service somewhere? I believe Fitnesse as a new consumer to the service and it should add the WebReference. ...

"Smart" way of parsing and using website data?

How does one intelligently parse data returned by search results on a page? For example, lets say that I would like to create a web service that searches for online books by parsing the search results of many book providers' websites. I could get the raw HTML data of the page, and do some regexs to make the data work for my web service,...

Add permission levels to sharepoint list using Web Services

Hi, I need to add permission levels to a list like: Full Control, Contribute, Manage Hierarchy, view Only, etc. I see here: "programatically add user permission to a list in sharepoint", that this can be done using the Object Model. How would I do the same using Web Services? I tried using the permissions.asmx web services, it works for...

How to call a Web Service Method?

I have a web service that contains this method: [WebMethod] public static List<string> GetFileListOnWebServer() { DirectoryInfo dInfo = new DirectoryInfo(HostingEnvironment.MapPath("~/UploadedFiles/")); FileInfo[] fInfo = dInfo.GetFiles("*.*", SearchOption.TopDirectoryOnly); List<string> listFilenames = new List<string>(fInfo....

Restful vs Soapbased

Friends, If I need to make a choice between using Restful versus Soap based web services, what factors should be considered in making this choice. Assuming that my applications can support both Restful and Soap based web services - what pros and cons need to be considered ? Thanks, avajurug ...

To poll or not to poll (in a web services context)

We can use polling to find out about updates from some source, for example, clients connected to a webserver. WCF provides a nifty feature in the way of Duplex contracts, in which, I can maintain a connection to a client, and make invocations on that connection at will. Some peeps in the office were discussing the merits of both solutio...

Sharepoint GetListItems preserve whitespace?

I am using the Sharepoint Lists.asmx web service to read some data from a list, with the GetListItems method. This is all working fine and as expected, but when you retrieve a field with a large amount of text, the whitespace and linebreaks are not included in the XML node. Is there an option to include this whitespace in the return XM...

What can cause a two minute delay in calling a webservice?

We have a .NET 3.5 app that calls a webservice on server. In nearly every installation of this app, the whole request/reply process takes about half a second. In one particular installation, these requests are mysteriously taking almost exactly 85 seconds (within half a second). My first thought was that the webservice client was ...

Returning .net Hashtable from a JQuery ajax request

I have a webmethod that returns a Hashtable through a jQuery ajax call along the lines of: $.ajax({ type: "POST", url: webMethod, data: {} contentType: "application/json; charset=utf-8", dataType: "json", success: function(json){ **alert(json.d);** }, error: function(XMLHttpRequest, textStatus, errorThrown)...