web-services

How to configure CXF web services so that Glassfish can monitor them

We deploy web services implemented by using the CXF framework on the Glassfish application server. Glassfish has the possibility to monitor Web Services deployed on the server through it's management console. We would like to be able to use these monitor features of Glassfish towards the web services implemented by using CXF, but when w...

Configuring Tomcat to consume webservice over SSL

Which steps should be taken to consume a web service on a remote server over SSL? The application is a Java application using Axis WS Framework running on Tomcat 6. I'm aware of e.g. the instruction on http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html, which, however seem to mainly describe how to configure the server to accept SSL...

How to customize the soap encoding in Flex Builder 3?

Hello, Friends! I use the Flex Builder 3 to develop a client app for Java Server. The client communicates with the server by means of a WebService. If I work with webservice operations that do not use parameters or use only simple types (String, Number ...) as parameters - all goes well. But If I use operations with complex types such ...

How to mock a web service

Do I have to rewrite my code to do this into an interface? Or is there an easier way? I am using Moq ...

sgen deserialization different from JIT deserialization

I have some web services that are returning data as an ArrayList of varying data types. One of those data types is MyType, which is a serializable type defined in another dll. We've recently moved from .NET 1.1 to .NET 3.5, but can't change the API of the web services, so we need to stick to ArrayLists for now. We have a Web Service P...

What is reponse.d when returning data from a WCF Service with ContentType of "application/json"?

I have a WCF service that has webHttpBinding and has enableWebScript turned on in it's endpoint behavior configuration. The response from the service looks something like this HTTP/1.1 200 OK Date: Fri, 23 Oct 2009 20:09:02 GMT Server: Microsoft-IIS/6.0 X-AspNet-Version: 2.0.50727 Cache-Control: private Content-Type: application/jso...

Webservice.wsdl and credentials

So I've got a bit of an issue I'm trying to work through. Perhaps some Flex guru could assist? I have a WebService instance that attempts to load a WSDL file from our JBoss Application Server. If I do something like this: webService = new WebService(); webService.destination = WebService.DEFAULT_DESTINATION_HTTP; webService.wsdl = "htt...

SoapFault exception: [HTTP] Unsupported Media Type when accessing Java web-service from PHP

I'm trying to connect to a Java web-service using the Zend_Soap_Client from the Zend Framework v1.9.0: <?php include( 'Zend/Loader/Autoloader.php'); $autoloader = Zend_Loader_Autoloader::getInstance(); $client = new Zend_Soap_Client('https://webservice.com/webservice-war/webservice?wsdl' , array('encoding'=> 'UTF-8')); try{ $resul...

Should the status field in the output of a REST-style API call be a numeric code or a string?

I have a REST-ish API that returns JSON. One of the output fields is status, which indicates if the call succeeded. I gather that it's somewhat standard to use numeric status codes such as 200 success 400 syntax error 401 authentication error 402 general error 404 user not found 408 timed out 500 fatal error 501 not yet implemented ...

Passing Entity on ASP.NET Web Service

This might be very easy, but What I am trying to do here is, I am trying to pass a Customer Object to a Web Service Method. Customer class is on Entity namespace and it is serializable, and I am adding reference to both of my ASP.NET application which calls web service and pass Entity.Customer Object and also in WebService which accepts ...

Preserving state in Silverlight 3

Hi, I'm developing a Silverlight 3 Application which I want to connect to a webservice with a provided .dll or with SOAP. But the .dll is not suited for Silverlight so I can not do that. And I can't access the SOAP service because of cross-domain issues (I do not host it so a clientpolicy xml will not do). So my solution is the include...

Request-reply model for hybrid SOAP over HTTP/JMS over middleware

One of our products implements the following one-way web service structure: Server <--------------------- Middleware <---------------- Client SOAP over JMS (queue) SOAP over HTTP In this model, clients send SOAP messages over HTTP to our middleware (Progress SonicMQ). The messages get pushed into JMS queues by Son...

how do i set a specific domain which can use a ASMX service?

I want to set my default Domain name for my site to be given access only by the webservices. I'm using the webservices in JQuery Ajax ...

Axis web service hangs because no connection-close is returned

I have a Axis 1.4 (with Spring) web service client consuming a PHP web service (running on Apache). This works perfectly in the development environment, but in the production environment the code execution hangs somewhere in the Axis library directly after the client has received the SOAP response. I have identified with Wireshark that t...

How to add a Web Service to a Delphi 2006 app?

Hi, I have an application developed with Delphi 2006 using Indy 10. Does anyone know how to add the executable file a WebService feature so users can interact with it via SOAP? I've seen that the examples provided by Delphi need to have Indy 9, and since our application depends on Indy 10, going back to 9 is not an option, and unfortunat...

Parsing prototype AJAX.response XML in IE

Hi I have an xml webservice which I'm fetching using PrototypeJS. The xml has the correct content type and is well-formed, and looks like this: <GetTokenResponse xmlns="http://tempuri.org/"&gt; <GetTokenResult>F655100D64F098F0AC33AFF414A4A0D5</GetTokenResult> </GetTokenResponse> The AJAX request is completing successfully, and I ...

Bizarre System.Net.WebException

I have a program that makes repeated calls to a web service that works fine during the day, but during nightly builds and testing the program repeatedly throws the following exception: System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target m...

Approach for REST request with long execution time?

We are building a REST service that will take about 5 minutes to execute. It will be only called a few times a day by an internal app. Is there an issue using a REST (ie: HTTP) request that takes 5 minutes to complete? Do we have to worry about timeouts? Should we be starting the request in a separate thread on the server and have ...

Nusoap, server side (php) and client side ASP classic.

Hi there, I am trying to call a web service (using nusoap), which work well when I call it with a php client. It returns a list of mail address. (there are plenty of examples around on the web about php/php or php/asp.net, etc...) but, I want now to be able to call this web service with classic ASP I have found noth...

Save data through a web service using NHibernate?

We currently have an application that retrieves data from the server through a web service and populates a DataSet. Then the users of the API manipulate it through the objects which in turn change the dataset. The changes are then serialized, compressed and sent back to the server to get updated. However, I have begin using NHibernate w...