Все вопросы: [asmx]

223 вопросов

похожие теги:
1
голосов
1ответов
554 просмотров

What is the most efficient cross-process communication method for IIS web services

We have a set of (ASMX but could be WCF) 64-bit web services which need to execute some 32-bit managed code (the APIs have 32-bit COM dependencies and cannot be executed in 64-bit) for processing on the same physical machine. The 64-bit web services are hosted in IIS 7.0. Note: some of the messag...

1
голосов
4ответов
234 просмотров

Windows Communication Foundation (WCF)

Why we are going for WCF when web services (ASMX) exist ??

0
голосов
1ответов
2822 просмотров

Can you set the maxlength of a string in WSDL generated by an ASP.Net WebService?

I am creating a web service in ASP.Net. I have looked and can't find any way of making ASP.Net set the maxLength attribute of string parameters in the generated WSDL file. Is this possible, and if so how can it be done?

3
голосов
4ответов
1324 просмотров

Can asmx services return nothing instead of null?

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="n...

5
голосов
1ответов
5120 просмотров

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://example.com/service/), which gives me all the methods available. However, when I try to invoke a method,...

8
голосов
7ответов
17404 просмотров

Send JSON to webmethod?

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

3
голосов
3ответов
1385 просмотров

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 wonde...

6
голосов
2ответов
6250 просмотров

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 th...

2
голосов
2ответов
604 просмотров

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...

12
голосов
4ответов
18975 просмотров

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 ...

1
голосов
1ответов
343 просмотров

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 thou...

1
голосов
2ответов
1218 просмотров

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

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 check...

0
голосов
2ответов
102 просмотров

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 ...

20
голосов
2ответов
17600 просмотров

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 m...

1
голосов
6ответов
2094 просмотров

ASMX Web Service Method Singleton

Not sure if this is the right terminology, let me explain what I want. I have a web service that's available on the network - the web service has 1 web method. What I want is... if the web service is running and performing tasks and another call is made to this web service, I want the 2nd cal...

2
голосов
1ответов
484 просмотров

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?

0
голосов
3ответов
184 просмотров

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 return...

1
голосов
2ответов
1275 просмотров

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 Conte...

3
голосов
2ответов
9485 просмотров

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)...

0
голосов
1ответов
754 просмотров

Fix non-standard web serverice port on contractRef and docRef

My problem is closely related to this one: 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 ...

0
голосов
2ответов
48 просмотров

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 refe...

0
голосов
2ответов
3693 просмотров

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

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 c...

2
голосов
1ответов
381 просмотров

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?

2
голосов
3ответов
3181 просмотров

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 ...

1
голосов
1ответов
693 просмотров

ASMX Object -> Proxy Object Conversion

Is there a way to convert an instance of an object to an instance of a web service proxy of the same type? It seems like this is something .NET has to be capable of under the hood, so I'm just trying to find and re-use this function. It's definitely a little awkward, but I have access to both t...

0
голосов
1ответов
310 просмотров

Create an instance of an ASMX stub object from a real object

I have an ASMX web service that exposes several objects. I have a real instance of that object, and I would like to instantiate a stub object that is populated from it. Clearly there is such functionality already, because when the web service returns a value it is creating the stub and populatin...

3
голосов
4ответов
3443 просмотров

Optimizing an ASMX web service with Multiple Long-Running Operations

I'm writing an ASP.NET web service using C# that has a DoLookup() function. For each call to the DoLookup() function I need my code to execute two separate queries: one to another web service at a remote site and one to a local database. Both queries have to complete before I can compile the re...

1
голосов
3ответов
3815 просмотров

What is the meaning of generating a proxy for a web service ?( .NET in specific)

What does it mean to generate a new proxy for the Web service? What is proxy? I already added web service url into web references. What is disco, wsdl and asmx file?

21
голосов
3ответов
37159 просмотров

Forcing ASP.net webservice to return JSON

I have an ASP.net web service that I'm using for a web application which returns a either XML or JSON data to me, depending on the function I call. This has been working well thus far, but I've run into a problem. I want to create an "export" link on my page that will download a JSON file. The li...

7
голосов
2ответов
9989 просмотров

Can I change a web service reference URL in the Config file?

I have an application targeting the 2.0 .NET framework. The solution is using the VS web service reference folder. A grep through the solution reveals that this URL lives in a handful of files. However in the deployed application a search shows that the URL lives in only the .config. So what happ...