web-services

Unable to change URL for .NET reference to dynamic web service

Hi all, I have a web reference added to a C# .NET project. The URL for the web reference needs to change depending on whether I'm building for a development, staging or production environment. I've set the web service to be dynamic, which supposedly means it takes the URL from my app.config file. When I perform a build it overwrites ...

Avoid hourglass mouse cursor when calling a web-service?

I don't know if this is a general web-services issue or just my specific scenario, which is a WPF application with a DispatcherTimer calling a web-service method. Whenever the timer is called, the mouse cursor automatically changes to an hourglass cursor. The processing of the call is very short and happens every 3 seconds, so the user ...

Remotely terminate a Sharepoint workflow

Has anyone had experience canceling a workflow via webservices? Is it possible? ...

.NET Web Service - How to call unmanaged C dll

I have a requirement to call a dll (unmanaged c) from a .NET web service (asmx or WCF). Calling the dll from the web service is straightforward and works as expected. However, issues emerge when I load test the web service. (error code 0xC0000374 - "an internal error, typically involving heap corruption”). I've been informed by the o...

Python SUDS - problem with sending a message encoded not in UTF-8

I need to send a SOAP message (with Python SUDS) with strings encoded in 'iso-8859-2'. Does anybody know how to do it? SUDS raises the following exception when I invoke a method on a client with parameters encoded in 'iso-8859-2': File "/home/bartek/myenv/lib/python2.5/site-packages/suds/sax/text.py", line 43, in __new__ result = su...

Flex Return type Web service

Hi, I have a web service, created in java, which returns a Vector: @WebMethod public Vector<Data> getData(); I am using Flash Builder 4. I am trying to call the web service in Adobe Flex. When I import the web service using Connect to Data/Services -> WSDL, the return type that Flex selects for this web service is Data[]. How do I c...

Web Service Call in JavaScript Causing White Screen of Death (WSOD) in Browser

Here's the specs: ASP.NET 3.5 using ASP.NET AJAX AJAX Control Toolkit jQuery 1.3.2 web services IIS6 on Windows Server 2003 SP1 SP1 SQLServer 2005 SP3 Site is SSL Infragistics Web Components 2009 Vol. 2 (using non-Aikido controls), UltraWebGrid and Tree control are main ones used. Here's the problem: I'm getting the White Screen of D...

Return ArrayList from .net web service to android application using kSoap

My web service is returning quite a bit of data, so i'm storing it in an arraylist and returning that to my application. I don't know whether or not this is the preferred method or not. When the arraylist is returned and displayed in my application, it also displays the arraylists "anyType" section. I'm new to this whole process so i'm s...

Web Services with Android - why no support for WSDL ?

I'm creating a Client/Server application with Android (Client) and WCF (Web Service). From reading quite alot of discussions, I'm under the impression that there is no tool available to create the web service client in android automatically from a WSDL file. If this is the situation, what is the easiest approach for creating a communica...

jQuery encoding values differently than expected for jQuery.ajax data elements

I'm using jQuery.ajax() to make a PUT request to a REST web service, but seeing some really strange serialization behavior. (Before you say it: Yes, I know that not all browsers support PUT -- this is just an example implementation for an api/framework, and ultimately will not be called by a browser, but rather by a server-side library ...

Hyperjaxb and Apache CXF

Hey guys, I'm trying to use Hyperjaxb3 with Apache CXF to generate persistence annotations from a WSDL-first web service. I've plugged the Hyperjaxb3-ejb-plugin into the cxf-codegen-plugin, like so. <plugin> <groupId>org.apache.cxf</groupId> <artifactId>cxf-codegen-plugin</artifactId> <version>${cxf.version}</version> <depende...

Whats the best way to implement a streaming quotes page?

I have a webservice that gives me the live stock quotes. I need to hit the webservice and update the page every 10 seconds or so. what is the best way to implement this using .NET and AJAX? I am looking for tips in the following lines: How to implement the end ASPX page to refresh the content on a timeout event? Should i just implem...

jagged arrays <-> multidimensional arrays conversion in ASP.NET

Hi, I would like some help to create the following convertions: A need to convert an 800*600 multidimensional array into a jagged array and then the same method in reverse (jagged array with the same data to the original multidimensional array) Is this possible? and any help about it? ...

How to host a RESTful C# webservice and test it.

I need to create a RESTful webservice in C#. This is what I have right now: namespace WebService { [ServiceContract] public interface IService { [OperationContract(Name="Add")] [WebGet(UriTemplate = "/")] int Add(); } public class Service:IService { public int Add() { // d...

"NT AUTHORITY\ANONYMOUS LOGON" error in Windows 7 (ASP.NET & Web Service)

I have an asp.net web app which works fine in Windows XP machine in a domain. I am porting it to a Windows 7 stand alone machine. The app uses a web service which makes a call to sql server. The web server (IIS 7.5) and SQL Server are on the same stand alone machine. I enabled Windows authentication for the website and web service. The ...

How to safely remove global.asax from web service

I have a web service asp.net project which has a global.asax with empty Application_Start and Application_End implementations. As far as I can understand, in this case it is of no use and could be removed (correct me if I'm wrong). Do I need to do anything other than delete global.asax and global.asax.cs (such as change something in web....

problem while xmlParsing

Hello everybody. I am calling a webservice which returns xml data. Now when i receive the xml data, it is all distorted. all the escape characters like "<", ">" and " ' " are converted to html format ie and &quot So now, the parser is not able to recognize the tags. Plz help me, what shud i do? this is my response from webservice ...

Measure website

Hi, I was wondering if it is possible to install or use any online service to measure your website's performance? I've seen many just checking the download speed of images, external files etc. But is it possible to meassure how long asp/php code takes to execute? I have a site running a bit slowly, and it would be very nice with some a...

java.sql.SQLException: Parameter index out of range (3 > number of parameters, which is 2)

@WebMethod(operationName = "SearchOR") public SearchOR getSearchOR (@WebParam(name = "comp") String comp, @WebParam(name = "name") String name) { //TODO write your implementation code here: SearchOR ack = null; try{ String simpleProc = "{ call getuser_info_or(?,?)}"; CallableStatement cs = con.pr...

how to read values from the remote OPC Server

I have created one asp.net web service. In this web service I am using the web method as follows. The web service is related to the OPC ( OLE for process control) public string ReadServerItems(string ServerName) { string txt = ""; ArrayList obj = new ArrayList(); XmlServer Srv = new XmlServer(...