web-services

Call a webservice from javascript

Hi, I would like to call a webservice from javascript. I tried: var locator = new Service1Locator(); var wsdlURL = new URL(address); var proxy = locator.getBasicHttpBinding_IService1(wsdlURL); var result = proxy.execute("John Doe"); taken from : http://stackoverflow.com/questions/2147983/mirth-connect-javascript-to-call-a-webservice...

Calling a webservice using JQuery

I am using this code from http://www.joe-stevens.com/2010/01/04/using-jquery-to-make-ajax-calls-to-an-asmx-web-service-using-asp-net/ function callWebService(address) { var result; $("#result").addClass("loading"); $.ajax({ type: "POST", url: address, data: "{}",contentType: "application/json; charset=u...

Best way / Fasters way to transfer an image via webservice

Hi, what is the best way to transfer an 800*600 image via a webservice using C#? I am looking for a fast method. thanks ...

WPF - slow service init connection

Hi, I am developing a small WPF application which is using web service. The web service is only available for internal users and they have to be logged in to their machines to be able to use it - it is using windows credentials. Everything works well except the connection speed. It takes around 10 sec to initiate the connection and do...

Rails inherited resources usage

Hi, I'm using Inherited Resources for my Rails 2.3 web service app. It's a great library which is part of Rails 3. I'm trying to figure out the best practice for outputting the result. class Api::ItemsController < InheritedResources::Base respond_to :xml, :json def create @error = nil @error = not_authorized if !@use...

When creating a WSE service, do all objects appear in the service proxy "properly"?

I am using a asp.net WSE web service in my web application. For some reason, some collections are in the form of an array. i.e. I am doing: MyService.SomeObject so = new MyService.SomeObject(); so.SomeCollection = new SomeCollection[0]; Yet the developer of the service says he defined it as a List, not an array. Is this common wher...

"Cannot open log for source" - Windows 7 - .NET web service - event log

I have a .NET web service that is trying to log to the Windows Event Log. However, when I try to send a SOAP request to a web method in this web service, I get back this error in the SOAP response: System.InvalidOperationException: Cannot open log for source 'MySource'. You may not have write access. ---> System.ComponentModel.Win32...

Connect to AXIS Web Service Issues

So here's the deal. I'm attempting to use Visual Studio to connect to an AXIS web service. Unfortunately, the Web Service does not have a public WSDL file available on the server. I know the location of the Web Service, but it will not let me open the WSDL file from a browser. Luckily, I do have a local copy of the WSDL file that the...

Spring RestTemplate Behavior when handling responses with a status of NO_CONTENT

Okay, I have a class NamedSystems, that has as its only field a Set of NamedSystem. I have a method to find NamedSystems by certain criteria. That's not really important. When it gets results, everything works fine. However, when it can't find anything, and thus returns a null (or empty -- I've tried both ways) set, I get problems. Let...

HSDPA speed is slow from a mobile device?

I am calling a webservice from a mobile device using a HSDPA connection and upload speed is really slow. To upload an array it is taking about 5 minutes while with a Wi-Fi connection it takes just 10 seconds. I am using the following method. First I am checking that connection is OK by: try { hwrRequest = (HttpWebReques...

ASMX equivalent of RegisterAsyncTask

When an ASPX page needs to make a call to a potentially long-running operation (lengthy DB query, call to a remote webservice, etc.), I use RegisterAsyncTask, so the IIS worker thread is returned to the pool, rather than being tied up for the duration of the long-running operation. However ASMX webservices don't have a RegisterAsyncTask...

Standard JSON representations

We are building a webservice which consumes and produces JSON. Problem: We are kind of confused about how to represent some specific details of a object. Example: we specify any empty element or null element as null in JSON The question we ask our self is how do we represent a object when its properties are all null. example: car is...

Installing a delphi 7 isapi web service

Hello guys, I have developed an isapi web service in delphi 7 and I need to install it in a server so it can be consumed by a c# application. I copied the dll of the isapi in a folder and created a virtual directory in the IIS of the server. When I call the web service from the browser (http://localhost/webservice/ws.dll) the website ...

Using SSIS 2008 to migrate data into Microsoft Dynamics CRM

I've recently been toying with data migration into Microsoft Dynamics CRM using MS SQL Server Integration Services. First, the basic problem domain: I have an exported flat file from a previous homebrew CRM system, the goal is to efficiently cleanup the data, and then to move the data over into Dynamics CRM. I've decided to put in one e...

DateTime is specially formatted unexpected in web service call

Environment: IIS 6.0 In my web service there is only a simple web method that return the current cultrue and DateTime format: [WebMethod] public string GetDateTimeInfo() { string culture = Thread.CurrentThread.CurrentCulture.Name; string dt = DateTime.Now.ToString(); string ...

how do you pass parameters in asmx using Flexigrid?

here's my code: $('#flex1').flexigrid({ method: 'POST', url: '/services/MHService.asmx/GetSurgicalHistory', dataType: 'xml', colModel: [ { display: 'Surgical Procedure', name: 'SurgicalProcedure', width: 120, sortable: true, align: 'left' }, { displa...

ASP.NET WebService ignoring return: XmlArray ElementName

This is as weird as it gets. Name given in XmlArray attrib's ElementName appears in WISDL but not in actual response. Running under 3.5 (2.0.50727 for IIS AppPool). After more detailed digging -- autogenned WSDL has different declarations for POST/GET vs SOAP responses and the diff is that they just reference the autogenned elem/type fo...

Web service Session management

i have created a web service that will we accessible to only authenticated user of the website.when user first time call a web method first he will we authenticated.when authentication is successfull i will create a session for that user.now on next call to the web service by that user i want to use that session means he is authenticate...

Binding the Result from a webservice to an ObservableCollection which to be bound to a DataGrid

Hi All, I'm getting a List as a result from my webservice. I need to bind it to an ObservableCollection and then bind the ObservableCollection to a DataGrid This is my coding. ObservableCollection<SubTotals> ds = new ObservableCollection<SubTotals>(e.Result); but I'm getting an error. Can anyone ple help me out. Thank you. ...

Eclipse Web Services Test Client and Exception: (401) Unauthorized error

I am trying to test a user/pw protected web service using the "web services test client" in Eclipse IDE. I am able to generate the client but when I test any methods I get the exception: (401)Unauthorized error. How do i get about putting the username/pw authentication so that my client is able to call the functions successfully? Thank ...