web-services

API to Get Current Average Gas Price in United States

Is there a web API available to get current average gas prices either nationally or locally given say a zipcode? Preferably something I can use with Javascript, that would maybe give me some XML or JSON or something. I am looking for United States info particularly. ...

How to get the Soap XML from a web service and store it in a string?

I have web service written that generates some data...can I call the web service in a way that i can store the xml soap representation of data...instead of actually calling the method that returns the actual data..i want to store the xml representation in a string ... ...

Is this 'layering' of my web-service correct? Can it be improved?

I am writing a Web Service to retrieve Invoice information from a database table. The specifics are as follows: I intend to give InvoiceAgentId as input and retrieve PayerId,PayerName, EffDate and InvoiceAgentId. Now, 1. In the InvoiceInfoSearch.asmx.cs file I have the WebMethod ... GetInvoiceInfo 2. I have the DTO objects InvoiceInfoReq...

What are the Advantage of WCF Service Over WebService 2.0 in Performance?

I Want to know the Advantages of WCF Service and Webservice 2.0 in performance wise, Please give me some imprtant links to know more about this. ...

Android app syncing with remote service

Hi, is there any possibility to sync local database on android device (sqlite) and remote database over the air? For example - to sync tasks between device and web application. ...

Calling PHP Webservice from C# using supplied WSDL

Hi, Ive been passed a WSDL from a third party. Their web service is PHP on Apache. I can call its methods from within XMLSpy and Validwsdl.com. But cannot get my C#/Visual Studio project to build/validate the WSDL. When I add it to my project - it shows all of the methods and seems fine but wont build. Ive tried add web ref, add servi...

Android/Java: Simulate a click on this webpage.

Hello all Last year I made an Android application that scrapped the informations on my train company in Belgium ( application is BETrains: http://www.cyrket.com/p/android/tof.cv.mpp/) This application was really cool and allowed users to talk with other people in the train ( a messagery server is runned by me) and the conversations wre...

Accessing XML payload of Metro 2.0 Request/Response Web Service

I am developing a web service, using Metro 2.0 and Tomcat 6, and I have a requirement to be able to log the XML payload of the request and response of a web method for development/support reasons. The payload would only be logged when in debug mode. The Web Service uses a servlet implementation (com.sun.xml.ws.transport.http.servlet.WS...

I'm having problems creating a web service that takes a username and password and checks against a database

I am developing a web service that authenticates a user trying to access a web application. I'm new to web services and have seen a lot of different APIs and have started using JAX WS. Im not sure if this is an alternative to JAXB or if it should be used with it. Currently I have a test page that a user can enter their username and pass...

How to authenticate .NET2 Webservice with a SQUID proxy

I've got a little utility that is a SOAP WebService client. The SOAP-proxy is generated from WSDL. It was working fine. Now the customer wants to use a SQUID proxy, but that refuses to authenticate my SOAP client. I have already tried: MyWebservice ws = new MyWebservice(); // set URL etc. // login for the actual service, this part...

.NET - Using WebClient.Download File in a One-Way WebService

I have a simple one-way web service in my C# .NET web application. I need to download an image from a given URL and save it to my server. However, every OTHER time I call the service it works perfectly. The other times I get a "Thread was being aborted" exception on the webClient.DownloadFile line. I've read that WebClient uses httpWe...

Making a reliable web service unreliable, but in a controlled way?

I have a Java 6 based web service client using the standard Java 6 annotation based approach (i.e. no Axis or other third party web service library), which works very well. So does the web service I am calling, which is nice, but now I need to write error handling code, and I need to be able to make the existing web service unreliable i...

Access SQL database from Android?

I understand that to access a SQL database from Android I need to create a web service that will run on the SQL server and will process requests from the Android application, what I need to know is how to create this web service and how to access it from Android. If anyone can point me in the right direction then this would be greatly ap...

Use same DTO library on client and server with asp.net webservices

Hello I have a (silverlight) class library containing plain DTO classes. For this example "Person". I have a ASP.NET Webservice (.asmx) that returns a List of Person. Now on the consuming side (silverlight) I want to generate a client stub for the webservice. This works ok, however, it generates a NEW Person class for me.. I want to r...

Do I need to close a .net service reference client when I'm done using it.

I'm trying to find out if it is neccessary to close a .net service reference client when you are done using it. Almost all of the examples that I have come across on the net don't seem to, but the client that is generated implements IDisposable and since it does open a connection to a service, my intuition tells me you need to close tha...

Webservices vs WCF

I am working on an asp.net application (.net 4 framework) design and was wanting to know what are the pros and cons and best practices for using webservices vs WCF techology? This application will eventually be used by outside clients to consume data. When would you use WebServices and when would you use WCF? Is one more scalable than t...

SVC WebService works over HTTP, fails over HTTPS

One of my colleagues is having a problem with an AJAX call to a .NET WebService. The call works under HTTP, but the same call is having a problem under HTTPS. The webservice is written in .NET 4.0 with C# on an IIS 7 server. The secure website is at https://sql.data-rx.com/grouppharmdrugsearch/. There is an unsecured version at htt...

HttpContext in Webservice class

Hi, Am trying to use HttpContext.Current in a class inside a webservice - C#, but after adding reference, including System.Web namespace, i don't get HttpContext inside the class, i keep getting HttpContext does not exist in the current context. Any thoughts? Thanks. ...

Web service hangs if processing longer than 10sec.

I have very simple web service which is not doing anything but receiving numeric value interpreted as a number of seconds to sleep before responding with "OK, I'm done". If the nap time is set to be longer than 10 seconds, client never receives any response. I tested it on Tomcat (5.5 and 6) with Axis2 (1.4 and 1.5) and WAS 6.1 with FP (...

How can Excel 2007 / 2010 consume a REST web service?

What options exist to consume a REST web service from within Excel 2007 / 2010? I can use XML Maps to consume a basic XML list, but that doesn't let me build a dynamic URL (so I could include parameters). For example, I can add an XML Map to Excel for http://machine/service/level/5 and display the values in the workbook just fine - no ...