web-services

How can I recover a class from the DataSet that it was cast to by the Web Services proxy class?

Background I have made a Web Service in Visual Studio, and I'm trying to consume it using the automatically generated proxy class. The Web Service returns a class that I have implemented, containing a List. Question The proxy class has automatically generated methods to send the SOAP to the web service. It uses the Invoke() method to ...

How to effectively authenticate the user calling a webservice?

Hi, In a multi-server environment, users will be able to use a page to put, update or delete files on the servers. I was considering using a webservice (on each server) called by the IIS thread to do that work (with an aspx management page). However, for obvious reasons, I don't really want anyone to be able to call that webservice (by...

Compressing web service request

I have a webservice and client in c#/dotnet and I am using EnableDecompression to gzip compress the responses that I get from the web server. Is it possible to compress the requests as well? ...

HTTP 403 Error while accessing web service

Im trying to access a web service from a remote computer. I managed to access the web service from the browser. But Im getting HTTP 403 when I try to call the web service from the application. Any idea why? ...

How to unit test C# Web Service with Visual Studio 2008

How are you supposed to unit test a web service in C# with Visual Studio 2008? When I generate a unit test it adds an actual reference to the web service class instead of a web reference. It sets the attributes specified in: http://msdn.microsoft.com/en-us/library/ms243399(VS.80).aspx#TestingWebServiceLocally Yet, it will complete wi...

Ruby/Rails and Sharepoint Web Services

I'm trying to consume Sharepoint webservices with ruby. I've basically given up trying to authenticate with NTLM and temporarily changed the Sharepoint server to use basic authentication. I've been successful getting a WSDL using soap4r but still cannot authenticate when attempting to use an actual web service call. Has anyone had any...

What is the best way to document an XML-RPC API?

I am using XML-RPC as the interface to my project's Java web service, and I need to document it. It's really more than simple documentation. It is intended to be a document that will explain why XML-RPC is being used, how to use it with different languages (we use Java, PHP, Javascript, Perl, C++, and Python), what all the methods do, wh...

WCF Service in ASP.NET Compat Mode - What is the Simplest Way to Pass Username/Password

I have a web service (WCF or ASMX doesn't matter)... I have made a Console application, right-clicked, added service referrence. So far, so good. However, I cannot for the life of me pass "security" credentials across to my service. This is my client code: var client = new MyClient(); client.ClientCredentials.UserName.UserName = "bob"...

Simple (standalone) Java SOAP web service client from WSDL using Maven

I'm looking to generate a simple standalone Java client which will make calls to a SOAP web service, given a wsdl. When I say simple and standalone I mean that once I'm done I want to be able to do something like import my.generated.nonsense; public static void main(String[] args) { Client client = new Client(); client.getSome...

How to return a user's unread mail count from an Exchange inbox?

Hi, I am involved in writing a little internal SharePoint portal for our company. I thought it would be a 'quick win' to get create a web part that would display the user's unread mail count, and possibly a list of today's calendar tasks. However, I have had a hunt around for information to do with OWA web services stuff and I can see ...

How do I extend the client’s timeout in configuration on making a .NET web service request?

How do I extend a smart client's timeout of a web service request in the application configuration? I have a smart client that times out before the server is finished with the request I don't want to make code changes at this stage as deployment is difficult. I was hoping to adjust the configuration for client to extend the timeout per...

API Design: Expose XML or Objects #2

I recently asked this question: Expose XML or Objects - thanks all for the responses. One point to clarify. The API will always be accessed remotely (i.e. as a service), most probably via webservices or WCF. I agree that in theory a strongly typed API exposing objects as the inputs/outputs is the right way to go. However, I feel th...

Expand Recurring Events from a Sharepoint Calendar over WebServices?

Is it possible to get a list of events (with recurring events expanded) out of Sharepoint's Calendar using the Web Service exposed through Lists.aspx? This is evidently possible if you are using C# or VB, as described here using a snippet like this: SPQuery query = new SPQuery(); query.ExpandRecurrence = true; query.Query = "<Where><Da...

Is there web service (API) standard or best practice for developer teams?

If you are going to start the development of an API for your web application. Is there any kind of guidelines, best practices or standard to build web services. I have seen a few discussions in this topic and I will like to get more information. At least get pointers on where to get the information. Thanks in advance. ...

Whats the best way to send an event to all workstations

Hi, I hope someone can guide me as I'm stuck... I need to write an emergency broadcast system that notifies workstations of an emergency and pops up a little message at the bottom of the user's screen. This seems simple enough but there are about 4000 workstations over multiple subnets. The system needs to be almost realtime, lightweigh...

JAX-WS authentication agains a database

I'm implementing a JAX-WS webservice that will be consumed by external Java and PHP clients. The clients have to authenticate with a username and password stored in a database per client. What authentication mechanism is best to use to make sure that misc clients can use it? ...

Using LoadRunner to Test Server Processes

We currently use LoadRunner for performance testing our web apps, but we also have some server side processes we need to test. Background: We call these processes our "engines". One engine receives messages by polling an IBM WebSpere MQ queue for messages. It takes a message off the queue, processes it, and puts the result on an outbou...

Extract public key from cer file to use in nusoap

Can someone tell me how can I extract a public keu in .pem format from a .cer file ? I'm trying to configure webservice over https with nusoap. Tks, ED ...

Does anyone know how to get rid of the jsdebug requests from my .net web service

We have a ajax listprovider for typeahead text fields in our webform site. Every page now requests a listprovider.asmx/jsdebug with no caching parameters etc. How do we turn that off? ...

Creating Web Services in VS 2005

Why is that Web Service files (.asmx) have their code-behind placed in app_code folder by default unlike the regular .aspx files? ...