web-services

How to call a stored procedure thru webservice using c# ?

I am new to web service, The database access should be through Web Services using ADO.NET to access stored procedures. any ideas ? ...

What's the easiest way in VB.NET to parse this XML into objects?

What's the easiest way in VB.NET to parse this XML? Here's an example of the full source: View Source XML I believe that the XML can be read directly into a class structure that matches the XML's structure. Let's take a bit of the XML from the above example, <?xml version="1.0" encoding="UTF-8" ?> - <kml xmlns="http://earth.goog...

problem in calling (Jax-ws) web service form another Jax-ws webserice.

I am i have one Logging web service in my project which gets called form another web service. I am calling a logging web service using a wrapper method which points to the web service method. When i am accessing it using client-webservice structure i am not getting any exception. But the problem is when i am accessing it form web serv...

.NET 2.0 webservice not returning DataTable

I have a webservice method defined as so: [WebMethod] public DataTable GetResponseCodeTypes() { // connect to database and retrieve results, // then populate and return a DataTable } The method has been verified via the webservice test form and returns a DataTable as expected: <?xml version="1.0" encoding="utf-8"?> <DataTable xml...

WCF service, response in SOAP or plain XML, how?

Hello guys. I am struggling few hours with this and can't find a solution to the communication problem. My service need to communicate with clients via SOAP or plain XML My service will be written based on WCF framework, however my clients not. Could you show me step by step how to change my service code and configuration in a way th...

Starting an axis2 service programmatically

Hi, I'm programmatically starting a service in Axis 2 (1.5), like this: ConfigurationContext context = ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null); AxisConfiguration cfg = context.getAxisConfiguration(); Map<String, MessageReceiver> mrMap = new HashMap<String, MessageReceiver>(); mrMap.put("http://...

HttpAuth with C# SoapClient

Hi, Im wondering how to apply HttpAuth on a C# SoapClient(WebService proxy). I have googled and read a lot that you can set the Credentials property(applying a NetworkCredentials object). But I cant seem to find this property on this object.. Would be greatful for any help, //Robin ...

Are there any public UDDI registries available?

I am currently trying to get a grasp of UDDI and would like to run some examples with the inquiry API, but I can’t find public registries that I can query with my SOAP messages. IBM, Microsoft and SAP used to host public UDDI servers a couple of years ago but that was discontinued. I know xmethods contains a list of publicly available ...

Intermittent Problems with Web Services on Remote Hosting Server

I've got an ASP.NET web application and a .NET webservice which is used by the web application. These applications are hosted on a remote server I don't have remote shell access to. When the web application invokes the web method in the webservice, I get the following error message: A connection attempt failed because the connected pa...

Fill e.Error in silverlight webservice

In my webservice (WCF) i have this function [OperationContract] public ChooseViewData GetNcs(FilterArgument filter, int dossiersId, int usersId, string token) { SessionInfo info = Tokens.CheckToken(usersId, token); if (info.HasError) { //return null; } } When i'm calling this function in my silverl...

WCF Rest services compatible with standard WCF web services?

Hi there, i have been reading a little about REST services and i would love to know more. I wonder if anyone can confirm, currently we have a wcf web service (ending in .svc) and we have many clients accessing (i.e. form linux, max and PC) ... if i was to change my server to use REST then would the clients break? ...

HTTP 500 error on WSE1.0 POST to WSE2.0 web service

I have a web service that uses Web Service Extensions 2.0 to receive an XML post from a WSE1.0 web service. I have no control over the WSE1.0 service, nor are they able to tell me what the error actually is. I have managed to set up some diagnostics based on this: http://msdn.microsoft.com/en-us/library/bb885203.aspx The underlying err...

Add Response Header to JAX-RS Webservice

I am trying add some response headers to some of my webservice calls. I wrote my webservice using CXF 2.1.2 and JAX-RS. I need to return an object and I also want to add some headers to the Response. Without returning a javax.ws.rs.core.Response object, how do I add a header to the response and still return my javabean? ...

Understanding AJAX.

Having been primarily a server-side programmer(ASP.NET WebForms) I'm trying to get my mind wrapped around AJAX outside of the "catch-all" approach of using UpdatePanels in the Microsoft AJAX controls. My question has a couple parts: Is JavaScript the only option for client-side scripting that will support server-side communication? I...

what is a singleton class? Can it help me running single instance of a class for two related services?

This might sound complex but i will ask anyway: I am running a service A which uses class X. I want to start another service B which uses classes A besides new classes. Service A is already running. I do a hot deployment of Service B. Here is the real question - Will Service B use the same instance of class X or a separate instance....

asp.net MVC and Silverlight data communication through a web service

Hey everyone, I am having a bit of trouble getting started with connecting my MVC app with some sprinkled in silverlight to a web service to interface the two with a database... Currently I have my linq to sql class living in my models in my MVC but I want to be able to hit it in the service from both my silverlight application and my...

Web services and Compact Framework exception handling

I would like to handle such as situations as web service down. Do I use a timer or is there an exception that's being thrown when the web service is unreachable or taking too long from the client? i am using cf 2.0 and .net 2.0 for the web service ...

Problem calling internal webservice method from an ASP.NET application in shared hosting webfarm

We have an ASP web application with a page that makes calls from the client to internal web service methods. Everything works fine when we deploy the application onto our local test server. However, when we deploy the application to our shared hosting provider (specifically, godaddy using their grid hosting web farm plan), calls to the ...

Easiest frameworks to implement Java REST web services

What are the best frameworks for implementing both client and server REST frameworks in Java? I've been struggling a little to find an easy to use solution. Update: Both Jersey and Restlet seem like good options. We'll probably use Restlet but we'll experiment with both. ...

Checking for nulls

Sorry for such simple question. How would I check this for nulls? obj.DivisionNotes = (string)row["DivisionNotes"]; I'm thinking something like this. obj.DivisionNotes = (string)row["DivisionNotes"]?null:"No notes"; Am I right. Any help much appreciated. ...