web-services

How do I verify the URL that ActiveResource intends to use on a call?

Hi there, I'm trying to request data from another Rails app, but I keep getting a "URL not found" error. Is it possible to use the debugger to figure out the intended URL and parameters for an intended ActiveResource call? For example, I'd like to make a GET request with the following parameters: https://some_server.com/employees/searc...

run webservice jax-ws client in a web app under tomcat

All service classes in my case extend javax.xml.ws.Service. But real invocations as I see work through 3-rd party libraries under the hood. In my case tomcat uses Axis2. First I should ask, what jars Tomcat uses to run a web-service? Second, is there a way to change them? Third, what does this exception mean? It needs another jar fi...

Add ASP.NET web service while impersonating credentials.

I have a web reference that I do not have access to through my windows credentials, but do through impersonation. Unfortunately, I cannot update or add the reference because of my lack of credentials. When the service is added, it works fine when I set impersonation to true and add credentials. Is there a way to impersonate a creden...

Bind WCF webservice to specific network interface / IP

On a machine with multiple network cards I need to bind a WCF webservice to a specific network interface. It seems that the default is to bind on all network interfaces. The machine has two network adapters with the IPs 192.168.0.10 and 192.168.0.11. I have an Apache running that binds on 192.168.0.10:80 and need to run the webservice o...

How to make dynamically generated .net service client read configuration from another location than *.config files

Hi, I've currently written code to use the ServiceContractGenerator to generate web service client code based on a wsdl, and then compile it into an assembly in memory using the code dom. I'm then using reflection to set up the binding, endpoint, service values/types, and then ultimately invoke the web service method based on xml config...

How to view soap request based on webservice url?

I need to call SSRS Report WebService using jQuery ajax request. Since the ssrs webservice is SOAP based and considering the example shown for "calling share point web services using jquery" I think I need to pass a soap envelope. Based on the ssrs webservice url how can i find out the soap envelope required by a particular method? (ex...

Capture incoming and outgoing soap request

Hi I have a C# console application that calls SSRS soap based webservice (service runs on a remote machine). I want to capture the incoming and outgoing soap request. How can this be done? Thanks ...

How to return multiple results from web method?

I develop winforms app. One of my forms accepts user input and calls a web service to add the input into the DB. The input must be unique, however I have no way of knowing if it is unique in the client side. I send the input to the WS and it is responsible of either adding it to the DB or informing the client that the input already exist...

Tutorials/Books on using Mono to develop RESTful webservices?

Hi, anyone out there got any pointers to good links/tutorials/books on developing webservices with Mono? In more detail, I am interested in using Mono from project start on a Linux host developing in C# using Visual Studio for development, ideally with remote debugging if that is realistic developing web-services in MONO accessible i...

problem in multiple asynchronous calls on webservice method in wpf application

Hello Experts! i'm trying to create an application which connects to internet and consume web services for every of it's operation.As far as i'm concerned i'll like to useasync method which i'm using already to get a collection of Contacts.I've realized that when i'm doing the same for groups (meaning getting groups async) i'm having err...

SOAP faults or results object?

I was having a discussion about this with a co-worker and we couldn't come to an agreement, so I wanted to get your thoughts. I have my own opinions on this, but I won't spoil it for you. When should I be returning a SOAP fault and when should I be returning a result object that has error information? Assume this is for a generic web ...

Dispose a Web Service Proxy class?

When you create and use a Web Service proxy class in the ASP.Net framework, the class ultimately inherits from Component, which implements IDisposable. I have never seen one example online where people dispose of a web proxy class, but was wondering if it really needs to be done. When I call only one method, I normally wrap it in a usin...

Replace existing XML file within iPhone app

Hey, I have an .xml file that is going to be shipped within my app. This file contains values that are read from it and saved as an array when the app launches. Each time the app is run, I want to check with the server if there is an internet connection. If so, I want to get the newest version of the .xml file from the server and repla...

Simple XML over http web service

I have a simple html service, developed in django. You enter your name - it posts this, and returns a value (male/female). I need to ofer this as a web service. I have no idea where to start. I want to accept a xml request, and provide an xml response - thats it. Can anyone give ma any pointers - Googling it is difficult when you don...

How to write and read browser cache from Flex

Hi, I have a flex application that makes use of the autocomplete control. And I use a web service to download the data after successful login. My problem is that the data in Mb is about 4Mb and it takes quite a while to decompress in the application (after downloading it every time). Is there a way to make use of the browser cache to st...

Representing relational database data as XML and using XPath to get results

Hello, we have a relational database with some data and we need to offer the content of the database via XML web services. We also have to enable users to get parts of the XML representation using XPath (also later there may be a need to modify data indirectly using XML representation of the data with XQuery). Is there a simple way to a...

Jax-ws 2.2 or Metro as Tomcat runtime environment

I need an implementation of JAX-WS, that is RUNTIME ENVIRONMENT to use a client for Tomcat6. Which is better in your opinion? JAX-WS 2.2 https://jax-ws.dev.java.net/2.2/ Metro 2.0 https://metro.dev.java.net/2.0/ They have different installation procedures and different jars. For now I only need to be able to run a client from unde...

Git + SoA, one repo or many?

Normally, when I start up a new application, I'd create a new git repository for it. That's well accepted and plays nice with Github when I want to share my code. At work, I'm working in a service oriented architecture. One very common pattern is to add some code to two different applications at the same time - perhaps adding a model ...

Image of size more than 3 MB not getting uploaded using webservices .asmx

Hi, I am trying to upload images using a webservice from silverlight. I am first converting the images into stram of bytes and then trying to upload them. I am able to upload image of size 2.5 MB. But not more than that.It gives me "The remote server returned an error: NotFound" error. What could be the reason. ...

Accessing username/password from within web service (JAX-WS)?

We are implementing a web service that is going to act as an intermediary layer between the clients and another application. Our requirements for the web service state that we need to send the username and password in the SOAP header using standard WS-Security. The web service implementation needs to take the information passed in throu...