web-services

jQuery ajax post to web service

$(document).ready(function() { $.ajax({ type: "POST", url: "/getprojects.ashx", data: "<formData client=\"\" year=\"\" categories=\"\" tags=\"\" freeText=\"\" count=\"34\" page=\"1\"></formData>", dataType: "text/xml", cache: false, ...

A way to add comments to spring cxf webservice

I deploy my cxf-spring servlet, jax-ws web service implementation to tomcat. Now when I explore my webservice via web-interface, I see the screen as this: Available Soap Services: a b c How do I add comments to this screen, where are they added in Java code? ...

Is Windows Communication Foundation the better alternative to the use of web and windows services

I was reading through introductory articles about windows communication foundation on MSDN and it looked to me like an alternative to using a windows or web services - (a much better alternative i thought). Is this the case or did i miss some thing - And yes i didn't read deeply. It looked to me like WCF is a better option to a window...

Return JSON from a Webservice method when requested in GET verb

I have a .NET webservice that is returns JSON. The client-side developer now wants to send his request in GET method, putting the parameters in the querystirng. I have enabled the GET verb in my web.config file, I have added UseHttpGet=true in the ScriptMethod attribute, and now I am able to recive the parameters. BUT when he ca...

Deploy .NET web service in a concrete port

I would like to deploy or publish my .NET based web service always at the same port. Can I do this directly in my code (programmatically talking)? Thanks. ...

Can Webservices as singltons cause issues with different users?

I am developing an ecommerce app that is using the UPS shipping webservice. I have read that it is good to create a singleton so there is only one instance of a webservice at any time. My code for that is below. Public Class Ship Private Shared sync As New Object() Private Shared _Service As New ShipService Public Shared ...

Where to catch exceptions

I have a WCF svc separated into a Service Layer, Business Logic Layer and Data Access Layer. When my DAL encounters an exception, should I catch it there or let it bubble back up to the Service Layer? And why? Please disregard any client involvement for this scenario, I am only concerned with logging the exceptions on the WCF svc. ...

how can I call a webservice from voiceXML?

I'm building a very simple voiceXML app to allow people to make recordings. But first, I need to authenticate callers by phone number and/or PIN. Can I call a webservice from voiceXML? Looks like I want to use the voiceXML "data" element to call my webservice. However, I need to dynamically calculate the URL, and it looks like it only t...

How do I stop ASP.net forms authentication / session from renewing in setInterval ajax web service call?

I have a control that i've written that has a javascript component and a web service component. The problem i'm having is that the javascript is set to do: setInterval(this._checkAlertsHandler, this._messageCheckInterval * 1000); This calls a function which makes a webservice call like so: Alert.SiteAlertService.GetAlerts(this._rece...

Error in WCF client consuming Axis 2 web service with WS-Security UsernameToken PasswordDigest authentication scheme

I have a WCF client connecting to a Java based Axis2 web service (outside my control). It is about to have WS-Security applied to it, and I need to fix the .NET client. However, I am struggling to provide the correct authentication. I am aware that WSE 3.0 might make it easier, but I would prefer not to revert to an obsolete technology. ...

rails: sharing information between 2 apps

I've got this medium-sized app that is starting to get too complex. I'm considering splitting it in two. But I'm uncertain about how would I share information between those. I've been able to make two big groups of models; One group deals with "pictures" and the other one deals with "sales data". Some utility models, such as the authen...

Is it possible to get the url of the customer who uses our Web Service SOAP

I'm new to SOAP, I work with PHP5 and I got my wsdl file with some functions in my .php file. I'm wondering if I can get the url from the customer who uses my Web Service. I want to validate the url in a php function server-side. ...

Submitting search query to Yahoo Web Search from Ruby on Rails app

Hi all, I want to perform a search query from my rails app, which uses the Yahoo Web Search service, and parse the response from the yahoo api, and populate the database based on this response. I wanted to know how can I go about submitting this query from my app in rails. And also, if there are any gems which let you do the same? T...

Webservice returning custom XML

Hi, I'm dealing with a legacy web service and I'm running into trouble trying to adjust the methods' responses to previously defined XMLs. Sadly, changing the WSDL is out of question and to further complicate the issue, it's incompatible with WSDL.exe tool. The oh!-so-wanted XML: <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/...

Open source CMS Pre Designed for Auto Dealer?

Im trying to find a nice inventory cms that is pre designed for a car dealer or paid is fine too. anyone have any good ones? I know there is one that is called auto dealer inventory that is free to use but it seems to have problems displaying images. ...

WCF - Error Trying to Receiving Large List of Data (~5000 objects)

I am attempting to transfer around 7000-8000 objects that are not large (only 9 properties per object instance). Does anyone know why when I begin to retrieve more than 5000 or so objects that I get connection errors? It works perfectly until I hit some threshold for data size. I am exposing the retrieval of these objects via WCF's TCP ...

Can I suppress "authentication required" popup on an asp.net webservice call?

I'm using JQuery to call an asp.net webservice that is set in web.config to only allow logged in users access. This works fine. When run locally from Web Developer Express, if I logout and try call the webservice I get a 401 message returned which I then use to redirect the user to the login page. However when run on the live server I'...

How to call a web method on a web service using HTTPWebRequest?

When using an HTTPWebRequest object to call a web service, and supply the wsdl parameter, I get the description page ok. Dim req As Net.HttpWebRequest Dim resp As Net.HttpWebResponse Dim sr As IO.StreamReader Dim text As String req = Net.WebRequest.Create("http://www.mysite.com/DS.asmx?wsdl") ' works ' resp = req.GetResponse sr = New I...

webservice throws error System.ServiceModel.EndpointNotFoundException

Hi All, Here is how my 2 projects are I have a class library project which consumes multiple webservices. I have created a test project in VSTS and try to call one of those service But I'm receiving System.ServiceModel.EndpointNotFoundException. In my Test Project I have added one app.config file and added endpoint as available in m...

What is the alternate to PasswordDigest when clear text password is not stored on the web-service producer?

Scenario: Web-service producer have only SHA-1 hash of passwords stored in database. We need to authenticate Web-service users using User Name/Password combination. Web Services Security UsernameToken Profile allows us to add soap headers for this purpose: The element is introduced in the WSS: SOAP Message Security document...