web-services

How to pass an Interface object to a WebMethod?

I have a .Net web service with web method which take a Interface object as parameter, whenever I try to access the method I get exception saying : Cannot serialize member Product IProduct because it is an interface. Any suggestions to solve the problem ?? [WebMethod] Public double CalculateTotal(IProduct product, int Quantity) { ret...

Problems with impersonation when connecting via VPN?

We have a Sharepoint layouts page that calls a Webservice (.asmx) to get some data. We use Kerberos/Integrated Windows Auth with impersonation and for users on machines in the domain this works just fine. However for users on a VPN (ie. their machine is not in the domain) this fails. We're getting 401s on the Webservice connection... Is ...

How to display outcoming and incoming SOAP message for ZSI.ServiceProxy in Python?

How to display a SOAP message generated by ZSI.ServiceProxy and a respond from a Web Service when a Web Service method is invoked? ...

How can I reuse an instance of a webservice?

I am running a service A which has a class X. I am going to deploy another service B on same machine which is using this class X. How can I make sure that the same instance of service A is reused instead of another. PS:Service written in JAVA. Adding: Both these services are Axis2 services. Service B is hot-deployed. Service B used cla...

How to use webservice in iphone objective c ?

Hi, I need great video tutorial for using webservices in iphone objective c.My requirment is already values are in webservice, so just i want to access the webservice and validate username and password and return back to true or false get value display on the iphone. If anybody have idea about tutorial please help me out.. ...

Apache CXF: How to secure JAX-RS web service with basic authentication

I have a Spring application that publishes some RESTful web services using Apache CXF (using jax-rs). I would like to secure access to those services using HTTP basic authentication. The username and password should be in a Spring configuration file. The main application already uses Spring Security and I would prefer not to mess with th...

PowerBuilder 10.5 sample web services client application

I am trying to get the PowerBuilder 10.5.2 sample web services application running. I can open the workspace just fine, and I can see the objects and even run the app but I get a "bad runtime function reference" error when I try to invoke the service. I believe I have installed all the requisite parts: PB 10.5.2 .Net 2.0 SDK Web sea...

Specify Web Service Reference Auto-Generated Entity base class

Question: Is it possible to (automatically) change the base class of auto-generated domain objects created through the Visual Studio 'Add Web Reference' functionality, without manually modifying References.cs? Background: When we add a reference to a web service (via the Visual Studio 'Add Web Reference' functionality), a number of clas...

Can you return an array from a JAX-WS @WebMethod?

I'm pretty sure you can, but in addition to answering the question in the title, could you also explain the pros, cons, caveats, if any, to doing so? I know that you can't return a List, Set, Collection, Map, or any interface, from a WebMethod (which is stupid, IMO, but I don't know what the design reasons were should I should probably w...

Number of Web services/proxy in a smart client applicaiton

Hi, I am working on a smart client application and it's using XML web services. There are so many work list in this application and the data objects are associated each work list. We can create a web service for each work list OR We can have a single web service to serve all work lists. Which one is the best approach in terms of perform...

RESTFful/Resource Oriented Design

Suppose I have a three level hierarchy consisting of school, students, and classes. If I expose student as a resource, my question is whether I should always return the parent "school" and the children "classes" along with that student, or whether there should be parm that the user includes to indicate such. Perhaps something like &de...

Class Reference Collision with Web Service Proxy Class vs. Original Class

basically this is what's going on after researching this more. If I try to use the type returned by a certain web service method anywhere in my test web project code such as in code-behind I get namespace conflicts because now the web project sees 2 different definitions for it. One as a proxy class in my web service reference namespac...

(aren't web services platform independent?) web service works in .net 2.0+ projects, but not .net 1.1

I've been supplied a web service by a colleague that I tested by creating a quick .net3.5 project. the service exposes a simple method that returns a DataTable and everything works just fine. The production project is .net1.1, though, and I get a runtime error on the line that creates the web service object: The XML element '' from n...

Bad idea to transfer large payload using web services?

I gather that there basically isn't a limit to the amount of data that can be sent when using REST via a POST or GET. While I haven't used REST or web services it seems that most services involve transferring limited amounts of data. If you want to transfer 1-5MB worth of data (in either direction) are web services considered a bad ide...

Python Decorator for GAE Web-Service Security Check

In this post, Nick suggested a decoartor: http://stackoverflow.com/questions/1499832/python-webapp-google-app-engine-testing-for-user-pass-in-the-headers/1500047#1500047 I'm writing an API to expose potentially dozens of methods as web-services, so the decorator sounds like a great idea. I tried to start coding one based on this sam...

What is the Proxy Class

Is a web service reference the proxy class itself? Or is it the classes created inside that you see in object explorer when you look at your web service reference? example, I created this web service reference http://www.elbalazo.net/post/TestWebProject%5FObjectExplorer%5FWebReference.jpg I assume ServiceAuthResponse is one proxy cla...

C#, Web Service Method Singleton

Not sure if this is the right terminology, let me explain what I want. I have a web service that's available on the network - the web service has 1 web method. What I want is... if the web service is running and performing tasks and another call is made to this web service, I want the 2nd call to fail or pend for a certain period of ...

Consuming webservices in Javascript.

I would like to consume my Axis2 webservice through a JavaScript client. ...

Previously working webservice stoped working

All of a sudden we started to get this error in our webapplication. It's wierd because it has been working for months and months and noone has ever touched the code. Does anyone have any idea why this error could occur all of a sudden? Server Error in '/' Application. System.Web.Services.Protocols.SoapException: Server was unable to p...

Calling webservice from WCF service

I am having an issue consuming a webservice (c#.net) from a WCF service. The error i am getting is EndPointNotFoundException "TCP error code 10061: No connection could be made because the target machine actively refused it" I wrote a unit test to check if i could send a request to the web service and it worked fine [The unit test is usi...