web-services

timeout calling webservice yet data transfer still completes

I'm calling my webservice from a web page and getting a timeout despite setting very high values in my web.config files. This occurs intermittently when the file is usually pretty large but yet the file is still getting uploaded completely (as if the timeout DID NOT occur). Here is a function in my .aspx file which calls my ASMX proxy cl...

Service developed on 32bit windows xp pro, fails to run on windows server 2003 64-bit

A windows service was developed and runs on a 32 bit machine. It communicates to the Project Web Access web service. Now, the service was moved to the same computer as the Project Web Access web service. The code fails and I recieve this error: System.Net.WebException: The request failed with HTTP status 401: Unauthorized. at ...

Is it better to use an XML data structure or a custom data structure that can be converted to XML?

I'm going to be writing a program which has some web services in it that use XML to pass data back and forth. The format of the XML is predefined - I can't change it to suit my needs - but in code I can handle the data any way I want. My question: Is it better for me to handle the data structure in code as an XML tree, or to write an e...

Best Way to Launch External Process from Java Web-Service?

I've inherited a Java web-services code-base (BEA/Oracle Weblogic) and need to start/launch an external background application from a web-service. I've already tried: ProcessBuilder pb = new ProcessBuilder(arg); pb.start(); as well as: Runtime.exec(cmdString); But am experiencing strange behaviors when launching applications in th...

Authenticate windows user using jquery

MyMasterPage.master <head runat="server"> <script type="text/javascript"> $(document).ready(function() { var userName = '<%# System.Web.HttpContext.Current.Request.ServerVariables["AUTH_USER"].ToString() %>'; alert(userName); $.ajax({ type: "POST", url: "DemoWebService.asmx/GetFulName", ...

Forwarding URL from Webservice

Hi all, we have system architecture as so.. WebApplication --> MediatorService ---> Service Provider --> Device WebApplication --> which process input and inserts into database. MediatorService --> is a WebService Application which is running on the same server where WepApplication is running or on the di...

NetDataContractSerializer equivalent for Silverlight?

Has anyone developed or know of a place where I could find a Silverlight implementation of NetDataContractSerializer? This WCF and Silverlight Comparison states that Silverlight does not ship with an implementation of NetDataContractSerializer. I'm hoping to avoid developing one myself. Thanks! ...

Java Web Services video tutorials

Are there video tutorials for Java Web Services with the same caliber as asp.net and windowsclient.net Learn section? ...

Axis2 Session Managment

Hi, iam building a small webservice in axis2 (buttom up, i write the java classes and let eclipse wtp generate the service). I would like to use sessions so that a user can login with a username and pass if it exist in a database and than use the webservice but within the context of his session. I quite frankly don't know where to start....

Is there any good Python tutorial/guide to use XML-RPC with Last.fm API?

I'm new to XML-RPC and I would like to know if there is any good tutorial to use XML-RPC with the Last.fm API. Is it possible to call the API methods using the xmlrpclib module like in the following example? import xmlrpclib myserver = xmlrpclib.ServerProxy('http://ws.audioscrobbler.com/2.0/') ...

why is the lift web framework scalable?

I want to know the technical reasons why the lift webframework has high performance and scalability? I know it uses scala, which has an actor library, but according to the install instructions it default configuration is with jetty. So does it use the actor library to scale? Now is the scalability built right out of the box. Just add ...

How do I specify host and port when accessing a web service from JAX-WS-generated code?

I have a WSDL file for a web service. I'm using JAX-WS/wsimport to generate a client interface to the web service. I don't know ahead of time the host that the web service will be running on, and I can almost guarantee it won't be http://localhost:8080. How to I specify the host URL at runtime, e.g. from a command-line argument? The ge...

ASP.net Webservice Date Parameter Timezone Offset Problem

I have an asp.net webservice with a parameter of type datetime. I have noticed asp.net seems to offset the date based on the clients timezone. I need to disable this functionality. I simply want to pass a date (i.e. 3/15/2009) to the webservice from javascript without any timezone context. Is my only option to change the parameter type...

Add SharePoint Document List to Quick Launch through Web Services

I'm creating Document Libraries in SharePoint with the Webservice Lists.AddList method through a C#.Net application. (See below) listsService.AddList(listTitle, listDescription, 101); I would like them to show up in the Quick Launch menu under the site they're created in rather than just the 'All Site Content' menu. I've had a look a...

Getting information about configured (webservices.xml) web service handlers programatically

In a Web Service, I have few GenericHandlers configured as server (Role) in webservices.xml (for IBM Runtime) & server-config.wsdd (Axis Runtime). Say the handlers are A, B & C. Now, when there is an inbound call, A, B & C are getting invoked as expected. I am basically looking for a way to know (programmatically) the number of handler...

Where are project level imports stored in Visual Studio 2008?

I have a Web Service Application Project in Visual Studio 2008. This is supposed to be an ASP.Net 2.0 project and at some point this has been rebuilt using 3.5. VS has kindly added in project level imports to System.Linq and System.Xml.Linq, but when I have re-targeted the project at 2.0 these project level imports have remained. Beca...

ASP.NET ScriptManager causing warning in Chrome

I get the following warning in chrome developer javascript console: Uncaught SyntaxError: Unexpected token < http://.../Question.asmx/js (line 1) Resource interpreted as script but transferred with MIME type text/html. http://.../Question.asmx/js The HTML source code looks fine: <script src="../../../Question.asmx/js" t...

What are some good resources for designing a web-services based architecture that can scale well?

I have a web application that currently has about 500,000 users, averaging about 500 page views per hour, and we are expecting to have to scale up to 20,000,000 users within the next year. Our current system cannot handle that scale, and so we need to move to one that can. I was thinking a services-based architecture would be more ro...

RESTful iPhone client and Model hierarchy

Hi all, I'm curious what strategy most of you are employing in order to build solid RESTful iPhone clients in respect to model hierarchies. What I mean by model hierarchies is that I have a REST server in which several resources have a correlation to each other. For instance, let's say for hypothetical purposes I have a REST server whic...

Reliably caching XML feed from a web service into a file

I need to cache some xml from a webservice to a local xml file for use by my web application. There are two web services, one which returns the data, and one which returns the date/time the data last changed. The xml file size could range from 50KB to 500KB I currently have an executable that runs from a windows scheduler that perform...