web-services

Visual Studio 2008 not generating Web Service Reference.cs proxy class?

I just ported a project from Visual Studio 2005 format to Visual Studio 2008. This project makes heavy use of consuming web services. We use our own custom parent class for the generated proxy classes (Reference.cs) that Visual Studio generates up. I added a new web reference using Visual Studio 2008, and it did not generate the proxy...

Is this supposed to work this way?

I have this code up on my server here (Yes I known ASMX is a bad idea but WCF doesn't work at all for some reason): <%@ WebService Language="C#" Class="Test" %> using System.Web; using System.Web.Services; [WebService(Namespace = "http://smplsite.com/smplAccess")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] public cl...

API vs. Webservice

What is the difference between a webservice and an API? Is the difference more than the protocol used to transfer data? thanks. ...

How to set a connection timeout when using JAXRPC-RI web services client?

I'm working with a bit of a legacy component in which we interact with a SOAP web service (a technology which I absolutely, positively abhor) using some client code built using the JAXRPC-RI (reference implementation) library. I'm interested in being able to set a timeout with the stubs so that in case the web services server does not r...

XmlInclude or SoapInclude

I am developing a webservice that returns arrays of classes I define within the webservice. When I test it, I get: "System.InvalidOperationException: The type WebSite+HostHeader was not expected. Use the XmlInclude or SoapInclude attribute to specify types that are not known statically." Here is part of the code: [WebService(Namespace ...

How to update a field of type spFieldUserValue from SharePoint web services

I am trying to update a field of type spFieldUserValue, you know a, PeoplePicker. The relevant code is batchElement.InnerXml = "<Method ID='1' Cmd='Update'>" + "<Field Name='ID'>1</Field>" + "<Field Name='APersonField'>32;#This is pretty much ignored</Field>" + "<Field Name='Title'>Wow edited!</Field></Method>"; result = l...

How to make the Asp.Net/WSE asmx page generator add the base class properties in a derived class

I have a simple base class B with 2 public properties. This class is inherited by another class D that adds another public property. The derived class is returned by a web service call. The page generated by ASP.Net looks like: '''<remarks/> <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "2.0.50727.3074"), _ Sys...

Test framework for web services

We have a monolithic application written in Visual Dataflex, and various supporting applications written in other (.NET) languages. They all share the same database, and need to follow the same business logic. One way to facilitate unified business logic across these is to provide web services as an interface for testing. Of course, for...

Forcing asmx web service to handle requests one at a time

I am debugging an ASMX web service that receives "bursts" of requests. i.e., it is likely that the web service will receive 100 asynchronous requests within about 1 or 2 seconds. Each request seems to take about a second to process (this is expected and I'm OK with this performance). What is important however, is that each request is dea...

Get the Address details (like city, state etc.) of a prticular IP

Working on a mashup where I need an API which gives me details of Address if I pass IP of that parcular locton. Can anyone help me to get an API?? heard about iploc but its no longer available..:( ...

my webservice is not able to login to a local database

hi there i have made a web service, it has two web methods, one method uses an xml file to get the data, and other uses a database on my machine, first method is working fine but when i call the second method using an object of the webservice from my aspx page, i am getting the below mentioned exception, i am a beginner on this and have ...

Implementing Linq-to-Sql Transactions Through WCF - Part II

I started here: http://stackoverflow.com/questions/753599/implementing-linq-to-sql-transactions-through-wcf Since then I came to the following. I am using basicHttpBinding for legacy, and my WCF client is unmanaged C++ (gSOAP). So I am using ASP.NET Session and enable aspNetCompatibilityMode on WCF. This works, so now I can handle sessi...

Documentation standards/structure/style for Web services

Can anyone recommend guidelines for high-level documentation of Web services? This is the documentation that should allow someone with no knowledge about a particular Web service to come away with a basic understanding of its reason for being, its roadmap and examples of its usage. Such documentation should fit onto two printed sides o...

Escaped JSON response with [WebMethod]

The JSON response from the following code is wrongly escaped as described below. My webmethod is like this: [WebMethod (Description="doc here")] [ScriptMethod(ResponseFormat=ResponseFormat.Json)] public string responseMyObject() { if (!Setup()) return ""; ... Proxy pu = new Proxy(...); ...

How do I call a webservice over SSL in Java?

I have recently been working on a C# application that calls a webservice over SSL and handles the certificate security using a delegate for the ServerCertificateValidationCallback event like so: System.Net.ServicePointManager.ServerCertificateValidationCallback += delegate(object certsender, X509Certificate certificate, X509Chai...

How do you do an HTTP Put?

I feel like an idiot asking this. In fact, after typing the title, StackOverflow barks at me, "That's not a very good title. Can you add some more unique words to it?" No I can't, SO; sorry. Here we go: We have this software that has a webservices component. Now, the administrator of this system has come to me, wanting to import data i...

Method-level documentation in n-Tier applications

My Situation: The data request chain of my application looks like this: (Client) -> (WebService) -> (SQL or OLAP Cube) The client is a Silverlight Application that uses a generated proxy to communicate with a WCF webservice. Which in turn does authorization and accesses SQL DB's and OLAP Cubes using a DAL component, basically it just...

Is the System.AddIn namespace safe to use for web services?

Is the System.AddIn infrastructure safe to use for a web service? Since it does write stuff out to the file system, is it really only intended for windows applications? ...

Problem Importing Web Service

I have created a web service in a virtual directory using VS 2008. I have tested the service by going to the .asmx page and everything is working fine. So I selected the "Add web reference" option under the solution and typed in the .asmx URL. It found the web service successfully and added the reference to the project. However, whe...

Adding Web Service Reference to Apache Tomcat Fails In .NET 2008 (C#) App

I've been trying to add a web reference to a webservice located on an Apache Tomcat web server but I always receive an "HTTP status 503: Service Unavailable". I've been told that the problem is that Tomcat doesn't allow 2 HTTP parameters when requesting the wsdl. The URL I'm trying to retrieve the wsdl looks like: http://208.35.164.35...