asmx

How to handle SalesForce WSDL files for sandbox and production sites in ASP.Net?

I need to authenticate users and get info about them from an ASP.Net application. Since I have 2 sites (sandbox, production) and 2 org IDs - I needed to generate 2 SalesForce WSDL files. I diffed the 2 files (each about 600kb in size) and while they are 95% the same, there are enough differences strewn all over the place - enough for me ...

How do you protect Web Services when using it as JSON via Jquery?

I currently use asmx for Json transactions using Jquery. How do I protect it from being accessed across other websites and make it exclusive only through my domain? ...

Creating a SOAP Envelope programatically and including it in the HttpWebRequest in .NET

Hi all, I'm involved in a project that would call a webservice dynamically. I have figured out a way to call a webservice method that has no method parameters on it, but now what I need is for me to call web methods that have parameters on it. Was wondering if there are good examples on how I could create a soap envelope and how I c...

2005 web service that I cannot consume in 3.5 app

When I look at the .asmx page in the browser I see: The following operations are supported. For a formal definition, please review the Service Description. AcceptCaseInformation ClearServiceErrors CreateBatch GetBookingsOnIndictment GetCaseInformation GetCasesForJacket When I reference the asmx file in my project I do not...

Fix non-standard web serverice port on contractRef and docRef

My problem is closely related to this one: http://stackoverflow.com/questions/640641/how-can-i-use-net-web-services-from-non-standard-ports. My web service runs behind a port-forwarding firewall, so the port numbers reported in the WSDL document contain the internal high-numbered port. I wrote a SoapExtensionReflector class which is ab...

how do you pass an array string[] to a Web Service via Jquery?

here's my code: var ids = $.map($("#container-1").children(), function(n, i) { return n.id; }); $.ajax({ type: 'POST', url: 'Loader.asmx/Active', data: "{'divs':'" + ids + "'}", contentType: 'application/json; charset=utf-8', dataType: 'json', success: function(msg) {} }); ...

Http post to asmx with unnamed parameter

I have a webmethod like this: [WebMethod] public string HelloWorld(string a) { return a; } The instructions to post to my asmx webmethod say to post like this: POST /Service1.asmx/HelloWorld HTTP/1.1 Host: localhost Content-Type: application/x-www-form-urlencoded Content-Length: length a=string However I wa...

WCF - WebReferences not working

At the client end, I have generated a Proxy using SvcUtil.exe and it is working fine. Then I have added a WebReference to the client assembly and calling the same method. But it is not working. My program is running in console mode and the method is suppose to return a string. It is not returning the string. I just see a blank console...

Restrictions in asmx web services

When designing ASMX web services, there is some sort of restriction on the types which you can use (Serialize/deserialize). Can anyone let me know what these restrictions are? Can it be bypassed by just adding the serializable attribute to the code? ...

How much effort is required to convert an ASMX to WCF web service?

I have 2 web services with about 6 web methods in total, most of the code is ofc sitting in assemblies any way, and the web service asmx is really just calling these assembly methods and returning their return type. How much effort is it to convert the web services from ASMX to WCF? I pretty much at this stage control the only - non w...

The Web Services stack refuses to work until the system is rebooted.

I have the following scenario. My client application connects to a server side software via web services. I have no control over the server side software. Every time the server side folks deploy a new version, my client app can't connect to it (via the web services... ping works fine) until the client system is rebooted (just restar...

MVC Style Filters on ASMX Web Services, is it possible?

Hi, Is it possible to create MVC style filter attributes (like Authorize or HandleError) that work on ASMX Web Services? Specifically, I perform custom authentication on a number of my web methods and would like to wrap the code into an Attribute that throws an exception, if the authentication checks fail. Rich ...

Securing ASP.NET Web Service

I'm planning to develop a web service application to support an iPhone app and need to be able to secure communications between the application and certain asmx methods. Having used APIs for Facebook, Twitter and the like - I was wondering how I might best accomplish this with ASP.NET. Any thoughts? ...

WebService Problem Asp.Net

I just created my first Web Service. I use: IIS 7.5 VS 2008 .Net 3.5 After install my IIS and browse to my asmx file in IE I get the follow Error: HTTP Error 500.21 - Internal Server Error Handler "ScriptHandlerFactory" has a bad module "ManagedPipelineHandler" in its module list I googled it since 2 hours but don't find a ...

Sending Linq to SQL classes over webservice

I have a windows application and a web service. Both have a Linq to SQL mapper with Customer table on them. Same table from the same database, same everything. I tried to send winapp.Customer object to web service but the webserviceReference.MyMethod() accepts webservice.Customer object and doesn't accept winapp.Customer as parameter. Tr...

Benefits to switching from classic asmx to wcf.

Recently I made the switch from using asmx web services to using wcf services, the transition is nearly finished, but I know I'm in for a lot of error checking and testing to make sure everything ported as expected. My question is - so far I can only think of 1 good benefit to using wcf, and that is you get an easy way to implement a s...

Help me understand web methods?

I have a method on a page marked with the webmethod and scriptmethod tags.. The method returns a collection of objects to a jquery function as JSON data with no hassles and without me having to manually serialize it. I am now trying to recreate that same method using a HTTPHandler and was wondering why i have to now manually serialize ...

Send JSON to webmethod ?

How can i send a JSON object to a webmethod using jQuery? ...

ASP.NET Web Service changes port on Invoke

I have a ASP.NET Web Service on IIS, that is working on port 8080. On port 80 I have Apache, that is redirecting some web sites to IIS. On this case, I can access the Web Service page (http://xxx.com/service/), which gives me all the methods available. However, when I try to invoke a method, it goes to a web page like this one: http://x...

Can asmx services return nothing instead of null?

Hey all, I have a WebService I'm maintaining, running on .Net 2.0. It uses the original "asmx" file standard for a series of web services. In these web services, some objects are returned that have potentially a large number of "null" values. For example: <user id="1" name="foo" job="null" location="null" audience="null" /> This is a...