web-services

Does an ASP.NET Web Service Namespace subdomain matter?

meaning is there a difference between <WebService(Namespace:="http://theurl.com/")&gt; and <WebService(Namespace:="http://www.theurl.com/")&gt; ? ...

Flex, .NET Web Service and Numeric Enums

We're using Flex 3 to consume a .NET Web Service. The web service uses an enum and we use Flex Builder to automatically generate the web service objects. Here is the .NET web service enum definition: /// <summary>    /// User type    /// </summary>    public enum UserTypeEnum    {        Admin = 1,        User = 3,        Manager = 4  ...

Accessing SharePoint Web Services over Silverlight

Hello, I have a problem to access SharePoint Webservice over Silverlight. An error occurred while trying to make a request to URI 'http://sample:8000/_vti_bin/Authentication.asmx'. This could be due to attempting to access a service in a cross-domain way without a proper cross-domain policy in place, or a policy that is ...

C# Calling a method I dont yet know the name of yet? Reflection?

Suppose I have the following (rather common) model Client invokes web service request -> request added to server queue -> server invokes 3rd party app via web service -> 3rd party app notifies server that event processing is finished -> server notifies client that request is completed What I am wondering about is the 'server invokes 3r...

What ways can I hide the WSDL from end users that have the service URL

I have a .NET web service which is publically accessible since it needs to be accessible via Flex. It currently only has read operations. http://www.example.com/webservices/weather.asmx?wsdl I want to add some admin only web methods to the same webservice such as UpdateWeather and StartRainstorm. Obviously I don't want my end user ...

how do you pass a parameter to an asp.net page method using jquery/ajax?

I'm trying to pass parameters to my static web method (which is in an asp.net page). I'm trying to pass the "test1" param with a value of "myvalue". Any ideas on what I am doing wrong? $.ajax({ type: "POST", url: "WebForm1.aspx/WebMethod1", data: {"test1": "myvalue"}, contentType: "application/json; charset=utf-8", d...

Patterns for handling batch operations in REST web services?

What proven design patterns exist for batch operations on resources within a REST style web service? I'm trying to be strike a balance between ideals and reality in terms of performance and stability. We've got an API right now where all operations either retrieve from a list resource (ie: GET /user) or on a single instance (PUT /user/1...

Simplest way to expose a given method as a web service - result must be runnable in web container under Java 5

I am in a situation where I need to expose a Java method as a web service, and I need to choose the technology to do so and I am basically a bit bewildered. The requirements are: Must be runnable in an IBM Java 5. Must be deployable as a web application inside an embedded Jetty (currently version 6) Must be detachable from an IDE (has...

Displaying a spinner for a webservice call (Like UpdateProgress Control)

Right now I have a page where unfortunately there is a mix of update panels and calls to webservice web/script methods from javascript. I have an update progress control which shows a spinner for update panel activity. But when I do webservice calls it isn't displayed. How would you recommend I solve this usability issue since the use...

Get readable WSDL service method arguments error in ColdFusion

Hello, developing service invoking script that looks like: <cfinvoke webservice="#ServiceURL#" method="AddCustomer" returnvariable="ResponseData" argumentcollection="#stAguments#"> <cfinvokeargument name="api_key" value="#ServiceKey#" /> </cfinvoke> stAguments structure filled before this call, obviously. Imagine you've forgot to...

.Net Webservice Secure

Hey Everyone, Are there any good examples out there of how the following webservice would work? I would like a windows/web client to be able to access a webservice, but the client should pass a username, password, and ip address and the webservice should be able to determine if it is on the list of allowed users or not before taking the...

How to modify webservice proxy to get Raw XML

Here's the proxy method that was created for the web service I'm trying to access. How would I go about modifying it to get the raw XML from the web service call? /// <remarks/> [System.Web.Services.Protocols.SoapHeaderAttribute("CallOptionsValue")] [System.Web.Services.Protocols.SoapHeaderAttribute("MruHeaderValue")] ...

HOWTO: Write Python API wrapper?

I'd like to write a python library to wrap a REST-style API offered by a particular Web service. Does anyone know of any good learning resources for such work, preferably aimed at intermediate Python programmers? I'd like a good article on the subject, but I'd settle for nice, clear code examples. CLARIFICATION: What I'm looking to do ...

flex 3 webservice results issue

hi, im having trouble with the result of a webservice call. When the result comes in and kicks off the resultHandler function i set a break point so i can examine the result. I can see that there are 0 records in the array collection however i can see content so im assuming that the zero is just referring to the first index of the array...

Would you use Metro instead of Axis2?

For a starting project, why would you use Metro instead of Axis2? What should be considred? Performace? Easiness? Tools/IDE/Plugins availability? ...

How to read the web.xml from a WebApp

For WebApps, web.xml can be used to store application settings. How can I read this file. My servlets run in a GlassFish v2 server. ...

Can I modify/extend a production web service without affecting existing clients?

I am currently calling a web service that returns a service defined class which I am interpreting in my application. I'm considering asking the vendor of this web service to add a property to this class which will make my life as well as their other clients lives a lot easier. To be clear I'm not asking them to modify existing behaviou...

Identical Types In Separate Web Services

I have a similar problem as this question. I have multiple web services that I am consuming with WCF, which all share types. The services themselves are written in Java and I do not have access to them. The shared types have the same signatures, but svcutil.exe gives this error when running: Error: There was a validation error on a sche...

Sql Server to Excel via a Web Service

I would like to know the best way to transfer data from a web service to an excel worksheet (office 2007). I am not interested in outputing a report to excel from a web site. In our scenario a user will be using excel (with a number of macros and such) and will request about 11000 rows of data from the server to a worksheet. Anyone ha...

Handling Web Service Timeouts While Performing Long-Running Database Tasks

The architecture of one of our products is a typical 3-tier solution: C# client WCF web service SQL Server database The client requests information from the web service. The web service hits the database for the information and returns it to the client. Here's the problem. Some of these queries can take a long, long time, and we do...