Hi here I'm trying to call a [webmethod] on bodyunload method.
But it is getting fired on page load itself only. How do i prevent it?
Here's the code I am using:
[WebMethod]
public static void AbandonSession()
{
HttpContext.Current.Session.Abandon();
}
<script language="javascript" type="text/javascript">
//<![CDATA[
function H...
Hello Friends,
i have been tasked to write a new web service with returns list of Addresses
to do so i have created a class as bellow
[Serializable]
public class AddressDataCollection : List<AddressData>
{
private long m_ErrorCode;
private string m_ErrorMessage;
public long ErrorCode
{
get
{
...
Hi all,
I have a webservice with a bunch of methods that i'd like to somewhat secure.
The data is not really all that confidential, but i'd still like to restrict access to only those who use a certain user id and password that's stored in the webservices web.config file. A c# windows service client will be calling this webservice once ...
I want to test whether wcf endpoint is reachable or not. Only available data is URI address to the service.
Can I connect to service to check whether it exist without creating the Client Proxy of service?
I want to do programmatically
bool EndpointReachable(UriAddress)
Also service can be net tcp
...
Say I have a web service that works with a database. Each method opens the database, and then of course closes it on exit.
Is there any method to move the open/close code outside the web method itself? Something like OnBeforeWebMethodCalled / OnAfterWebMethodCalled.
So instead of
[WebMethod]
public void Hello()
{
OpenDatabase();
...
Call me a troll if you want, but I'm serious -- how exactly is the new SOA trend any different than the client-service architecture that I was building 15 years ago? I keep hearing SOA but I don't see how it's different than what we've always done. Back 10 years ago, ,y company had multiple clients (in multiple languages) which talked to...
Part of our website is protected with .htaccess style password protection. When you try to access this area of the website the web browser pops up a dialog asking for your username and password.
I need to access this programatically (eg with an ajax call). How does the server tell me it needs a password and how do I supply it?
...
I've got a customer who wants to pass in a large string to one of our web services, beyond what it is really intended for, and it seems to be truncating data somewhere along the line. Is there a maximum size for strings in web service calls?
It would be nice to say, "this isn't technically possible" rather than argue merits of limiting...
There are some applications in Silverlight 3 and WPF which communicate with data web services (based on WCF).
It is necessary to protect data web services. Only known users should have access to the data.
Solution will work in local network without access from outside.
Client connects first to authentication web service (providing user...
Hi!
I have a class library (.NET) with a reference to a web service (in some server, not a project in the same solution). The class library has a class that is exposed to COM. This class invokes the web service.
When I add the service reference, this adds code to the class library's app.config.
I also have a desktop application in the...
Let us assume I'm using communicating from my mobile device to my server via WCF web service. I could also do this with a standard web service as well.
I have read the WCF Guidance for Mobile Developers (http://wcfguidanceformobile.codeplex.com/), the only thing I see there is WCF has SSL support while straight web services do not.
No...
How can we use Web services in Android Applications?
...
I have zero experience with COM. I actually never thought, I'll need to do something with COM, thinking it's something that I luckily managed to avoid. Oh, well.
I need to create a wrapper for Web Services, which could be used from COM. I was hoping, that it's a solved problem, but failed to find an easy solution (for example: just gene...
I am new in Blackberry. so can anyone help me out for following queries.
Which SDK is used in Blackberry?
in Which language Black Berry application develope?
and Can we call Web service through BlackBerry application?
...
Does anyone have any experience with card on file services for credit cards, that handle the storage of credit card information for ongoing purchases?
We are looking for a solution that can be integrated with a custom ASP.NET app via a web service or similar but removes the storage of the info from our side of the equation in order to r...
I'm looking for some guidance on the best way to authenticate to my WebService. Right now, I have a standard WebService on .NET 3.5, and a MVC website that sits on top of this WebService.
The MVC website uses OpenID to authenticate users, and during the development phase, we have simply been passing the user's OpenID Claimed Identifier...
I am looking for a solution to upload a file from a client to a server connected through a web service.
The client is written in c# and the web Service in java.
The files can be rather large < 100MB.
What approach would you suggest is best ?
...
I have a jar file that is used by several applications - by including the jar file within the application ear as a utility jar. I would like to expose the function provided by this jar file as a webservice.
Currently, the APIs in the jar file are called from other components within the application/ear. The API exposes an interface as on...
Having been primarily a .NET guy up until starting a new job recently; I've only done Web-Service development and consumption in C#/.Net. However I'm embarking on the journey to learn the ins and outs of doing it on the J2EE platform, and I'm curious what the major differences are in this specific type of development.
Note: I have famil...
I've written a fairly simple little C# web service, hosted from a standalone EXE via WCF. The code - somewhat simplified - looks like this:
namespace VMProvisionEXE
{
class EXEWrapper
{
static void Main(string[] args)
{
WSHttpBinding myBinding = new WSHttpBinding();
myBinding.Security.Mode = SecurityMode.None;
...