web-services

How to mock WCF Web Services with Rhino Mocks.

How do I test a class that utilizes proxy clients generated by a Web Service Reference? I would like to mock the client, but the generated client interface doesn't contain the close method, which is required to properly terminate the proxy. If I don't use the interface, but instead a concrete reference, I get access to the close method ...

Sending a JSON object to an ASP.NET web service using JQUERY ajax function

I want to create object on the client side of aspx page. And i want to add functions to these javascript classes to make easier the life. Actually i can get and use the objects (derived from the server side classes) which returns from the services. When i wanted to send objects from the client by jquery ajax methods, i couldn't do it :...

WCF Windows service permissions problem

I have created a WCF service and hosted it using Windows Services host. To install the project I created an installation project (as described here). In the tutorial, it says to define in the ProjectInstaller.cs the serviceProcessInstaller1 Account property to be Network Service. When using this setting the service did not started on th...

Retrieve some info from the web automatically.

I need to retrieve some info from web. For example, I can visit weather.com to search my zip code to get HTML file that contains the temperature or something. I need to make a python script to do this automatically. I think there are two ways to do this. Run wget to download the web page, parse it to get the information I want. If th...

Code generating SOAP Web Service Proxy objects yourself - C#/.NET 3.5/T4

Is there a framework or code already available that will give me more control over the code that gets generated based off my web references? I'm working at a new company. And the Web Services Proxies are all self contained in their own assembly. I would really rather generate this whole project. Every time they change something on the S...

WSS 3.0 - Add xml to InfoPath Form Library using standard web service

Maybe it is quite easy but I am new and discovering SharePoint (WSS 3.0). I just created a InfoPath Form Library. It has its standard functionality but I also like to create new InfoPath documents (XML) in this library by using a web service. But here I am asuming a web service will be created for each WSS object (list, Doc lib, etc....

IIS serving corrupted MSI

Hello, I am trying to put an .msi for download in a virtual directory setup with IIS. The download works fine but when I try and install the .msi, it says it is missing a _cabinet file. Me and a coworker had this issue will the installer downloaded fine & ran correctly on another coworker's machine. Am I missing anything? Is it a be...

View returned file from Webservice method

I already have a method in my webservice that returns a byte[] containing only the bytes of the file downloading. The invocation is something like: http://www.mysite.com/myWebservice.asmx with: string fileId = "123"; bytes[] fileContent = myWebservice.Download(fileId); What I wanted to do is be able to invoke this method or other (to...

XML Serialization

I am trying to serialize an ASMX web service result, but I get the following error. There is an error in XML document. ---> System.InvalidOperationException: <ArrayOfT_SATQuestionInfo xmlns='http://tempuri.org/'&gt; was not expected Any idea on how to fix this so it will 'expect' the namespace? ...

Should a web service enable the user to Create and Update, or just Save?

When designing a web service that will allow the consumer of the service to save and get a complex data type (say Foo), should the service expose Create(Foo) and Update(Foo) service calls, or should the service expose merely a Save(Foo) service call? If Save(Foo) is better, should the user be able to predict whether the system will crea...

Is the [email protected] mailing list, um, dead?

[email protected] I've successfully subscribed to it, but nobody seems to be answering any questions there. ...

Speech recognition (web) services?

I have a buffer of audio and I'd like to perform speech recognition/transcription on it. I have limited CPU and RAM locally so I want to perform recognition on a server. Are there any (web) services that allow me to do this? My searches so far have led nowhere... ...

How do I get the Source IP of a SOAP requesting client machine?

how do you get source ip, username, password, etc... of the client machine that sends a soap request? is there any of these details that one can pull for logging purposes? I am using Java to handle the incoming SOAP requests. The service simply adds 2 numbers and is working, but I just need to get some client details. Thanks, Lavanya ...

Doing a POST to a Service Operation in ADO.NET data services

Is it possible to POST to a service operation defined in an ADO.NET data service (it is decorated with WebInvoke)? I had no problem calling the service operation as an HTTP GET. However, when I switched to doing a POST, the stack trace consistently comes back with "Parameter cannot be NULL". I am using the jQuery syntax below, and send...

InfoPath browser form call to webservice not refreshing data source

I've created an InfoPath form that consumes a query webservice using rules: on click of a button the form populates the webservice data source with the query parameters, queries using the data source, then populates a field in the main data source with the results. The problem that I'm encountering is that on first click, this works fin...

Open-source generic web service to database interface?

I'm looking for a thin, generic layer (probably written in PHP) that sits between a database (probably MySQL) and web service clients (which could be anything). I imagine there would be config files of some sort that tell it how to map web service requests to database queries (or other DB commands). It would also need to handle authent...

How to let Tomcat publish WSDL for the WS it provides (CXF 2.2, Spring 3, Tomcat6)

Hi, I am trying to implement a simple web service provider using Tomcat6, CXF 2.2, Spring 3, and actually the service itself runs fine (I can call web methods using the original WSDL and SoapUI). However, Tomcat returns a blank page on "?wsdl" requests. Also, when I try to manipulate the (would-be) published WSDL by adding a publishedEnd...

I would like to build an app that alerts me when road traffic is high or low. Where can I get the raw data?

I'm sitting at work, waiting for traffic to die down. The thought occurred to me. I know when I want to go home, why don't I have an app that watches traffic for me? I also know that there are a lot of smart people on stackoverflow. Where can I get live traffic data for the san francisco bay area region? The data source should be ti...

gSOAP: How to send encrypted SOAP header

I want to send some info, like user credentials in the SOAP header from my gSOAP client to my WCF webservice. I wish I could send them in encrypted form. I am using GPRS to commuicate. As GPRS bandwidth is low, I don't want to use HTTPS. So I want to encrypt the header only. Is it possible? If yes, how? Please guide me. ...

How can I call VC# webservice methods without ArgumentException?

Currently, I'm trying to write a small tray application that will show the status and provide control of a server-side application exposed over webservice. The webservice only has 3 operations: start, stop and status. When I call any of these operations in code, they throw an ArgumentException citing "An item with the same key has alread...