web-services

Consuming a Web Service written in VS2008

I've got a Web Service written using C# in Visual Studio 2008 (I've also written it in VS 2005). I can write a test windows form app to consume the service no problem. The problem I have is consuming it from C#/VS2003 (or php which is my real problem). It just gives me the error: "Cannot implicitly convert type 'TestIntel.WebIntel.GetS...

Will a .NET Webservice break when I add a Property to a Parameter?

I have a .NET Webservice which hosts a Method called AddMyObject. [WebMethod] public void AddMyObject(MyObject[] objects){...} Where MyObject is declared as public class MyObject { public string Pro1{get;set;} public string Pro2{get;set;} } If I now add a Property to MyObject, the Client creates a new Proxy from the new WSD...

Get SOAP Message before sending it to the WebService in .NET

I'm calling an external HTTPS webservice. In order to check what is wrong, the owner needs the SOAP request I'm sending. I have a web reference and the generated proxy class generated by VS 2008... Is there a way to see the SOAP message just before sending it? I'm thinking in some .net code... because the Sniffers I tried didn't "see...

webservice using security UserNameToken

Hi guys, I am trying to resolve a problem we have using glassfish V2 to publish a simple web service using a plain UserNameToken for security reasons. Since we were using Netbeans 6.5 to archive this we were looking into this tutorial: http://testwww.netbeans.org/kb/60/javaee/identity-amsecurity.html enter code here Therefore the foll...

Null characters in web service response causes XML document error

It seems there is a bug in SQL Server Integration Services 2005 which, in certain circumstances, converts a zero length string into a single character string whose character happens to be an ansi null, ie. ascii character zero (Please note that this is very different from a sql null). This happens to one of our data load processes so th...

WSDL2Java for overloaded methods ?

I am trying to run WSDL2Java (Apache CXF) on a WSDL that contains overloaded methods (same method name, different parameters). It seems to me like I need to write either a JAX-WS mapping file or a JAXB mapping file to do this, but I feel like I'm being stonewalled by a ton of specifications I haven't read. Anyone have any examples of th...

Transaction options over Web Service calls

Does anyone have any insight into transaction options available over web-service calls? 1.) There are two applications that we have that need transactional communication between them. 2.) App1 calls a web service on app 2 and then makes some changes to its own db. the call on app2 and the changes to it's own db need to be co-ordinated. H...

How to serialize an IList<T>?

I've got an OR mapper (iBatis.Net) that returns an IList. // IList<T> QueryForList<T>(string statementName, object parameterObject); var data = mapper.QueryForList<Something>(statement, parameters); I'm trying to use it in an webservice an want to return the data 1:1. Of course I can't return IList in a WebMethod, because it is an int...

Returning Rows from a .NET Web Service

I am using a .NET web service as an interface to a database. What is the best way to return rows from this web service? I vaguely remember that .NET 2.0 had issues with returning DataTable objects. Do those issues still exist? Update: Some of the issues in .NET 1.1. Also, I believe that in 2.0 the DataTable is deserialized as a DataSet...

What is your opinion about using Web-Services to get big lists of data ?

I had some sessions with developers about getting list of data with Web-Services, they said it's depend on the type of the site, commerce, blog etc. What is your opinion on the subject ? Is using a Web-Service for getting big list of data is a smart way performance wise? ...

Using XML 1.1 in Axis2

I have a web service and client that are passing around strings containing character references such as &#26; (0x1A). These are invalid in XML 1.0 but valid in XML 1.1. Axis's XML parser is throwing exceptions because of these character references. Is there a way to force it to parse the response as XML 1.1, or to insert the XML decla...

"Out of memory" exception on call to web service

I have an ASP.NET web application that calls a .NET DLL, that in turn calls a web service. The web service call is throwing an exception: Unable to generate a temporary class (result=1). error CS0001: Internal compiler error (0xc00000fd) error CS0003: Out of memory Stack Trace: at System.Xml.Serialization.Compiler.Com...

Exceptions from SoapHttpClientProtocol.Invoke Method .NET web service

I am calling a web service from a C# forms based app. ServReturnType obj = ServProxyClass(int i, int k); I have the potential to get back an exception. The exception could be that the service didn't connect at all, that there was a failure on the receive, but the original message went, or anything in between. I then need to make a dec...

HTTP Content-Type in ASP.Net SoapHttpClientProtocol

Hi there, I have a problem with a Web Service Consumer written in ASP.NET. The error message is: System.InvalidOperationException: Client found response content type of 'application/xml; charset=utf-8', but expected 'text/xml'. The client is based on System.Web.Services.Protocols.SoapHttpClientProtocol. We can't change the Content-Ty...

Hibernate session handling in spring web services

I am using spring-ws with Jaxb2Marshaller, PayloadRootAnnotationMethodEndpointMapping and GenericMarshallingMethodEndpointAdapter to configure my web services via the @Endpoint and @PayloadRoot annotations. When I try to use the DAO's of my project I am able to load objects from the database but as soon as I try to access properties ins...

Accessing ASP.NET 2.0 web services from Silverlight 2.0

I have some ASP.NET 2.0 web services and I have a Silverlight control that accesses these services. When I run these under the localhost, everything works fine. However, if I deploy the web services to an ASP.NET server and run my simple Silverlight html host locally, Silverlight no longer gets a response from the asynchronous web servic...

Adding properties to Webservice proxy

I have a vb.net solution with a web reference to a webservice. Now I need another property in the designer generated code. This has the drawback, that once you update the web reference, your added code will be overitten. What is the best way to add a property to the class? ...

Matching web service results to requests in Flex

A little (!) bit of background before I can get to the question : I have an accordion control loaded with an array of grids, each of which is lazy loaded with arrays of things. I'm using an auto-generated web service proxy to retrieve these lists. I'd like for the user to be able to change the selected child in the accordion without hav...

Switching to Release Build causes runtime error in Web Reference

I've got a problem with a SOAP Web Reference that was generated by Visual Studio 2005 (.NET framework is v2.0.50727.42) - it works fine under the Debug build configuration (and has for months) but now that I want to go live and have compiled using the Release configuration, it has stopped working. Exceptions are raised at runtime whenev...

Can an ASP web service return a ZIP file?

I'd like this to be possible! Can you write a web service (using C# and an asmx) that returns a ZIP file? If so, can you give a simple example? Thanks ...