web-services

axis2 Web service. Where to put my own configuration

I have written a Web Service in Java using axis2 and the POJO deployment (to a Tomcat server). My service opens a connection to a MySQL database. To do that, I need the connection string. Where do I put the connection string, so I don't have to hard code it into the code? And how do I access it from code? I would like to set this paramet...

EndpointNotFoundException in webservice call from website, but not from console application

I'm getting this EndpointNotFoundException on a webservice call from a website, while the same exact call works if I do it from a console application. Here's the more detailed exception message: Could not connect to https://******. TCP error code 10060: A connection attempt failed because the connected party did not properly respond aft...

Managing session timeouts in ASP.NET

I have a ASP.NET 2.0 Web Application talking to multiple ASP.NET 2.0 Web Services. Both use ASP.NET Sessions to persist session data. To warn the user about session timeouts of the app, I use a modified version of Travis Collins's Timeout Control to show a ModalPopupExtender titled 'Your session is about to expire' and buttons 'Stay Log...

SPContext.Current is null in a web service under a sharepoint site

I'm exposing a web service in a SharePoint site e.g. http://server/_vti_bin/subdir/mywebservice.asmx. In the web service method, SPContext.Current appears to be null. (Interestingly, I'm looking at an example in Chapter 5 of Inside Windows SharePoint Services 3.0 and they use SPContext.Current inside a web service!) Any idea what am I...

Is this a JBOSS web service? Tomcat? How to create a server.xml file?

I am working on a webservice that a previous employee built and I am just trying to figure out what documentation I need to be looking at. I think that the webservice is using JBOSS and therefore using Apache Tomcat. In the project there are several webservices so it is somewhat tricky to tell which is using what. (What are shared file...

Why did .NET's EnableDecompression default value change between 2.0 and 3.0?

We use .NET Web Services--both non-WCF and WCF, though the overwhelming majority is non-WCF, for legacy reasons--pretty heavily, and as I was testing something in Fiddler, I noticed that the response body size was pretty large. Then I noticed that the request headers didn't have any Accept-Encoding headers. After doing some digging, it ...

Best practices for sending automated daily emails from web service

I am running a web service that currently sends confirmation emails out to new users via the gmail smtp servers. As I'm only getting a few new users each day, this hasn't been a problem. I've recently added new features to the webapp that will require a customized message to be sent out to each user every day. Think of this as similar ...

Making sense of JPA and EJB3 and WebServices

I'm just getting started with JPA, creating stateless session beans from the JPA entities, then accessing the beans through a web service. While I have a lot of experience developing database backed web services "the old way", I have some questions about what's going on behind the scenes with this new "annotation driven approach". What...

Should every business object be a service?

I know performance can be an issue with web services when you compare them to direct code. But with SOA on the rise, I have to wonder if I should be planning to make every business object in my apps into a web service, either WCF or .asmx. The improvements to WCF in .NET 4 are definitely making me give is a second look. ...

How can I forward information to another website and obtain its response in Perl?

In a Perl script (with Ubuntu) I'd like to do something like use Blah; ... ... my $response = &Blah::Fetch($URL, {'method'=>'POST', 'parameters' => \%params}); which I've written for convenience to look a lot like a Prototype.js ajax call, but obviously we're using Perl not Javascript, we're on a server not a ...

Ways to do Load Testing for Web Service Made for iPhone Application

Hello All... It's something strange I am posting here, as I have little bit confusion since last few days.. I have made a web service in asp.net 3.5 using MSSQL 2005 as backend, for my iPhone Application. Now, My Database have some critical fields like longitude and latitude, based on this almost all my web service is working. Curre...

How to implement notification for windows app using .NET

I have to implement client server based app where client is windows app. Now, my plan is to create a webservice as a server app and use it in our client app. But the problem is in notification. For this, I need to add a timer to the client app to check for the notification. It slows down the client app. What is the best approach to do ...

Using C++/Qt4 application as backend for web application

Hello, for one of my applications I'd like to provide a minimal web interface. This core application is written in C++ and uses Qt4 as a framework. Since I'm also using some libraries I wrote to calculate some things and do some complex data management, I'd like to use this existing code as a backend to the web interface. Idea 1: Using...

SAP 4.6C and webservices

Is it possible to provide RFCs as webservices with SAP 4.6C ? ...

Restoring web reference in Visual Studio 2008

I had a web reference set in my VS2008 ASP.NET project, but due to some source control weirdness it is no longer listed in the project. I have the set of files in the Web References folder under my project. There's a .wsdl, .disco and several .datasource files. Is there any way to re-add this web reference through the existing files ra...

Track any asp.net web services calls from javascript

I am writing a control that will warn a user that their session is about to timeout. I can easily track standard postbacks and post packs in update panels, but I'm struggling to see how I can track calls made to any / all web services. Is there a mechanism for this, or will I have to try and override the Sys.Net.WebRequest invoke code? ...

Curious: Whats currently the recommended way of coding REST web services in C#?

So, what do the experts recommend? WCF Rest Toolkit? ADO.NET (now WCF) Data Services AKA Astoria? Hand rolling it using ASP.NET MVC? Other? Requirements are fairly vanilla: HTTP GET/POST for a small number of resource types, XML and JSON output, needs to live in the same appdomain with a SOAP ASMX web service. My criteria are: A) p...

How to send and receive an image from J2ME to a Java Web Service

I've been spending the last 2-3 months trying to get this working. I'll try to be clear to what i want, i hope someone can help. I have the image in an Image object in J2ME I want to send the image to a Web Service The Web Service is ONLY java code, i don't have access to the wsdl file. I'm writting the code in NetBeans, and i use TomC...

Silverlight is calling completed event more than once

I have a silverlight appplication in which i make a call to wcf using basichttpbinding.I have checked all the loops.The problem is that there are certain completed events which are called more than once.I start by handling the loaded event of the webservice.I am not able to find why the event is executed more than once ...

Webservice 401 error with asp.net ajax cascading drop down

Hi, Ive got a set of cascading drop downs on my page which is accessed via the HTTPS protocol. In the properties of my website the cascarding dropdowns reference the webservice like this: /services/webservicename.asmx When I use my site I go to the url e.g. https://www.sitename.com/adddata.aspx Using Firebug I can see that the page...