web-services

Getting started with JSON and the Yelp API.

I'm trying to use the Yelp API to get local restaurants depending on the user's latitude and longitude. The trouble is that I'm quite sure how to do this. Looking at the page that I need to retrieve the data from, it says that the type is text/plain. Can I use Ajax to do this or will I not be able to since it is a different domain? E...

How can I bind the results of Web service to a ListView?

Hi all, I'm new to ASP.NET so I apologize if this is a basic question. I have a Web application. This web application has a ListView on it. From this web app I make calls to a web service which returns data from a database. I return the data from the web service using the following format: [WebMethod] public List<Record> Search() { ...

How to abort an ASMX request based on logic in the constructor?

I have a common base class from which all my ASMX webservice classes will inherit. In the constructor, I want to do some common authentication checks; if they fail, I would like to halt processing right away (subclass's code would not get executed) and return a 401-status-code response to the caller. However, the common ASPX-like ways ...

Using Json to Serialize/Deserialize TimeSpan

I'm trying to deserialize/serialize a timespan, but when the json is send it's set to 00:00:00 is this even possible to do? Thanks! -Kevin Btw, Language is C#, using Visual Studio 2008. ...

SOAP Client for Python 3

Dear Python programmers, Although this question is very popular here in StackOverflow, after spending some time here and in the Google, I still haven't find a concrete answer on what is the most appropriate way to do SOAP consuming in Python 3. I took a look at http://stackoverflow.com/questions/1534554/does-a-python-3-soap-client-mod...

Web Services. Get input data, process it at background thread

Hello guys. I've got several web-services: asmx,wcf. At couple of them there are some methods, which take a lot of time for processing, but size of input data for these methods are small and it takes not much time to transfer on the wire. I want move to not sync model. Client passes data to service, service answers that data transfer was...

PHP WebService/C# Client - Fiddler has detected a protocol violation in session. Content-Length mismatch

Please help, solving an issue between PHP WebService/C# Client. PHP WebService/C# Client - Fiddler has detected a protocol violation in session. Content-Length mismatch: Response Header claimed 292 bytes, but server sent 293 bytes. It errors on each call to the webservice due to the response size it returns. I have access to the both ...

XML web service running on Ubuntu

Hello VS Studio 2005 I have developed an application that will need to access a web service. I will be developing the web service. However, the platform will be Ubuntu running Apache Tomcat server. I have 2 questions: 1) Can I deploy a MS XML web service to run on a Ubuntu Server? 2) If I can't. I will have to develop a Java Web Se...

Converting Object to XML Cocoa

I am looking for a tutorial, description, or something that could point me in the right direction for converting an object to an XML soap request in Cocoa. Specifically I am using this to hit a .NET webservice. I do at this point have my code working but it feels like cheating and bad chi. My XMl request is basically lots of: Reques...

Consume Government Webservice

I'm attempting to pull information from the publicly accessible Recreation Information Database. The feed I'm trying to parse through is http://www.recdata.gov/feeds/RecElements/getAllRecElementsForOrgID_-1.xml (large file) It seems that the feed is a complex xml document which looks like it has a lot of references to information simila...

ASP.NET ScriptService JavaScript alias

Hi, This is more a cosmetic issue, rather than an actual "problem". I've got a solution in which I am converting a lot of PageMethods into WebService calls instead. Some of the PageMethods created a page overhead of several hundred kilobytes, so I thought I'd extract them into their own WebServices, thus reducing the page overhead and e...

JBossWS change wsdl url

Hi, I have a web application deployed on JBoss 5.1.0 with a couple of webservices. When i use the JBossWS console to see the registered service endpoints, all my webservices follow the same URL pattern: http://my_machine:8080/some_default_name/webservice_name?wsdl The problem is that i need to change the some_default_name part of the...

Web services and hibernate - how would you combine these two?

I would like to use hibernate for persisting objects through web services and am thinking of using hyperjaxb3 with Apache CXF. Do you have any other suggestion for this purpose? Edit: To clarify my question a little bit... I am using eclipse and wsgen, wsimport ant tasks to generate my service and client classes respectively. I am using...

JAXB Exception: Class not known to this context

When I call a particular restful service method, which is built using CXF, I get the following error, anyone know why and how to resolve it? JAXBException occurred : class com.octory.ws.dto.ProfileDto nor any of its super class is known to this context... Following are the service method and relevant DTOs: public class Servi...

Enable authentication in ASP.NET webservice

How do I configure .NET webservice to require all consumers to supply credentials, then verify their validity against database table? ...

Python webservice client

Can anyone make a webservice client in python from the following JAX-WS API? https://109.231.73.12:8090/API?wsdl As I'm running this of a virtual server it's self signed. Both the username and password are 'querty123' We can get it to work in php just fine not python. So a working example explaining how you managed to do it would be ...

Multiple route values

I'm working on a project that requires me to sort a column of a list and the list is several pages long. Currently, when I sort, everything sorts correctly, and when I go to the next page, it does just that. My problem is that once I sort and go to the next page, I lose my sort value. I'm using the ActionLink Html helper method to gen...

XML Comments not appearing in WCF Service

Hi I have a WCF service and commenting my operation contracts as below: /// <summary> /// Call to topup a card. /// </summary> /// <param name="topUp">The TopUp object which specifies the card to topup.</param> /// <returns>Returns a boolean indicating whether call has finished successfully. </returns> [...

Calling multiple web services asynchronously from a web page

Can I make an asynchronous call from one web service to another web service deployed on different server? The scenario is that an ASP.NET webforms page will call a web service in an async manner. This particular web service will then make another async call to a second web service deployed on different web server. This this possible t...

Can a .NET 2.0 Web Service handle a call from a client when the SoapAction is missing?

We have a .NET 2.0 web service (.ASMX file). This web service is being called by a Java client and they are not passing in a SoapAction header. This causes our web service to fail with the error: : "Server did not recognize the value of HTTP Header SOAPAction: ." There is no chance that I can convince the development team in charge of...