web-services

What's the best way to create a client library for a web service API?

We have web service running for one of our projects. We want to be able to access this web service similar to how you'd access an API (such as Google Data, etc.) where you have client libraries in several languages: .NET, Java, Python, etc. You'd be able to download these libraries (usually .DLL) from our project's website and then inte...

Web services - XmlInclude in a derived class instead of a base class?

Hi, I am using an abstract class as a parameter in a web service call. Currently, I am including an XmlInclude of a derived class in the base class, like so: [XmlInclude(typeof(DerivedClass))] public abstract class BaseClass { } However, I'd rather not include all of the derived types in the base class. In http://www.pluralsight...

Stateful Webservice

Possible Duplicate stateful webservices I have a need for a stateful webservice in our organization. However, everywhere I read online says that building a stateful webservice is bad programming but nothing ever says why. I guess I don't understand what is so bad about it. I also don't really understand why they would give a wo...

Loss of data in a JQuery call to a WebService

I've made a JQuery function that makes a call to a web service, the web service returns an int but somewhere between the web service returning its value and the JQuery picking it up the data is getting lost. below is my Jquery Function: //Make a call to a web service to get the latest number of comments for this item WebDesign.wfGet...

Is it possible to redirect a url to another using a webproxy ( such as fiddler )

I'm trying to parse a WSDL file which is in another server but has hard codded "localhost" all over the document. When I fetch it, obviously the program complains "connection refused" because nothing is running in my machine. My question is: Is it possible to use a webproxy ( such as fiddler ) to redirect those localhost request to m...

Asynchronous Callback method is never called to give results from web service from Silverlight

I'm calling off asynchronously to a web service (Amazon Web Services) from a Silverlight app and my callback method is never actually triggered after I start the asynchronous call. I've set up another web service proxy in a console app, and I'm able to make a synchronous call and get a response using the same arguments without any issue...

How can I cache the marshalled SOAP XML generated by Apache CXF for a particular Java Object to improve performance?

In my application, we have a webservice method called getFoo() which returns a Foo object. The getFoo() method is called several hundred times a second. The Foo object is Marshalled from our Java object to the SOAP XML response using Apache CXF. From profiling our application, we determined that the marshalling of this object (java ...

Whats ADO.Net Data Services? and how it can help me while building ASP.Net websites?

Whats the ADO.Net Data Services ? Whats the advantages it will give me while building an ASP.Net website. I used to make my JavaScript client side code call a web service and get back a json for Ajax calls on my page. Is ADO.Net Data Services something which will help me in this scenario, it can simplify returning the data or its talk...

Deploying a WCF Service

Hi, I am using WCF for the first time. I Have successfully created the service and it works fine on my local machine. I want to know the steps involved for deploying the service to the client environment (including changes to the config file, IIS settings) and any other miscellaneous settings. ...

Web service access from Silverlight

Hi, I have a problem with a my Web service and i need help. I have a Silverlight project and the ASP part Silverlight.Web. In Silverlight.Web a added a Linq to SQL file, a database userd to validate user login, and a created a service, a asmx file. In Silverlight project a added a Service Reference for my asmx Web Service. After build ...

Is RESTful faster than SOAP? and when to use one of them?

Duplicate: This is a duplicate of "What are the best uses of REST services?" and many others. Please close it. In web development: Should i learn RESTful services very well and make all my future projects using it? Is it faster than SOAP services? When to use which? There is certain cases i should use one of them and others no? ...

Silverlight WCF web service hosting on domain.com and www.domain.com

There's so much stuff on this online but no one seems to be able to answer this... Hopefully someone here will be! So i have a WCF web service hosted at godaddy.com. Everything works great when i try accessing it using: http://www.domain.com/DataService.svc problem is when i remove the www i.e. http://domain.com/DataService.svc Here...

How do I rename a file using the SharePoint web services?

I have a custom definition for a document library and I am trying to rename documents within the library using only the out of the box web services. Having defined a view with the "Name" field supplied and trying the "LinkFilename", my calls to rename a file are respectively returning a failure or ignoring the new value. How do I rename...

IE7 Javascript Performance...

I am trying to develop a application that has quite a bit of client side based scripts. The page has sections that interact with each other based on different inputs. The problem is when you get alot of content on the page the page slows down DRAMATICALLY in IE7 due to the poor javascript engine integrated with this browswer and also pa...

How to call a web service using stored credentials?

I need to call a web service running in a Windows domain that is different than the one the (Windows Forms) client is running in. The web service is secured using Windows authentication. The domain credentials for web service's domain are saved in the client's user profile (Saved user names and passwords in XP), but I have not been ab...

how i get data from crawler to my site?

what is the best way to get data from external crawler to my DATA BASE, to my site i work in LAMP environment, is web services is good idea ? the crawler run every 15 minutes. ...

File.WriteAllBytes causes error "Insufficient system resources exist to complete the requested service"

Hi, I have a standard SOAP webservice with a WebMethod which accepts a byte array and then performs a [WebMethod(true)] WriteFile(byte[] Data, string FilePath) { File.WriteAllBytes(FilePath, Data); } If this process is passed a large file, e.g. 2 meg it is bombing out with the following error message: Insufficient system res...

ASP.NET Web Service - Optional Parameters?

I have a ASP.NET web service. This web service works fine. However, the WSDL lists some parameters as optional (minoccurs = 0) and others as non-optional. Some of the optional parameters are actually not optional, others which are marked as non-optional are actually optional. I would like to fix this, but I can't find the location where ...

VS2008 - error in deserialization from web service

Hi, I have an error in deserialization from calling an operation in an external web service (https). The error is "Error in deserializing body of reply message for operation 'score'." Score is a credit score operation. The stack trace includes "There is an error in XML document (2, 157)." but I don't know how to get the XML document so I...

Why does VS2005 create both a member and a field for web service fields?

When adding a web reference in Visual Studio 2005, I've noticed that every element within the wdsl is duplicated. E.g. for element ItemOne, the interface it generates contains both ItemOne and itemOneField. Both are the same thing, but one is a member and the other is a field. I suspect the field is just a getter for the member. I ca...