web-services

Webservices are stateless?

Why do we say that web services are stateless? ...

Web service platform for communicating with android app

I want to create a very simple rest-like web service to be used by an android application. The web service just needs to offer a way to add user entries to a simple database and retrieve other users' entries. What would you recommend as a platform to accomplish this? I was thinking google app engine might be a good way to get this go...

Help in webservices

Hi i am new to webservice. I am asked to read the project code. I found the following code @webservice() @webmethod() public void hello(@webparam(),parameter) here wats the use of @webparam and @webmethod. Because @webservice itself is enough rite ? it will be good if someone give some beginers link for webservice. ...

Easiest way to expose COM+ via web service

I have a COM+ object which is not stateless (it takes a while to initialize, and maintains large objects in RAM). I want to expose its functionality to other applications / hosts via web service or TCP/IP. I saw that COM+ Component Services have a built-in capability to create SOAP wrappers and attach them to IIS. However, it looks lik...

Web Reference Code generator template.

I Have an internal SOAP Web service that is being called from an external REST service in .NET it works fine however I am simply passing through the SOAP objects of the REST Layer but the automatic generation of the WebReference Code in Visual Studio adds the 'field' to the end of every attribute. basically it makes my XML look all nas...

Post XML to a web service

I have a web service, which accepts XML input. What I am trying to do is setup an aspx page which posts xml to the service. Here is my code so far, but I am getting an error 400 (bad request) when I try to submit... Imports System.Net Imports System.IO Partial Class _Default Inherits System.Web.UI.Page Protected Sub Submit_Cli...

File.ReadAllLines doesn't work at webservice

Hi, I wanna do read all lines from txt file and I use to it File.ReadAllLines. At winforms it works fine. But, when I', trying do the same at webservice at webmethod it crash System.IO.FileNotFoundException: Nie można odnaleźć pliku 'C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\nameOfFile.txt'. CopyOutputToDire...

Any web services with APIs for outsourcing webapp email?

My webapp needs to send customized messages to members and I'm wondering if there is an inexpensive and easy to use web service that would meet my needs. The types of mail I will be sending include: New account activation email (sent ASAP) Daily status report of user's account (sent anytime) Event reminders (sent at specific time) Sp...

CakePHP missing Method/Controller errors returned in XML? Possible?

I am implementing a web service as part of an app I am building and would like all errors returned in XML when the initial request is XML I found this article: http://www.cake-toppings.com/2009/03/31/displaying-custom-error-message-with-the-right-http-response-codes/ And while I have it working if I manually fire the error, I want to ...

Is it possible to use HTTPS certificates for licensing?

I am working on an application with multiple clients and a server running various web-services for the clients. To implement licensing I am thinking about using HTTPS as a protocol for the web-services using certificates that are issued by our company. By influencing the expiration date of a certificate for a client we can prevent them f...

Permissions for writing a file

Hello, I've the following issue I've a windows application It calls a remote web service (for authentication) It in turns call a web service (in the same remote machine) (to get a licensed file) It saves the licensed file in All Users/Application Data in the system where the application is running Which permission is used for saving...

Contract discovery in WCF after Service Contract Inheritence

The old version of the WCF was delivering according to the old version of the interface <endpoint name="ServiceName" address="http://production.server/Service.svc" binding="basicHttpBinding" bindingConfiguration="myBasicHttpBinding" contract="myAPI.IOriginalService" /> with the new version delivering <endpoint name="ServiceName...

Securing communication from android to a web service

I'm a relative newbie to web and mobile development and especially to security so obvious answers are still appreciated. I want my android app to be able to log in to a simple web service with a username and password. What's the best way to send this information securely and keep the user logged in for an entire session? ...

Implementing a Single Sign On solution for web applications?

I am wanting to test run a Single Sign On web authentication for my University (currently a student employee), I have been reading a lot about WebAuth used by other Universities. While I think the solutions are great, we are a very 'small time' University, but the current login system and authentication is horrible for the user experi...

Graceful maintenance of web applications...

Yesterday's Stack Overflow downtime got me thinking about this a bit... I live in Australia (though this is probably true for most people in a non-US timezone) and am constantly greeted with "... is down for maintenance" right in the middle of my work day. In fact, in the last week we've had Google Wave, SO and Campfire all take turns ...

Share object instance between web service invocations

I have an object that has relatively high initialization cost that provides a thread-safe calculation method needed to process web service requests. I'm looking for the best way to keep an initialized instance available between requests. One method is to declare it as a static variable. It would then remain available until the AppDoma...

JAX-WS - Adding SOAP Headers

Hello, I am trying to create a standalone client to consume some web services. I must add my username and password to the SOAP Header. I tried adding the credentials as follows: OTSWebSvcsService service = new OTSWebSvcsService(); OTSWebSvcs port = service.getOTSWebSvcs(); BindingProvider prov = (BindingProvider)port; prov.getRequest...

How to execute a service once the Grails Server is ready

I have a Grails application which provides dummy webservices for itself. In the real world it could call webservices on another machine, but during development and testing we need be able to access the internal webservice to populate tables. This can't be done during the bootstrap as the internal webserver has not started yet (Grails doe...

Micrsoft Silverlight 3 cannot create service reference to localhost:port

Windows Server 2003 (IIS 6) Visual Studio 2008 .NET FrameWork 3.5 SP1 I am a .NET developer for a living and I have over 40 hours in the problem Project type = "Silverlight Navigation Application", "APS.NET Web Site" (when I tried it as "ASP.NET Web Application Project" I could not copy it to the production web site - well I could copy ...

consuming SOAP in ASP.Net: org.xml.sax.SAXException: ...could not find deserializer for type

I'm trying to consume a SOAP web service WSDL in ASP.Net(C#) from https://secure.ultracart.com/axis/services/AffiliateServiceV1?wsdl so in Visual Studio 2008 in Asp.Net I right-click and "Add Web Reference..." and I feed it my WSDL url and it seams to add it ok to the project, and the classes show up in IntelliSense fine, so I write the...