web-services

Consuming apachesoap:Map complex datatype in webservice using .net

Hi there, I have a webservice programmed in coldfusion which I'm attempting to consume using c#.net. The particular webservices returns a coldfusion structure (a collection of items with a key and a value) which is exposed by the webservice as a complex object of type apachesoap:Map <wsdl:message name="getDetailResponse"> <wsdl:p...

Set the Default Value for a property in an ADO .NET Data Service

I have an Entity Data Model being read by an ADO .NET Data Service. The entity in question looks like this: **PaidAmount** Id FY_1993 FY_1994 ... FY_2030 Is it possible to set a default value so that values of 0 aren't serialized? I have tried setting FY_1993's Default Value to both 0.00 and 0 but when I view the Entity in the .svc t...

SkillSoft Web Service Issues

Using Visual Studio 2005 and C# .NET I was attempting to call methods from the SkillSoft API through their web service and have been running into issues when creating the instance. I started by adding the web service reference to the project (Add Web Reference) and that works fine. Where I get tripped up is in the main .cs where I wish t...

Consuming webservice as anonymous user gives HTTP status 401: Unauthorized

I'm using Visual Studio 2005, C#, and IIS 5.x on WinXP developement machine. In my VStudio solution I have these projects: FileServiceDemo (a web application project) hosted at http://localhost/FileServiceDemo2005 default.aspx - displays System.Security.Principal.WindowsIdentity.GetCurrent().Name and ...

In Java, throwing an exception when a network connection is lost during a WebService Call (similiar to WCF CommunicationException)

Hey guys, I'm dealing with an auto-generated WebService stub in Java (generated using JAX-WS RI). My actual service is a .Net program exposing its webservice using the WCF basicHttpBinding. How should I be dealing with Communiction problems during the actual WebService call. (i.e. the way in WCF on the client you would wrap your call...

SharePoint UpdateListItems Web Service Checked Out

I am uploading a picture to Share Point by using the normal multiple upload form. Once the picture is uploaded I return to a custom WebPart that lists the items. Clicking on the item brings up an javascript form which allows you to edit the meta information. You can then save this form using the UpdateListItems web service via the javasc...

Python accessing web service protected by PKI/SSL

I need to use Python to access data from a RESTful web service that requires certificate-based client authentication (PKI) over SSL/HTTPS. What is the recommended way of doing this? ...

WCF - The maximum message size quota for incoming messages has been exceeded

I'm getting the following error from my WCF service which is returning the results of a query in C# objects. The maximum message size quota for incoming messages (131072) has been exceeded I know how to resolve this via MaxReceivedMessageSize What I'm looking to find out is how do I find out what contributes to the message size. It do...

How to change the encoding of a web service in .Net ?

We are developing a web service in .Net, and our client would like the responses of the service to be encoded in something other than UTF-8. Is it possible? This page seems to indicate it is not possible, but I'd like a second opinion. The service is an asmx webservice. We are considering switching to WCF if it's the only way to go, b...

Good tutorial on OC4J Java Web Services.

Hi I'm new at developing web services but I would like to know if anyone knows a good place to find an end-to-end tutorial on how to develop, deploy, and test a Java based Web-Service onto an OC4J environment. Thank you ...

Uploading Files with WebServices hosted on IIS--> Best Practises

hi There, We have an application for which UI is built on Flex, and its consuming webservieces built on Dotnet hosted on IIS. we are trying to upload files which are around 100/200 megs , this works like a charm on LAN , if we try to do the same with web service hosted on public ip machines , then this would fail very often(obviously bc...

Webservice: not all properties showing on client

Hi there, I have a vb.net baseclass in a dll in my c# project. I created a derived class in c#. I fill the C# class with all its properties, including the base properties from the vb class. Now I send them through a webservice (c# ) to a jQuery client. But on the client I only see the vb properties? Anyone has a clue? public class Fi...

Web Services in Classic asp

hey all, first of all this is my third question about web services here and i am very thankful to guyz for helping me out, but yet something is missing which is not right here is the code which i got already from a question of mine Set oXmlHTTP = CreateObject("Microsoft.XMLHTTP") oXmlHTTP.Open "POST", "http://www.oursite.com/WebServ...

Consuming a WCF WsHttpBinding WebService in Java

Hey guys, I'm trying to get a Java Client to communicate with a WCF wshttpbinding WebService. But I am unable to do so. The call either hangs, or I get "musunderstoodheader expcetions". My Web Service is just the default Visual Studio generated "WCF Service Library Template". My Web Service Client is just a blank IntelliJ project, wi...

Sharepoint 2007 AddList and AddListFromFeature are missing template columns and data content

What I've Done Inside SharePoint I created a List based on the Project Tasks template I deleted most default columns, and added new custom columns I added data using the new format Then I did a "Save as template" and chose to save the template with the content What IS Working Now, when I use that template to create a new List inside...

Add HTTP GET method to C# web service

I want to access one of my web service methods via HTTP GET, I've seen it done before but I can't figure out how to allow this access protocol on a VS2008 web service project. I guess you have to change the web.config file but not sure what to. Does anyone know? ...

Spring 3.0 and SOAP - What's best practice?

Hi guys, I'm reimplementing a web app in Spring, and I need to expose the business logic with SOAP. I'm going for Spring 3.0, and I'd like to know: what is the recommended way of exposing Spring beans? The rest of my stack is Tomcat 6, JDK 1.6, Struts 2. Cheers Nik ...

How do I consume a web service protected with WS-Security in mono using c#?

I've got the code working that consumes an unprotected web service, but I'd like to know how to consume one using WS-Security. A pointer to some documentation would be helpful. I just can't find a starting place. ...

Returning JSON AND XML format from a .NET 3.5 WCF web service (REST)

I have an existing web service that returns XML responses and I would like to add some new methods that return JSON. Do I have to create a separate web service that returns in JSON or can I have a mix? If I use the ResponseFormat = WebMessageFormat.JSON I need to have the service annotated with [DataContractFormat] but I cant seem to ha...

How do I handle CLS-compliant within a Web Reference?

Howdy, I am turning on [assembly: System.CLSCompliant(true)] inside the assemblies of my C# solution. I am now getting a few warnings inside the generated code for a SharePoint Web Service. Here is one of the methods that are not CLS-compliant: /// <remarks/> [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http:...