web-services

Timeout on slow WebService Calls in C#

Hi, im calling a webservice with variable response times. I want to be able to "Timeout" the request if a response takes longer than 15 seconds. Meaning, i will move forward in my code, not waiting for the response. Everything is done in C#. Could anyone help me out with some code examples on how to do this? ...

Changing the namespace in ASP.NET .ASMX webservices?

I'm trying to call an ASP.NET .asmx webservice, from javascript, using other than the default namespace that Visual Studio uses when it creates it. When I use the Visual Studio wizard to create a webservice named Hello, in the folder WebServices, it creates this: namespace MyWebSite.WebServices { [WebService(Namespace = "http://tem...

How to retain sessions across calls to an ASP.Net web service from a Soap client

Here is how my system is set up: A web service using ASP.Net web service The web service has a web method with EnableSession=true A client which refers to the web service using "Service References" (note: not "Web References") The app.config of the client has allowCookies=true On the client side, I have the following code to upload a...

How to read XML data which is stored in array.

I have a response from Web Service (XML response) in NSArray which is like: Table Name John Name Address Atl /Address /Table Now I want to display only Name from this array in my table view. How to do this? I tried with NSDictionary but I am getting some errors. Someone with good idea how to do it? ...

NoClassDefFoundError when invoking web client class created from Axis

I am using the Axis plug-in for Eclipse to generate the client classes for calling a web service written in C#. The following class files are being generated: org.tempuri.Data org.tempuri.Service1 org.tempuri.Service1Locator org.tempuri.Service1Soap org.tempuri.Service1Soap12Stub org.tempuri.Service1SoapProxy org.tempuri.Service1SoapStu...

Choosing SSL client certificate in Java

Our system communicates with several web services providers. They are all invoked from a single Java client application. All the web services up until now have been over SSL, but none use client certificates. Well, a new partner is changing that. Making the application use a certificate for the invocation is easy; setting javax.net.ssl....

Sitecore Clear Cache Programatically

Hello, I am trying to publish programatically in Sitecore. Publishing works fine. But doing so programatically doesn't clear the sitecore cache. What is the best way to clear the cache programatically? I am trying to use the webservice that comes with the staging module. But I am getting a Bad request exception(Exception: The remote s...

C# - Logging into this website?

How can I make my C# app log in to a website that requires username/password authentication? The page uses Apache Struts, if it matters. ...

How to make Spring MVC Controller error out if given a query param that is not valid or with a different case?

Title pretty much says it all. One of the requirements of a web service I'm working on is that if a query param name is given that is either invalid or not case-exact with what's expected, it should give an error saying so. Is there anything in Spring MVC that can do this via configuration or some kind of setting? I imagine it's possib...

Consuming a WDDX REST-ish API with WCF

I've got some somewhat old school web services that I need to talk to. They are somewhat REST-like, in that they are called with regular GET and POST HTTP requests, and return WDDX-formatted data in the response body. The consumer code in this instance is .NET. Ideally, I'd like to use WCF to take advantage of all of its magic. The stic...

How to list available web services?

How can I get a list of available webservices from a server/directory? For example from: http://localhost/ReportServer_SQL2008/ Which should at least give me ReportService2005.asmx I was wondering if there wasn't a ReportService2008.asmx ...

Grails + WS Client throw an CXF exception

I'm new in grails, and trying to build a backend for my webservice, the apps only access the webservice provided not access to databases directly. package backend import org.grails.plugins.wsclient.service.WebService class BackendController { WebService webService def index = { def wsdlUrl = "http://localhost8080/Ba...

what is inquiry url while creating a UDDi registry ,when i go to publish a web service ??

while creating a UDDi registry its ask for inquiry url what is it?? ...

Webservice to display products

Hi, Im building a small webshop in .net .The webshop solution will contain several "webshops" that use the same server. My question is this: When i have a product menu and product listing. Will there be any performence problems with using jQuerey Ajax calls to get the selected product/products? There will be many calls to the same webse...

A java.lang.ClassCastException while accessing web service method written in java. jaxb

Hi All, I am writing an application where i have to interact with MS SQL database. In my application i am creating web services (using javax.jws) for accessing database tables. i am creating one operation(method) in web service with return type java.lang.Object[][] as follows : @WebMethod(operationName = "get_HistoryInfoByUser") publi...

Publish a web service on localhost in java eclipse

can any one tell me what are the steps to publish a web service in java using eclipse on localhost tomcat? ...

how to exchange session or cookie variables between two webmethods in asp.net webservices

I have two webmethod i have used session variable to exchange the username variable between two webmethods but its displaying null in second webmethod ,can we use cookie as alternate to session to store and retrieve username [WebMethod(EnableSession = true)] [ScriptMethod(ResponseFormat = ResponseFormat.Json)] public bool Submi...

which language to use for creating a RESTFul web service?

I will have to create API calls for my system to be exposed to the outside world. Which language would be the best fit? I will have to create proper authentication (OAuth) and I am looking to build in such a way that it is very reusable and extensible. If I had to choose between Python and Ruby, which one should I and why? (considerin...

How to call WADL web service from iPhone

Hello All, Please can anybody help me i have problem to call web-service in iPhone which is WADL like this http://docs.sun.com/app/docs/doc/820-4867/ghmfe?l=en&a=view How to call that kinds of web service from iPhone, in the web-service there are POST, GET, DELETE and PUT method that how can i request from iPhone Thanks in advan...

java web service client instance problem on glassfish v3

Hi, I have deployed web app containing web service on glassfish v3, generated client classes with wsimport, and Im using client in the same web app. I get the fallowing problem when I want to create an instance of ws client in servlet: javax.xml.ws.WebServiceException: Method daLiOpPostoji is exposed as WebMethod, but there is no corre...