web-services

Web service API - which language is better?

Hi, I wrote a web service API which services REST requests in php. It didn't take much time to actually setup this on apache. But, I am more comfortable writing python code rather than php code. Can python be used as a server-side scripting language like php? What changes are necessary to make it work with apache? Thanks Bala Mudiam ...

Java Socket exception while trying to reach .NET WCF web service on IIS

When I call, the service's method, I have Web Service Exception happening which I couldn't figure out for now. The issue is this, I am running NetBeans 6.8 against IIS 7.0 with the Web Service written using WCF: javax.xml.ws.WebServiceException: java.net.SocketException: Connection reset at com.sun.xml.internal.ws.transport.htt...

How to call a webservice programmatically in asp.net

Dear all, How to call webservice programmatically in asp.net without using add web reference? My webservice url keeps on changing. Hence i need to capture the url at runtime and display the results. Please advice. ...

Deploying WCF services in a production environment.

The web provides an abundance of tutorials for developing and testing WCF services along with client applications that reference them all within the Visual Studio IDE. However, in a production setting, one needs to deploy services and clients on various hosts where Visual Studio is not available, and the clients need to be configured ...

Get Number of active service instances?

Hi all, Is there anyway of getting the number of active instance of the service I've tried adding a static int counter in the constructor and this works and implemented Idisposable to decrement the counter on the service but the dispose method only gets called when the service host closes? Is there any native object i can get and see t...

WCF contracts - namespaces and SerializationExceptions

I am using a third party web service that offers the following calls and responses http://api.athirdparty.com/rest/foo?apikey=1234 <response> <foo>this is a foo</foo> </response> and http://api.athirdparty.com/rest/bar?apikey=1234 <response> <bar>this is a bar</bar> </response> This is the contract and supporting types I wrot...

How do I configure a C# web service client to send HTTP request header and body in parallel?

Hi, I am using a traditional C# web service client generated in VS2008 .Net 3.5, inheriting from SoapHttpClientProtocol. This is connecting to a remote web service written in Java. All configuration is done in code during client initialization, and can be seen below: ServicePointManager.Expect100Continue = false; Servi...

Getting Java Axis to work on Windows? NoClassDefFoundError

I'm trying to consume an ASP.NET Webservice from a Java application. The java app is being built with Eclipse on a Windows box. I've installed the Webservice tools for Eclipse and I've downloaded the Axis 1.3 files and extracted all of the supporting .jar files (axis.jar, saaj.jar, etc) into my java\lib folder. My environtment variables...

.NET webservice datetime.now - time zone

I need to return server time from a webservice. I've got the following code: <WebMethod()> _ Public Function GetDate() As DateTime Return DateTime.Now End Function The code always returns time based on timezone of the connected client (if I change the time zone, the webservice returns updated time, instead of local server tim...

Newbie wants to know usefulness of web service in web application

Hello, If i several different desktop softwares installed, then making web service makes sense as all desktop softwares will access the same central remote database through web service. But what about website? Does it make any sense to use web service in website? Personally i don't see any sense in using web service for this (if i am n...

Possible to flush results back through an asmx web service?

I have an asmx web service that performs 5 tasks. It is at all possible to send back a result during the call, so that when 1 task completes, even though the web service is still running, the client can get some results back before the whole web service method completes all its work? Thanks ...

Accessing an HTTPS web service from Glassfish based web-ap

Hi, I'm trying to access an HTTPS based web service URL from a web/ear application deployed on a Glassfish application server domain. We have obtained the certificate from the vendor that exposes the HTTPS URL What are the steps required for installing SSL certificates in order to access the web service ? (Though I know the outline, let...

Can I use a WCF client proxy as a straight replacement for SoapHttpClientProtocol?

I'm talking with a web service with a generated proxy that uses System.Web.Services.Protocols.SoapHttpClientProtocol, is there any reason I might have trouble replacing the proxy with a WCF client proxy? The web service being called is written in Java and uses the Apache Axis SOAP engine. It uses only HTTP Basic authentication. ...

Client no longer getting data from Web Service after introducing targetNamespace in XSD

Sorry if there is way too much info in this post – there’s a load of story before I get to the actual problem. I thought I‘d include everything that might be relevant as I don’t have much clue what is wrong. I had a working web service and client (both written with VS 2008 in C#) for passing product data to an e-commerce site. The XSD s...

Multiple @WebService annotations in JAX-WS / CXF

I am trying to implement minor versions in JAX-WS as follows: @WebService(targetNamespace="http://mycompany.com/api/Service/v1_0") public interface ServiceRev0 { public void initialMethod(); } @WebService(targetNamespace="http://mycompany.com/api/Service/v1_1") public interface ServiceRev1 { public void newMethod(); } public c...

WS-AT with SOAP/JMS

Hello All, Can a web service with SOAP/JMS binding participate in WS-AT (Web service Atomic Transaction) ? Assuming this service is invoked synchronous. I know SOAP/Http does. Any help appreciated. ...

Apache2: mod_wsgi or mod_python, which one is better?

Hi, I am planning to write web service in python. But, I found wsgi also does the similar thing. Which one can be preferred? Thank you Bala Update I am still confused. Please help. Better in my sense means: 1. Bug will be fixed periodically. 2. Chosen by most developers. 3. Additional features like authentication tokens like AWS...

Axis2 attachments are vanishing in the response

I am using axis2 to come up with a basic web service which will get the file name as parameter and produces a response SOAP packet which will have the file attached along with the SOAP. Here is the way I am creating the service code (its simple and inspired by Axis2 sample code) public String getFile(String name) throws IOException { M...

Web service connection timeout on Amazon S3

Hi there, Im using the follow code to connect to Amazon S3 to list contents of a bucket: ThreeSharpWrapper wrapper = new ThreeSharpWrapper(AccessKeyID, SecretAccessKey); Response.Write( wrapper.ListBucket(strBucket)); And I get the following error: A connection attempt failed because the connected party did not properly respond afte...

The next step & technology towards web services.

Hi, My name is Dennis and I am pretty ambitious of creating the next big thing for the web. I have ideas but now I gotta get to work to learn the tools. I am learning Javascript. I don't know if next step for me to take is PHP or some suggests RUBY on Rails. What are the pros and cons. With your experience, I wish you could hint me ...