web-services

WS-Security overhead when using message security

The following is a message logged in Microsoft Service Trace Viewer. I believe it represents a single call to a parameterless method that has an integer return value on a WCF Service (with WsHttpBinding). I am using message level security (with username credentials) and created a development server certificate to get this to work. I am b...

How to return datatable / dataset from c# web service as JSON

I have web services returning strings as JSON by dint of using [WebMethod] [ScriptMethod(ResponseFormat = ResponseFormat.Json)] and calling them from the client with headers Content-type = application/json this was all going well until I needed to return a table of results. I have tried using the code here http://www.west...

Best practice on exposing webservices

I am new to a development team that is adding a layer of webservices between domain and gui. The approach has a lot of potential but I wonder how to manage the webmethods. At the moment there is just a handful or so webmethods but there will be a lot of them when we get through to the other side. I am sure there must be some very cleve...

how to generate web service client dynamically

i got a problem. suppose on the other side, the WSDL will be always changed, for example, the web service on the otherside which descriped in the WSDL file has only method, but the name of the method might always change, today call methodABC(), tomorrow will be change to methodDEFO().. suppose in JAVA, is there anyway, i can dynamica...

Relative Web service references in .net and silverlight

Is it possible to make these relative? for example: webservice.asmx rather then http://servername/webservice.asmx ...

How to create and submit a form using Java Script

I'm writing a Firefox extension that's to be used in house. Basically, I need to submit a pdf file and some text values to a web service. Right now I have a html page that does this. I need the extension to automate the gathering and submission of the data to the web service. Here's the html that works. <body> <form name="frm_upload_fi...

First call to web service is slow; consumed by compact framework win app

i have a .net 2.0 web service running on IIS 7.0. i consume this service from a compact framework written application (CF 2.0). The first call takes 13 seconds, all subsequent calls are super fast (under 1 sec). No data is cached. Any ideas how to solve this? ...

Lisp soap client

It was very easy to use Apache CXF to develop a client for a SOAP web service. All I had to do was call wsdl2java and all the required classes were present. Is there such a client for lisp? If not, what can I do to write a soap client for lisp? The only restriction is that I don't have access to commercial implementations such as franz/l...

Whats the best way to send array of objects from javascript to webservice?

I have in my javascript these 2 functions "classes": // product class function Product() { this.id; this.qty; this.size; this.option; } // room class function Room() { this.id; this.type; this.products = []; } I have my js logic which fills rooms and their products. Now i want to send array of rooms to a webservice to do some...

Can I control the XML element names for an array and its items as the return value from an asynchronous .Net ASMX web method?

Consider the following .Net ASMX web service with two web methods. using System; using System.Runtime.Remoting.Messaging; using System.Web.Services; using System.Xml.Serialization; namespace DemoWebService { public class ArrayItem { public int Value1; public int Value2; }; [WebService(Namespace = "http://begen.name/xml/n...

[JAX-WS] How can I share classes between client and server?

I've created a jax-ws service endpoint and now I want to write a client. I want to have a shared jar between the client and server for common (JAXB annotated) entity classes and interfaces for the services. Is it possible to force jax-ws to generate (or allow me to write) a client using my existing entites/interfaces? For those that are...

RESTful web services: trying to achieve HATEOAS with custom XML

Hi there, I am working on an enterprise system that will utilise a RESTful web service between mobile clients and a central server. As RESTful as possible, let's say. My question relates to HATEOAS (hypermedia as the engine of application state), and the use of custom xml in HTTP response bodies. This system will never ever be used by...

How to synchronize updates at different sites? .Net

I need to synchronize 2 sites content. Every post in first should be mirroring at second and vice versa. What is the best way to do it using .Net - just simple web service which check every time interval updates and post it, or maybe smth else, like sync framework? can't find good example to do it. ...

JAXWS Interceptors

What are JAX WS Interceptors? Where do I find info regarding the same! ...

Client details in webservice

How can i access client details like IP,Browser etc in a web service in java? ...

Is there a way to restrict access to an ASMX Webservice, i.e. the asmx page and its WSDL?

I have a C# .net webservice that I need to restrict access to. I already require my consumers to use a username and password to call the service. But, is there a way to restrict access to the actual asmx page and the WSDL? I would need to restrict access to the webservice by username/password and IP address. If a user did not have th...

Should options in libraries or frameworks default to most commonly used value?

With reference to Reusing HTTP client objects Why would you not build this as a default option vs. requiring to add code like options.setProperty(HTTPConstants.REUSE_HTTP_CLIENT, "true"); AXIS2 being a web service engine framework makes it even more of a candidate to default this functionality. ...

creating new javax.xml.ws.Service not returns

I am having a strange problem occuring somtimes from a specific machine (windows 2003). I am trying to create a new javax.xml.ws.Service instance with host and qname as parameters. service = new SomeService(url, qName); the service creation (ONLY SOMETIMES!) never returns. While the creation is stucked on my prod machine, development...

Can I change a web service reference URL in the Config file?

I have an application targeting the 2.0 .NET framework. The solution is using the VS web service reference folder. A grep through the solution reveals that this URL lives in a handful of files. However in the deployed application a search shows that the URL lives in only the .config. So what happened to the .disco and .wsdl? Are they com...

Custom HTTP Header with webservice call

Hi, I need to make a webservice call in C# and with every request i need to send a custom HTTP header. How do i do this. thanks ...