web-services

ASP.NET Logging onto web service using username and password the first time only

The first time I log onto my webservice I want to use FormsAuthentication e.g. myService.ClientCredentials.UserName.UserName = "name"; myService.ClientCredentials.UserName.Password = "password"; but once a user has logged onto my web app I dont want to have to know about his password so I would like to be able to connect to the webser...

C++ OpenGL application as a web service

Dear all, Let me explain the situation: we have created an OpenGL application in C++ which visualizes some physical simulations. The basic application is contained within a DLL which is used by a simple GUI. It currently runs on a desktop PC, but we have the idea to turn it into a web service. Since the simulations require dedicated h...

Unable to debug web service project in Visual Studio 2008

I've been assigned a web app written in VB using VStudio.net 2003. I am trying to configure the source on my localhost (VStudio 2008) so I can explore and learn about the current app (before I begin any real changes) and I cannot get debugging working for the web service project(s). Symptom 1: "Unable to automatically step into the ser...

2 legged oauth - looking for information

I want to implement a new REST-based api on our infrastructure, and oauth seems to be the way to go. For our implementation there will first just be server-to-server access, which will be completely unrestricted. I believe this is called 2-legged authorization. Later on, we'd like to allow the API to be consumed by the browser, which w...

How to write a CXF client with implicit security header.

Hi everyone, I have to access a service which is developed using different framework. The client program is using CXF. I dont have access to the provider environment so I cannot use any config files (Cxf.xml, cxfservlet.xml etc..). I need to access the webservice with implicit security header (UsernameTokenType, oasis-200401-wss-wssecur...

SOAP using C#

How do you use SOAP using C#? Is there a simple, yet effective tutorial for this? ...

Sending and receiving SOAP messages without envelopes in C#

This there a good tutorial or example of C# code sending and receiving SOAP messages without using a SOAP envelope? ...

Using WSDL for sending and receiving in C#

You are given a WSDL and a sample soap message, is there a good tutorial or sample code in using that WSDL to consume a web service? Does the WSDL follow a certain format in order for which it can be consumed properly? I recall a web service in Java that I changed certain tags and attributes in order for this to work, is there a gener...

Is Content-Type negotiation typical or atypical in REST apps?

My feeling is that Content-Type negotiation is one of those "should do" things for REST, but most frameworks, tools and apps punt on it - and don't, as far as I know. Is this true? What REST programming frameworks support content-type negotiation? Should I expect it to broaden in usefulness? Will it become more common in REST framew...

Calling ASP.NET server side method via JQuery

Hi, I'm trying to call a server side method from client side via jQuery, my code is as follows: Server side: using System.Web.Services; [WebMethod()] //[ScriptMethod()] public static void SendMessage(string subject, string message, string messageId, string pupilId) { //send message } Client side: $(...

Web service request authentication

We're being really stuck here so I decided to ask your help. Yesterday I've been asked to help to consume a web service, got the URL to the WSDL, and the user credentials to use. I've never really had anything to do with web services, but having a general idea about them and seeing a few examples I thought it can't be that bad. Obviousl...

How does your organisation setup testing data?

I work as a tester for an organisation that has a web service as it's critical application. Currently we load massive amounts of test data through the web front end, as this is how it would be done in the real world. This gives the data an amount of legitimacy and prevents errors in the format of the data. However it is very time consum...

Create a mailbox for an user via webservice on a remote exchange 2007 server. (C#)

EDIT ive got it almost, having and error message now that it can't find the exchange DB. I'm running the service on a different server then Exchange so I presume I have to use an UNC path. MyServer01\First Storage Group\Mailbox Database.edb does not work though... Hi! I'm getting frustrated here, feeling a massive headache coming up a...

add a web service reference to a console app

Im creating a simple web service in a console app. (PersonService) this is my Program.cs below im trying to add a service reference to a different console app (PersonClient) how can i do this? i tried adding it by right clicking, add service reference, pointing to the refernce etc... but it wont work. [DataContract] pu...

Create PNG image with C# HttpHandler webservice

I'd like to be able to create a simple PNG image, say of a red square using a c# web based service to generate the image, called from an <img src="myws.ashx?x=100> HTML element. some example HTML: <hmtl><body> <img src="http://mysite.com/webservice/rectangle.ashx?size=100"&gt; </body></html> Is there is anyone who can cobble tog...

Rare and sporadic 401 Unauthorized error with ASMX / WCF web service using Windows Authentication

We have a hybrid WCF and ASMX web service currently being used on a decent sized project. Now, most of time everything works perfectly fine, however on rare occasions and seemingly randomly, the web service begins to block calls which returns a 401 Unauthorized error back to the page in question. It seems to be the ASMX service calls tha...

Web Service error 'Could not create type' when calling service from Ajax

Hi I've downloaded the Ajax Control toolkit When I create a website from the Ajax control Toolkit template, I can create a web service in a single file (asmx) and hook this up to different Ajax controls provided in the toolkit. However if I add the Toolkit to an existing ASP.Net 2.0 appliction web project I cannot create web services ...

Apache Sandesha whit WSE 3.0 Reliable Messaging (WseRM)

I have a Apache axis1.4 web services system and I'm looking for to add WS-ReliableMessaging whit Apache Sandesha. As any one have some experience off interoperability whit .NET WSE 3.0 Reliable Messaging (WseRM). It just works? Any kown problems? Does it solve problems? ...

Problems consuming a Java/AXIS web service in a .Net Application

Hi, I have to consume a Web Service that is written in Java by a 3rd party, generated with Axis I guess. I'm using .Net Framework 3.5 SP1 and VS 2008. I've made a Web Reference, as we used to make in .net 2.0, and pointed it to the wsdl of the service. It worked perfectly with some methods of the service, but when I try to call a Met...

How to describe an ASP.NET Web Service ENUM for JSR-172 (Java ME) Consumption

I have .NET Web Service and I am trying to use that web service from a Java Mobile phone. I am also using the NetBeans development environment with the web service tool kit. When I try to create the proxies, it falters on the enumerations stating that the simple types are not supported. Is there a way to describe the enumeration type in ...