web-services

What's a common way to test an API that makes requests that return very dynamic JSON

We've written a .NET wrapper API for a set of web services. All this does is make requests and return JSON data. What's a good way to build a test framework for this? I can't think of how to do unit tests since I'd have to know the expected JSON string I'm getting back and that's very dynamic and complex. I thought of doing a WebTest but...

Getting "WSE003: The input was not a valid SOAP message" on every call to an WSE 2.0 SoapHttpRouter

I already tried some different SOAP-messages, even one which has an empty header and body, but without success to get into my SoapHttpRouter-derived class :-( Also, when I hit the .asmx-URL with the browser it comes to that error.. here detailed stack trace of the error: [NotSupportedException: WSE003: The input was not a valid SOAP me...

Web Services with Google App Engine

I see that Google App Engine can host web applications that will return html, etc. But what about web services that communicate over http and accept / return xml? Does anyone know how this is being done in Goggle App Engine with Python or for that matter in Java (JAS-WX is not supported)? Any links o samples or articles is greatly appr...

ASP.NET Web Service Security

I've built ASP.NET Web Services in the past that either were publicly consumed, or used Windows Authentication. I now need to build a Web Service that uses the SOAP 1.1 protocol and it needs to be secured with a username and password from the caller. It seems setting up the infrastructure for WCP is overkill for one or two Web Services...

Specify the port precisely for a webservice in Web.config

I want to precisely set the port for a .NET 3.5 web service using the client services api I have been trying to get this to work using http://msdn.microsoft.com/en-us/library/bb546195.aspx to no avail I have my domain mydomain .com / Appservices where is Appservices is an app root. I can login to my web site using the login page but t...

Using Thrift with Delphi Win32

I'm interested in connecting to the Evernote Service API, which uses Thrift, from a Delphi Win32 app I am developing. I have done very little work with web services in Delphi, and nothing at all with Thrift. Where would be the best place to get up to speed w/using Thrift from Delphi? ...

Consuming JSON with JavaScript and PHP

2 short questions. I would appreciate an answer or a pointer to an answered question on SO (I searched before asking :)). I'd like to consume one of the TRYNT's web services that returns a JSON object (like this one for example). Am I right in deducing that if they don't specify JSONP, there is no way I can consume those services from ...

Problem with Java Web service. Unable to create JAXBContext

Dears, I used NetBeans to create a Metro Web service and GlassFish to be deployed on. I get an error when I try to build -but only- if one of the operations in the web service return an Object instead of primitive types or String. the Error is Deploying application in domain failed; Deployment Error -- Exception occured in the wsgen ...

Web services increase security and decrease performance?

My WinFroms application uses tableadapters & datareaders to fetch data from an SQL server. I am thinking of replacing the datareaders stuff with web services for security reasons. I guess one of the cons will be the execution speed. Is it true? Or... ...

DNS resolution for WCF service discovery

I have a WCF service that is hosted in IIS on a public web server, and needs to be discoverable. Thing is, when I browse http://myserver.mydomain/myfolder/myService.svc, the page that is displayed shows the actual machine name instead of the URL I provided, e.g. http://myRealServer.myRealDomain/myFolder/myService.svc?wsdl as the link to...

Caching using Axis 1.4 + web service response caching at client side

I want to cache web services response XML at client side. How can i cache response XML at client side, so we don't have to wait for Server side response ? Is there any mechanism available in Axis 1.4 that helps to caching server side response XML at client side ? Scenario : I am consuming 1 search detail service method, which hits the ...

Access Denied using MSXML

I have a VB6 backend for a classic ASP site. That VB then calls a web service on the same server using MSXML2.XMLHTTP. This works all of our servers but one. If I set the web service site to accept anonymous login it will work however if I force only integrated security MSXML returns an Access Denied error. I'm using code from the examp...

Java Wrapper to Perl/Python code

I have to deploy some Web Services on a server that only supports the Java ones, but some of them will be done using perl or python. I want to know if is possible to develop a Java wrapper to call a specific code written in perl or python. So, I want to have all the Web Services in Java, but some of them will call some code using other l...

Passing Auth to API calls with Web Service References

I am new to web services. The last time I dealt with SOAP was when I created a bunch of wrapper classes that sent requests and received responses back per some response objects/classes I had created. So I had an object to send certain API requests and likewise a set of objects to hold the response back as an object so I could utilize t...

Using Web Service or Web Service Reference

This relates specifically to .NET. And I've decided to use the Web service Reference instead of Web Service...I think though my questions below really are for either situation and I want to try to get the overall idea of this. So here is the issue for me. Let me first explain where I'm coming from. One past projects, I've talked to ...

Consume REST service with JME (or J2ME)

Hello, I need some help getting started with this. I need to know how to call the REST service and parse the xml. My php script only sends back some xmlcode, nothing else.(no wsdl or uddi) The platform for the Nokia 5800 is S60 third edition.(that one will apply) The Nokia sdk go's by the same name. I installed Netbeans for this pro...

.net WebService method with "[SoapDocumentMethod(OneWay = true)]" Cause Thread Aborted

I have a .net Web Service. All the web methods require to be [SoapDocumentMethod(OneWay = true)]". But with this setting the web service process gets aborted abruptly. System Configuration: net 2.0 IIS 5.1 Exception message: "Unable to evaluate expression because the code is optimized or a native frame is on top of the call" ...

Tutorial for developing Web Services with Apache Axis 1.5

I'm new to Web Services under Apache Axis and I've worked through this tutorial which was really helpful (written for beta1, but seems to work up to 1.2) I'm having trouble with using the newer version of Axis though as the tools and behaviour seems to have changed significantly. Is there anything around the same level for the more rece...

.NET ASMX web service to use WSDL file on disk instead of auto gen?

I've got a WSDL file created in Altova XMLSpy, that is then used in Altova Mapforce to map out a service. This is then used to create a .NET service (asmx). The problem is the way Altova Mapforce generates the service webmethod. Instead of the interface created in the WSDL you get a generic webmethod that takes a parameter of type arr...

How to remove character encoding for appache axis 2 message response

We use Axis2 to generate web service response of which the body is a xml message that generated from a system using windows 1252 as encoding. Our Axis2 system, will wrapped this body inside a soap message using utf8. The message is then send to the caller. However, the caller keep reject the message with "Invalid byte 1 of 1-byte UTF-8...