web-services

C# Session management

Hi, I am using a C# Webservice to log a user out. I am using the formsauthentication.signout for the same. I am passing this webservice call through JQuery. How to I get the user to redirect to login page? I tried the window.location = "login.aspx", it works but if i type in another page in the secure area, it opens up again. Thanks....

Delphi Web Service Importer and NonAscii Character Problem

I'm working with Delphi 2009 update 2. Borland WSDLIMP Version 2.3 - $Rev: 16699 $ Why does the identifier rápido shows as r_pido ? Where did the character á go? Is this WSDLIMP bug or MS XML bug ? thanks for replies File.XSD <?xml version="1.0" encoding="UTF-8"?> .... .... .... <xs:simpleType name="displayName"> <xs:restriction bas...

AXIS2 generating wrong SOAP Message because of encoding. how to fix it?

QUESTION: how can I use a different encoding (charset and transfer) with axis? Here is my client: public Object[] invoke(String xmlRepresentation) throws CustomApplicationException { Object[] responseWS = null; RPCServiceClient serviceClient = new RPCServiceClient(); Options options = serviceClient.getOption...

The custom tool 'msdiscocodegenerator' failed

I get this error when attempting to reference a Web Service in my Compact Framework application. Hunting through Google seems to indicate it's a common occurance, but there's been no useful suggestions as to what causes it, and how to fix it. I can successfully access the web service from a WinForms application by adding a Service Refere...

How can I access the ApplicationContext from within a JAX-WS web service?

Similar to How can I access the ServletContext from within a JAX-WS web service?, is there a way to access applicationContext, easier than this? import javax.annotation.Resource; import javax.jws.WebService; import javax.servlet.ServletContext; import javax.xml.ws.WebServiceContext; import javax.xml.ws.handler.MessageContext; import or...

PHP client calling .net 3.5 sp1 web service

I need to create a web service that a PHP client can call. The service needs to accept 1 or many integers, provide security, and does not need to return any data (though other similar services may need to). This particular service will is intended to trigger a data extract that will be picked up later. My manager believes that creating ...

HttpWebRequest not returning, connection closing

I have a web application that is polling a web service on another server. The server is located on the same network, and is referenced by an internal IP, running on port 8080. Every 15 secs, a request is sent out, which receives an xml response with job information. 95% of the time, this works well, however at random times, the reques...

Best way to support "application/x-www-form-urlencoded" post data with WCF?

I'm building a WCF service based on a W3C specification which defines a RESTful web service endpoint that accepts "application/x-www-form-urlencoded" post data. WCF doesn't support this type of message encoding by default and I have found a number of different examples of creating a contract that looks like this: XElement Query_Post(St...

Web service cast exception why?!

Error Cannot implicitly convert type 'string[]' to 'System.Collections.Generic.List<string>' The above error is caused when I call a method to a web service List<string> bob = myService.GetAllList(); Where: GetAllList = [WebMethod] public List<string> GetAllList() { List<string> list .... r...

java/WSIT client won't talk to a WCF service with Kerberos authentication

I'm new to java and WSIT, and I'm trying to create a WSIT client that talks to a simple HelloWorld WCF service with wsHttpBinding and Kerberos security by following the instructions from the Metro user guide at: https://metro.dev.java.net/guide/Example_Applications.html#gfzhh. But I'm getting the following error when running the client...

datetime time zone conversion in .net web service

I have a web service (actually a silverlight enable wcf service, but for all intents and purposes, it's a web service) with a method taking a datetime parameter. The method gets called from a client, which could be in a different time zone. The service hosting the web service is in pacific standard time, and it appears the web service ...

Call an IIS Web Service without the .asmx extension

I have written a .NET web Service that is to be consumed by a client outside of my control (my server is a simulator for a live server written in PHP). The web service works as desired but the client does not have the ability to add the .asmx extension, or any extension for that matter, in their calls. They basically use http://localho...

WebService, WebMethod and Inheritance

In a Web Service context, I have the following class which inherit from the class Mammal. The Mammal class is defined in a proxy. I cannot change the definition of that class. Because I need to add some methods to the class Mammal on the client side, I inherited Mammal and created Giraffe. namespace TestApplication { public class ...

Performance tips/hints for .NET webservice providing info from sql server

Hi, I have a rather simple web-service which exposes data from sql server. It will be used to synchronize data between 2 different databases (SQL Server and Lotus Notes). We're in the stage of testing the web-service and poll it with 20 req./min., the first 2 minutes it goes OK, but after the second, we're getting an exception, obviousl...

VB.Net - is it possible to return an array of object Interface's rather than an object?

I have an interface that describes an specialized list in my application... Public Interface IAlphabeticListItem Property StartingLetter() As String Property DetailsList() As Generic.List(Of DetailsData) End Interface Multiple objects implement this interface, but I want to return them in a webservice not as the underlying o...

Should you test an external system prior to using it?

Note: This is not for unit testing or integration testing. This is for when the application is running. I am working on a system which communicates to multiple back end systems, which can be grouped into three types Relational database SOAP or WCF service File system (network share) Due to the environment this will run in, the...

How to redirect to login page from a web service in an AJAX call?

I am using jQuery to call web service (*.asmx) methods. The web service uses FormsAuthentication to determine whether the calling user is authenticated. I am unable to return a redirect status code from the web method, e.g. [WebMethod(EnableSession=true)] public Dictionary<string, object> GetArchivedFiles(int pageSize, int page) { i...

Online (preferably) lookup API of a word's class.

I have a list of words and I want to filter it down so that I only have the nouns from that list of words (Using Java). To do this I am looking for an easy way to query a database of words for their type. My question is does anybody know of a free, easy word lookup API that would enable me to find the class of a word, not necessarily i...

What can cause properties in an .NET Service Reference to become null on invocation?

I just had a laptop crash (spilled water on it). I copied my working code (2 days ago backup) from a Windows Server 2008 laptop to a Vista laptop running Visual Studio 2008 SP1. Both are running .NET 3.5 SP1. I have a web method call which is returning product information. Some of the fields in the web service (running on a hosted serv...

Sharepoint webservices

I have a couple of Sharepoint portals (Sharepoint Portal Server 2003 + SQL Server) running and they should both share some commom data. I was planning on working with two separate lists, and build a web app that will be responsible for updating them both throught the WSS Lists Service (">http://server/ vti_bin/lists.asmx). I'm wondering ...