web-services

webservices with repository pattern in c# and WCF?

Hi there, Can anyone confirm the best way to integrate the repository pattern with webservices.... Well actually i have my repository patter working now in c#. I have 3 projects, DataAccess, Services and my presentation layer. Problem is my presentation layer is a number of things... I have a ASP.NET MVC site, I have an WPF application...

jQuery nyroModal with ASP.NET using Web Services

Hi, I have been using the jQuery nyroModal plugin for a little bit of time, and frankly its one of the best modal plugins I've used to date! I'm hoping that a lot of other people have also used this plugin, hence me requiring some help with regards to using it along with ASP.NET. I have however run into a problem with it in the past a...

How do I consume a web service protected with HTTP basic authentication using the CXF framework?

I tried to get it to work using the CXF User Guide, but I've had no luck. I'm trying to call the web service using java code. ...

silverlight error - the opreation is not supported for a relative uri

Hello All, I've just started developing silverlight applications. I've created a webserivce in my asp.net project. Now, when I try to connect to it through my silverlight project I receive the following error: "the opreation is not supported for a relative uri" I am using the following url --> http://192.168.1.2/MyWebsite/SubVersioned...

What is the Speed Difference Between Database and Web Service Calls?

All things being equal, and in the most simple form, which is faster? 1.) A call to a web service method 2.) A call to a database For example, assume that you have a simple web service that just returns an integer that is calculated in X time. You also have a database that, when queried in th right way, also takes X time to calculate ...

XML for Web Service: inline attachment

I have to invoke a web service with a single parameter, a String in XML format. I'm building this via an XSLT transformation. So far so good. The problem is with this XSD fragment: <xs:complexType name="Document"> <xs:sequence> <xs:element name="title" type="xs:string" minOccurs="1"/> <xs:element name="content" typ...

trace webservice using proxy

Hello. Does anyone knows about a webproxy ( preferably written in Java ) that can be used to trace the http request my app does to a 3rd party webservice? I'm using an IDE that automatically creates a ws-client based on the WSDL. I execute the code generated and I'm getting a 500 error, I would like to know what the soap request is. ...

Optimization - Emails in a ASP.NET app

Hi, Quick question. Just want to confirm that a network call such as to a SMTP server doesn't take up any CPU usage. It only blocks one of my request handling threads and the user who triggered the email has to wait while my webserver is done with the SMTP call. If i send the email in another thread and let the user thread go on, then I...

Best approach for web application returning only XML?

I am building a web application which will generate XML from a database based on a specific schema and depending on certain input parameters (such as dates or search terms) carried on a querystring. Is the best approach to write a web service which returns the required XML or to write an ashx handler that outputs the XML? Am I able to ...

The caller was not authenticated by the service. C#

Hi, I have read the other posts, but could find my answer. I'm trying to connect to a webservice. I'm not using the proxy generated app.config file, since I have diffrent servers where the webservice is on. foreach (var item in list) { var binding = new WSHttpBinding(); var endpointAddress = new EndpointAddress(item.ServiceURL); var...

Can Soapui free edition assert between outputs?

Can Soapui free edition assert between outputs from two requests? I want to check if a value from a output is equal to value from another output. ...

jQuery Ajax call - Set variable value on success.

Hey all, I have an application that I am writing that modifies data on a cached object in the server. The modifications are performed through an ajax call that basically updates properties of that object. When the user is done working, I have a basic 'Save Changes' button that allows them to Save the data and flush the cached object. ...

Advantage of switching from ASP.NET to bread & butter HTML/jQuery

Hi, I have been getting more and more sick of all the quirks about control ids, trying to get your data in serverside (based on client-side events). I seem to spend more time fighting with controls in asp.net, that I think it takes me more time than I gain by using it. I was thinking about using plain html/javascript with jQuery and a w...

Calling a webmethod from C++

Hi guys I am calling a webmethod from C++. The [webmthod] is defined as follows [WebMethod] public string UploadFile(byte[] data) Here is how I call it in C++ static TCHAR hdrs[] = "Content-Type: application/x-www-form-urlencoded"; static TCHAR frmdata[] = "data=temp.txt"; HINTERNET hSession = InternetOpen("MyAgent",INTE...

What is a good keyword extraction web service?

I am looking for a web service which can can extract important keywords from a piece of text. I have already tried the Yahoo Term Extraction service. The problem with this service is that it does not give any results for short text. Alternatively is there any ready to use code I can use which can extract the important keywords from a p...

Setting Timeout Value For .NET Web Service

I have a web service written in C# that is living on a SharePoint site. I have modified the web.config with the following code: (configuration) (system.web) (httpRuntime executionTimeout="360" /) ... for the IIS Inetpub file, the SP ISAPI web.config file and the SP layouts web.config. I have also modified the machine.config file ...

Is it possible (reasonable) to expose a SOAP WS as JMS?

If so, what would be the message like? An XML document with the SOAP request or response? Does this makes sense? ...

Problems with ASP.net JSON Webservice response type

I am attempting to write an ASP.net web service that will be utilized by a jQuery AJAX call. I am absolutely at my wit's end trying to get this to work. I've seen a number of similar questions online but I haven't been able to find a solution that fits. When I attempt to make the ajax call (via jquery) I get a successful response from t...

Prevent anyone from executing your web service?

I've got a webservice which is executed through javascript (jquery) to retrieve data from the database. I would like to make sure that only my web pages can execute those web methods (ie I don't want people to execute those web methods directly - they could find out the url by looking at the source code of the javascript for example). Wh...

How to disable v1 tag in a Web service request with SoapPy?

I'm trying to use SOAPpy to write a web service client. However after defining WSDL object, a call to a web-service method is wrapped in a <v1> .. actual parameters .. </v1> How can I disable this v1 tag? ...