web-services

Using application domain model on WCF service

I just referenced my application domain layer dll to the new WCF service that I am creating. On my initial tests I am able to use and return the objects from my domain layer on the WCF service. Question that come in my mind is none of my domain claseses have [DataContract] attribute so does this create a limitation or problem for me th...

Sharing domain model with WCF service

Is it good practice to reference my web applications domain layer class library to WCF service application. Doing that gives me easy access to the already existing classes on my domain model so that I will not need to re-define similar classes to be used by the WCF service On the other hand, I don't like the coupling that it creates be...

How to return custom objects with WebServices.

[Problem] Having created a shared library that is to be deployed on a server machine and client machine how do I communicate between the client-server with the classes provided by the library? Transferring the information via webservices does not seem to work as the serialised object returned by the web service is a webservice class whi...

Avoid iPhone constant polling a web-service?

I have an iPhone application that needs to be updated as soon as a change is made to the server. How can I have the server "push" data to the iphone rather than the iphone constantly polling the web service? EDIT: I want th iPhone to receive JSON updates as soon as the server processes them, without having to request. I suppose since t...

Web Services in C# .NET and objects serialization - basic questions.

Hello folks. I am trying to create a simple web service in .NET but my knowledge is limited on that subject. Here is the code of this web service: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Services; namespace WebService1 { /// <summary> /// Summary description for Se...

Which .NET DataType for SQL-Query-Data as webservice return?

hi, I am coding a webservice in ASPX which queries a local SQL-Database: SqlDataAdapter dAdapter = new SqlDataAdapter(query, connString); SqlCommandBuilder cBuilder = new SqlCommandBuilder(dAdapter); my question which complex DataType (obviously serializable) should I use? One which my WinFroms-Client can receive and put in a DataGrid...

Paid access subscription to a website.

We have a SharePoint site and we now want to only allow users that have registered and paid to have access to the site by yearly subscription. We would like to automate the process of managing the subscriptions and creating the users as much as possible. I understand we will not get a turnkey solution. However, does the SO Community ha...

When to use WCF and when to use ADO data services in ajax websites?

I am really confused about when to use WCF and when to use ADO data services in my website ajax calls. I always make my javascript code call a webservice to get data from server "ajax". But while reading in both WCF and ADO data service, i am not sure when to use each and when not use?, and if they replace each other in my case? or can...

How should I compensate for a bad WSDL?

I've come across several examples of SOAP-based web services where automated tooling fails to build a client that works. Investigating these examples leads me to believe that the WSDL the service uses to describe itself doesn't quite match the service that's being provided. Maybe a wrong type somewhere, a different data structure - some...

Duplicate C# web service proxy classes generated for Java types

My question is about integration between a Java web service and a C# .NET client. Service: CXF 2.2.3 with Aegis databinding Client: C#, .NET 3.5 SP1 For some reason Visual Studio generates two C# proxy enums for each Java enum. The generated C# classes do not compile. For example, this Java enum: public enum SqlDialect { GENERIC...

Download specific version of a file from SharePoint using web services

Can someone provide a sample for downloading a specific version of a file from SharePoint using web services? Normally I would get the file with the Copy Web Service (.../_vti_bin/copy.asmx). But I don't really know how to specify a version. Regards Anton Kalcik ...

Deserialization error in a new environment

I have a web application that calls a third-party web service. When I run it locally, I have no problems, but when I move it to my production environment, I get the following error: There is an error in XML document (2, 428). Stack: at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeser...

Alter todo with sharepoint workflow webservice

I have a workflow defined in Sharepoint which collects user data. The workflow generates a form with a simple user input text box and three buttons: Cancel, Complete Task, Save draft. How can i complete this task using the workflow webservice? I can change the text box's content, the percent complete, the status etc. via the workflowserv...

Returning a inherited class as base class type with Web Services

I suspect I am being very silly here but I have the following setup Class MustInherit myBaseClass 'some stuff End Class Class myInheritedClassA inherits myBaseClass 'some more stuff End Class Class myInheritedClassB inherits myBaseClass 'some more stuff End Class I then have a web service that has a method F...

Vote for the best protocol for the given scenario

Hello! I have a design decision to make. I need your advice. Requirements: A server and a client. client is typically a mobile phone. Connected through the Internet. Server and client want to talk to each other. Exchange of text, multimedia between the client and the server. Text would be some standard format. that is predecided. Rea...

Consuming an Axis-generated web service from a VS2008 solution in c#

Hi there, I'm trying to add a web reference to an external Axis - generated web service to a Visual Studio 2008 solution. The url I received points to a WSDL that I can successfully access through a browser, and I see all the WService details. The Axis version used was 1.4. But if I run wsdl.exe or when I add the reference in VS2008 I c...

SharePoint Search Keyword Query

Does anyone know the proper keyword or Query property to bring back ONLY sites? I am trying to create a SOAP QueryPacket for the SharePoint Search Web Service that allows users to search for sites based on their titles or descriptions. I don't want any documents or lists or list items returned in the results. ...

Jax-WS and annotations

We currently have this @WebServiceRef(wsdlLocation = "META-INF/wsdl/localhost_8080/SwitchWSService/SwitchWebService.wsdl") private SwitchWSService switchWS; Can't we point to the real web service and it still work. @WebServiceRef(wsdlLocation = "www.web.com/SwitchWSService/SwitchWebService.wsdl") private SwitchWSService switchWS; ...

Consuming Sharepoint web services

How can I consume Sharepoint web services so that I can be able to use Sharepoint document library in the stand alone asp.net application. I have added the web reference to http://&lt;server-url&gt;/_vti_bin/lists.asmx ...

How to serialize objects in flex for a c# backend

We are developing an app with a Flex frontend and a C# backend, connected through web services. We are using the FLex Builder 3's Web Service Manager to autogenerate the webservice classes. The problem araise when Flex serialize our objects, for example, when we have a Number property with no value, this is serialized as NaN, and our bac...