web-services

Reporting an error from a POST Web Service

I'm developing a web service (in asp.net) and I would like to have each web method report to whoever called it when an internal error occurs - for example when input validation has failed. When I expose my web service with SOAP such errors can be reported by raising a SoapException. But what if I expose my web service with plain POST (...

How do I create a webpage with buttons that invoke various Python scripts on the system serving the webpage?

I'm a hobbyist (and fairly new) programmer who has written several useful (to me) scripts in python to handle various system automation tasks that involve copying, renaming, and downloading files amongst other sundry activities. I'd like to create a web page served from one of my systems that would merely present a few buttons which wou...

Is there a way to write asp.net web service so they are easier to convert to WCF?

For example, I know that the WCF style web services don't rely so much on Session/Application/Request/Response as web services did. Are there any other gotchas I should keep in mind when writing web services today with the intention of making them WCF services as soon as my organization lets me use WCF? I don't think I'm interested writ...

Communicating with the web through a C# app?

Although i can grasp the concepts of the .Net framework and windows apps, i want to create an app that will involve me simulating website clicks and getting data/response times from that page. I have not had any experience with web yet as im only a junior, could someone explain to me (in english!!) the basic concepts or with examples, th...

A Good C++ Library for SOAP

What are the alternatives for SOAP development in C++? Which one do you prefer and is most supported/modern? ...

SSRS can't conditionally filter "nil" values from XML Data Source?

I've got a report in SSRS 2008 that is using a web service as one of its data sources. The basic look of the XML returned is <table> <row> <column1>data</column1> <column2 xsi:nil="true" /> <column3>data</column3> </row> </table> Any tags with the "nil" attribute are showing up as blank on the report. I...

Any free tools for webservice testing with NTLM2 support?

What tools are free tools are available for testing WebServices that are behind NTLM2 authentication. SoapUI Is Excellent tool with all functionality that I need, however, it doesn't support NTLMv2. If someone has a way of making that work, please provide solution. ...

Expose a specific .net object as JSON

I'm currently enabling JSON calls to my web services using the ScriptService attribute. The problem is that one of my classes references a second class and .Net is not picking up and writing out the JavaScript for the second class. As a workaround I can write a dummy method that just returns the second class. Then .Net writes the JS...

Returning Arrays from .net web service to Java ME web service results in compile error of stub?

So, I'm getting some compile errors on netbeans 6.5 generated web service code for a java ME client to a c# (vs2005) web service. I've trimmed my example significantly, and it still shows the problem, and not being able to return a collection of things is pretty much a deal-breaker. c# web service (SimpleWebService.asmx) <%@ WebServ...

WCF not running under IIS6.0

Hi, Trying to get my wcf service running under IIS6. I have created the .svc and aspnet_isapi.dll mapping according to: http://msdn.microsoft.com/en-us/library/ms752241.aspx When viewing the Server1.svc page, I am getting a 404. I have tested the site with a simple .aspx page to ensure the url is working, but again the .svc extension...

Best way to integrate a Rails app with a slow webservice

I need to implement a web client in a Rails app. The existing web service is SOAP and can often take several seconds to respond to requests. Using SOAP4R, the requests block. Is it acceptable to call these blocking methods directly from a rails controller? If not, should the rails controller buffer up commands with a separate service ...

How to retrieve XML into Oracle PL/SQL via an HTTP Post transaction?

I'm trying to implement the "blog this" function from Flickr using the BloggerAPI to my pl/sql based CMS. When Flickr sends me the posting transaction, the HTTP transaction looks like this: POST /pls/website/!pkg.procAPI HTTP/1.1 Host: www.mydomain.com Accept: */* User-Agent: Flickr Content-Type: text/xml; charset=utf-8 Content-Length:...

C# enumeration property null vs. 0

I'm using IIS/asmx to support a Flash client. Some of my service layer data transfer objects have properties that are enumeration values. There are cases where these properties should be null. When an object with a null value for such an enumeration property is rendered to soap, I receive this error: System.InvalidOperationExceptio...

How to specify if a Field in required in generated Proxy

A WCF service exposing multiple elements in DataContract as DataMember [DataMember(IsRequired = true, EmitDefaultValue = false)] public string Source; [DataMember(IsRequired = true, EmitDefaultValue = false)] public string Target; In generated proxy (through add service reference in VS 2008) at client, the client can pass null or emp...

J2ME communicating with MS-SQL

Hi everyone, I am trying to create an integrated project in which I can update MS-SQL's database value using J2ME's application. But I need more resources/links that let me fully understand how to go about writing implementation for this. These are the few question in which I've got in mind. How do I update the data that I've got fr...

WCF Security - A list of what I dont understand

Hi Guys, I'm going around in circles with regards to WCF and security so i'm just going to shove a load of questions here and hope someone can help me gain a clear picture. Can someone please give me a plain English explanation of Transport vs Message level security. I think I have a service running under SSL that will authenticate ...

How do I determine why a webservice reference is being prevented from being added to my project in VS2008?

I have a VS2005 project that contains a couple web service references. The project has recently been upgraded to VS2008 but now there is a problem with the web references...probably because they may not have been upgraded properly. When I select Update Web Reference I get the following error: "Value cannot be null. Parameter name: disc...

run periodic tasks on server in the background

What's the best/easiest way to run periodic tasks (like a daemon thread) on a tomcat/jetty server? How do I start the thread? Is there a simple mechanism or is this a bad idea at all? ...

Learning project: Please help me setup a server capable of the following:

Hi, I'd really like some help with this as I have hardly any idea where to start. I'm fed up of not having somewhere to properly test any web code and the free hosting sites I've found only support half of what I want. I want to setup my own server capable of dishing out webpages, running a database and handling WCF services. I'll be ...

Consuming in Java a .NET Web Service that requires a custom SOAP Header

So I need to consume a Web Service that uses a custom SoapHeader, as described below. What is the simplest way to pass the correct values through this header using Java. I'm using Netbeans. <?xml version="1.0" encoding="utf-8"?\> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSc...