web-services

Jquery autocomplete webservices - what am i doing wrong??

I created a class for JSON responses: public class PostCodeJson { public String Text { get; private set; } public String Value { get; private set; } #region Constructors /// <summary> /// Empty constructor /// </summary> public PostCodeJson() { this.Text = String.Empty; this.Value = Strin...

Choosing between JSON and XML

Previously I used XML soap for data exchange in my web services, But switched to json for another project. Now I cant seem to find a reason to go back to XML, primarily because of the response size difference for large objects. In what case would you need to use XML over json for web service response? ...

Versions of Enum

Hi, I've got Enum: public enum ObjectType { Country=0, Region=1, Province=2, City=3, Hotel=4 } I have two applications in two language versions, and this Enum is displaying in some place, so depends of language version I wanna displaying correct version of Enum in german version instead Country Land etc. This App...

Recommendations, Asp.Net ObjectDataSource bind result of webservice call

I need recommendations on how to solve / structure a solution to the following problem. In an asp.net web application i'll have to visualise results returned from a web service call. Im planning to use a repeater server control and bind this with an objectdatasource. The service returns a result of the form: public class SearchResul...

iphone web service access

Hi, I have .net webservice methods login and summary. After getting the result from login, I need to show second view and need to call summary method. I am following this tutorial. http://icodeblog.com/2008/11/03/iphone-programming-tutorial-intro-to-soap-web-services/ I created two new classes loginaccess.h and loginaccess.m. @impl...

Object Moved error while consuming a webservice

Hi - I've a quick question and request you all to respond soon. I've developed a web service with Form based authentication as below. 1.An entry in web.config as below. <authentication mode="Forms"> <forms loginUrl="Loginpage.aspx" name=".AuthAspx"></forms> </authentication> <authorization> <deny users="?"/> </aut...

Access a webservice behind a membership provider

I have one website that hosts a webservice which uses membership provider authorization. I would like to be able to authenticate through my webservice call from a second site without getting bounced back to my login page on the webservice site. How can I accomplish this? As a side note, it would be best for me to allow a custom rule f...

WCF Self Hosted Web Service invoke with non Navigator client

Hi, I know is not very dificult code a WCF SelHosted WebService, my problem is i am not be able to invoke it from a non navigator, i am using to test it Curl, it's the same implement in this case?: public class ddSoftWS { [ServiceContract] public interface ITest { [OperationContract] [WebInvoke( Method =...

Andromda and .Net Web Service

Im starting a new project in .net and i want to used andromda framework for code generation, i had used andromda for J2EE code generation and it works great for me, but reading at Andromda site could see that it works with .net as well, so i decided to used for my new project but i couldnt find an web services implementation with it, bas...

Authenticated WCF: Getting the Current Security Context

I have the following scenario: I have various user's data stored in my database. This data was entered via a web app. We'd like to expose this data back to the user over a web service so that they can integrate their data with their applications. We would also like to expose some business logic over these services. As such we do not ...

How to get configuration for WCF Service

I want to check whether the endpoint is defined in the configuration before I'll try to create it System.ServiceModel.ClientBase<T> sourceClient = new System.ServiceModel.ClientBase<T>(EndpointName, new EndpointAddress(discoveryUri)); To check it I need get a configuration but how can I define whether I need to use WebConfigurationMa...

How does one port c++ functions to the internet?

I have a few years experience programming c++ and a little less then that using Qt. I built a data mining software using Qt and I want to make it available online. Unfortunately, I know close to nothing about web programming. Firstly, how easy or hard is this to do and what is the best way to go about it? Supposing I am looking to hire ...

Is that a RESTFUL MVC Web Service?

I am aware of Web Services and WCF but I have generic question with services. I have a ASP.NET MVC Application which does some basic functionality. I just have a controller in which I am passing it the records and serializing the information to XML using XML Serializer. Then I return this information to the browser and it displays me ...

Secure web service works in Firefox but not in IE7

I am trying to call a C# web service from one data center to another. I am able to load the web service properly in Firefox 3.6.3 but it does not load at all in Internet Explorer 7. When I try to install the application which relies on this web service, it can't find the web service at all, just like IE7. Is there any setting or config...

Printing PDFs Server-side using Acrobat Reader from ASP.NET

Hi, I have been presented with a problem which requires me to print PDF files from a server as part of an ASP.NET web service. The problem is further complicated by the fact that the PDF files I have to print can ONLY be printed using Adobe Reader (they were created using Adobe LiveCycle and have some strange protection in them). This...

Correct use of WSDL-generated sources

How can I easily convert between manually written classes and WSDL-generated equivalents? I have a Java SE 6 thick client that calls a web service to get and store data. The client has a DAO that works with my entity classes, calls <Entity>.toDto() to convert them to DTOs, and sends/receives that data with the web service. My issue stem...

WstxParsingException: "Expected a text token, got START_ELEMENT"

I have a stub generated by WSDL2Java. I send a request and the answer that comes back (used tcptrace) looks fine. However, an AxisFault is thrown: org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxParsingException: Expected a text token, got START_ELEMENT. at [row,col {unknown-source}]: [4,1313] at org.apache.axis2.AxisFault.mak...

How to tell axis2 to use an existing object as a service?

I am trying to expose some methods of a running application as a webservice. The core idea is to use an embedded web-server and send the soap messages to the apache axis2 framework in order to invoke the services. The problem is, that axis2's createService methods only accept Classes as parameter, not existing objects. So I believe that...

free web service returning city names, city codes and time zone

Do you know a web service that's able let's say get a full list of cities in the world with names, short names like PAR for Paris and time zones? Or at least query by city name: Paris -> timezone=+02:00, abbrev=PAR Also, what I see here: http://www.earthtools.org/webservices.htm#timezone offset The number of hours offset from UTC dis...

What webservices are available to obtain miles between two addresses?

Hi, I need to find a way to get miles (not a straight line) between two locations by passing the post addresses. If you consider the simplicity of implementation, efficiency and stability, which webservice(s) you can suggest? I would appreciate if you know any possible comparison list of relevant web-services. Thanks ...