web-services

Making a method generic inside an Interface

I want this method to be implemented however the implementer wishes in his/her subclass. This method resides in an Interface: object GetResponseData(object response); I put in object, because I figured if I do this, then they can specify whatever they want as the incoming response type and decide what they want this method to return....

What is the easiest way to integrate iPhone app with Web Sites that don't have web service

I am about to offer an iphone app for a travel agency. They probably use web services but if not what can I do? What is the easiest way to integrate an iPhone app that read and send data to a website without web service. Site is built with php (I dont know php am a java guy). What can I do for that? Client is a travel agency has a websit...

Ajax inside MOSS 2007 Web Part

Hi Guys, I am creating a web part in MOSS 2007 that contains an autocompleteextender. I have ajax-enabled my site by adding all the configs in web.config (Example here) My web service: [System.Web.Script.Services.ScriptService] public class AutoComplete : System.Web.Services.WebService { [System.Web.Services.WebMe...

json client in java for Restful service

Hi, Typically I have been using xml web services and have used JAXB for marshalling/unmarshalling the xml. In this case, I have an xml schema for generating the classes and then at runtime I simply deal with java objects and not with xml since that unmarshalling is done under the covers for me. What sort of libraries exist for doing so...

How to set HTTP cache-control from .net web service?

I have a legacy C# web service (class inheriting System.Web.Services.WebService) with a series of WebMethods like so: [WebMethod, SoapHeader("header", Direction=SoapHeaderDirection.In)] [SoapDocumentMethod("http://www.myservices.com/Services/1.1#getMediaMetadata")] public MediaMetadata getMediaMetadata(string id) { return new MediaS...

Securing MVC Rest + Soap Service with a single key strategy

I have an asp.net MVC 2 site setup to provide an API json/xml responses eg [GET] /Product/10 Returns an xml response of a product Additionally, I have a WCF SOAP service embedded into the site which returns the same methods (same contract) but via SOAP eg GetProduct(10) Returns an xml soap product. I chose this route because I li...

Documenting WCF Web Services

I would like to create/generate documentation from (somewhat)RESTful WCF Services. By somewhat RESTful I mean the client will use HTTP GETs and HTTP POSTs to communicate with the server (limited to just these verbs due to hardware limitations) I like the way Twitter released their documentation: http://dev.twitter.com/doc/get/statuses/u...

Same class comes within different web services

I have 3 different web services work with same class library. These three web services return same class type object. But on the client side, I'm getting 3 different object type even they are same. I can't treat them like one class type. I think i will add a method which can take object and sets properties with object's props. Is the...

In what context are angle brackets escaped with backslashes?

Hello, a bit of unusual question - in what context are angle brackets escaped with backslashes? I am sending an XML document (as a string xsd type) through a web service, which saves it to database, but there I see all XML's angle brackets escaped with a backslash, so I am wondering where exactly (Java XML creation using DocumentBuilder...

Building web services and updating client application with MSBuild

I have a solution that contains two projects (web services and client application). When i built solution, i always need to update Web References manually (web service's proxies). Is there any way to do it automatically with MSBuild? ...

Get current domain in ASMX

In C# in an asmx web service how do I get the current domain that the webservice was called on? HttpContext.Current.Request.Url.Host returns kindof what I want but instead of http://mydomain.com/Folder/Mywebservice.asmx I just need http://mydomain.com. I know i could just cut that string up but it seems really in-elegant. Thanks ...

How to override Wsdl generation in Web Services .Net

Hi, I would like to create a WebService in .Net who expose multiple WebMethods I need a WebService version per new implementation (WebMethod or New Property in Business Object), like this : [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] public class Service : System.Web.S...

C++ Soap Toolkits

Hi, I am looking for a SOAP toolkit which i can use with C++ language on Linux system.I have taken a look at AXIS2C and i find it poorly documented. gSoap unfortunately requires a license, so are there any others which are out there ? Cheers! ...

Call a web service from inside or outside the model?

I'm looking for a bit of guidance on the architecture of an application I'm creating. Here is the situation: Our company gives out reward cards to salesmen which are then handed out to customers (used like a debit card). For tracking purposes, the salesman must request activation from our system before the card can be used (providing in...

How to avoid IE warning message when consuming a web service using jQuery

Hi, someone kindly posted the following solution to consuming web services from this question at this link: http://stackoverflow.com/questions/230401/how-to-use-jquery-to-call-an-asp-net-web-service/3407545#3407545 function InfoByDate(sDate, eDate){ var divToBeWorkedOn = '#AjaxPlaceHolder'; var webMethod = 'http://MyWebService/Web.asm...

Spring-WS: SimpleWsdl11Definition with a multi-node taxonomy for WSDL

Spring-WS 1.5: Using SimpleWsdl11Definition, exposing a WSDL is straightforward (from Spring-WS doc) in XML configuration: <bean id="orders" class="org.springframework.ws.wsdl.wsdl11.SimpleWsdl11Definition"> <constructor-arg value="/WEB-INF/wsdl/Orders.wsdl"/> </bean> Yields a URL exposing the WSDL at: http://localhost:8080/spri...

App.config setting not updating web service end point

In Visual Studio 2010, I have a web service reference added. In the app.config, it is registered as follows: <applicationSettings> <Project.Properties.Settings> <setting name="Project" serializeAs="String"> <value>http://myurl:8080/FileSystemIOService&lt;/value&gt; </setting> </Project.Properties.Sett...

web service getting started

Hi all I have to implement a web service in my work, the problem is that I don't have any idea what a web services is. Can you give me some references to get started and to understand what people are asking me for? Maybe some good book also ... Thanks. ...

Android application security when accessing a web service.

I'm building an Android application that needs to communicate with a MySQL database. The application isn't meant to be published, and I want the application to be the only thing allowed to interface with the web service I'll create for DB access. I've been thinking how I can secure the system, and this is the idea I've come up with. I'd...

Cannot access a disposed object

I am writing a tool to integrate with a web service, I have a method which just builds an ImportExportSoapClient object which is used to call the API methods for the web service, but when I call one of the methods I am getting Cannot access a disposed object System.ServiceModel.Channels.ServiceChannel? anyone had a similar experience or ...