WCF / ASMX :: Creating A Web Service Properly & Effectively?

Dec 16, 2010

i had my code in .aspx page which i trnasfeered to the .asmx pageso i get error in few places in .asmx pageUnable to cast object of type 'System.String' to type 'System.String[]'earlier i had a label control which i hve replaced with a variable in .asmx pagelet me knw hoe to do the few modification to make it workingi hve the below code which gives me conversion frm string to string[] errorPrivate Shared errorList As List(Of String) = New List(Of String)dim msg as string

If errorList.Count = 0 Then
msg="Sucessfully done"
Else

[code]...

View 2 Replies


Similar Messages:

WCF / ASMX :: Creating A Sample Web Service Response?

Sep 8, 2010

I am trying to simulate a sample web service payload similar to that which i will receive one the webservice is live. Can anyone help me simulate this?Criteria for my response will be:a bool pass or fail string - message and the object (in this case in the form of a list) heres the class I am to populate with sample data:

[Code]....

How can I use this class to put sample data in it? Lets say I want to put customers in the list 'ReturnObjects'?

View 6 Replies

WCF / ASMX :: Creating Automatic Service Call Url

Jul 23, 2010

I am creating new WCF service and i would like to do two way XML for communicating with third party vendors. My wcf service get the request from the outside program by means of URL and it should response accordingly.

Example - I have url which third party will call and put xml as a request, i have to get that xml, work accordingly and response back with either success or failure and appropriate xml. I need to make it completely automatic so anybody can call that url, it will validate that user and do the next step of request and response.

View 1 Replies

WCF / ASMX :: Creating Restful Service - Concurrency

Jan 15, 2011

i am in the process of creating a restful service with WCF, the service is likely to be consumed by at least 500 people at any given time. What settings would i need to set in order to deal with this.

Here is a sample of what i have so far;

[Code]....

And this is an example of a method being called;

[Code]....

View 1 Replies

WCF / ASMX :: Creating Class Library From Web Service?

Dec 17, 2010

We are consuming third Web services.

Instead of using datatypes from web service proxy we need to create our own class which will take the values from web service output.

Since the web service data types are so much deep,we are facing lots of problems to create our cutom classes.

Is there any tool available to create classes directly from web services in ordered way....

View 2 Replies

WCF / ASMX :: Creating Web Service Cross Domain Security?

Feb 22, 2011

I wont to restrict my web service only for few domains.

I wont to have access to web service from using ajax and my page, and I don't want that anybody can create client to my WebService and view my web service methods.

View 4 Replies

WCF / ASMX :: Creating .Net Web Service To Send Multiple XML Files

Apr 27, 2010

I have to define a web method which will fetch XML documents from another web service based on the list of projects from the database. Now I need to send these XML documents in different SOAP envelopes. XML documents can be more than one.

View 1 Replies

WCF / ASMX :: Create Web Service - How To Web Page Call Sales_Services.asmx

May 5, 2010

if i have the web application with many pages like add order page, edit order page, and delete order page actually they also interact with the Sql Server 2008 and i also create web service page call Sales_Service.asmx. i know just i need to put something like query into Web Method in Sales_Service.asmx but i have a lot of queries, i don't know which query i should put into it and how the web page call the Sales_Services.asmx

View 2 Replies

WCF / ASMX :: IIS Memory Increasing For Each Client Request In Asmx Web Service?

Nov 8, 2010

A customer reported that our asmx web service is continually increasing in memory (mem usage as well as private bytes). We are able to reproduce the problem in our lab with Windows 2003 Server SP2 (fully patched) on some of the machines. The customer is using Windows 2008.

We created a Hello World web service targeting the 2.0 framework built under VS2005 SP1 and a test client that continues to call it. The memory increases steadily - approximately 40K per client request. If the test app is paused, the memory remains the same. When it is closed, the memory drops. Explicit calling of GC.Collect does not drop the memory.

We have run the memory profiler on the service and the leak is all native memory. We have uninstalled/re-installed the Framework on one of the machines but no difference. To our knowledge all of the security and IIS settings are not modified. We have compared app pool, default web site and virtual directory properties to machines that have no problem and they are identical.

View 11 Replies

WCF / ASMX :: How To Properly Test SSL Enabled Web Services

Oct 5, 2010

Maybe I am overthinking this a bit but I have a set of SSL enabled third party web services that I want to test. The url for the web service is essentially [URL]

Do I need to have a certificate setup on my test ASPX page to fully encrypt this connection or am I OK. with simply a simple ASPX page, create my objects from the WSDL and have at it?

View 4 Replies

WCF / ASMX :: How To Call Asmx Web Service In A .net App From Classic Asp App Js File

Mar 17, 2011

I have a .net app developed in .net 4.0 version. And I implemented an asmx web service in this. Now I want to call one of the webservice method in another classis ASP application java script function.

View 2 Replies

WCF / ASMX :: Running A Web Service User Service / Domain Account?

Mar 28, 2011

Is it possible to run a web service as a particular user/service account in the same way a Windows service can?I have a service account used for connecting to the DB and want to run the webservice under this account as the users using the webservice won't have DB access.The way I see to do it is to include the Impersonate option in the Web.config file, but is there any better way to do this?

View 1 Replies

WCF / ASMX :: Create An Instance Of Web Service Without Adding Web Service Reference?

Mar 17, 2011

How to create an instance of web service without adding web service reference? How to identify the server address/name where the web service is hosted from C# code?

View 1 Replies

Unable To Pass User Credentials From WCF Web Service To ASMX Web Service

May 25, 2010

My WCF Client calls my WCF Service which then calls ASMX Web Service. The problem is i have configured my wcf client and wcf service to windows credentials type but when wcf service calls asmx service the user credentials (default windowsidentity) is not passed to asmx service.

In WCF Service i am able to get user identity by using : Thread.CurrentPrincipal.Identity.Name;
WCF Service - i have disabled anonymous access and enabled windows authentication. ASMX Web Service - i have disabled anonymous access and enabled windows authentication.
WCF Service Config
[Code]....

View 1 Replies

WCF / ASMX :: How To Call Web Service Hosted In Window Service And Having End Point Over Tcp

Aug 4, 2010

i have created a normal web service and i want to host it outside IIS. one idea i got is to use window service as hosting environment. i have created a web service and hosted it window service and its window service is running now.would anybody please let me know that how can i call web service hosted in window service binded over soap.tcp. here is my sample code.

[Code]....
[Code]....

View 1 Replies

WCF / ASMX :: Develop A Web Service That Handle Another Web Service's Event (C#.Net 3.5 Framework)?

May 26, 2010

I want to develop a web service that handle another web service's event. (C#.Net 3.5 framework)

View 1 Replies

WCF / ASMX :: Create Simple Web Service In VS2010, NOT WCF Service?

Aug 30, 2010

How to create simple web service in VS2010 Professional (trial version). There is no template to do this. I am not trying to create WCF service here.

View 2 Replies

WCF / ASMX :: How To Convert Existing Web Service To Framework 3.5 Service

Sep 20, 2010

I have running existing web service in framework 2.0, but i want to convert all my service to framework 3.5 WCF Service..

View 1 Replies

WCF / ASMX :: Add Service As Service Reference To VB6 Winforms Application

Feb 7, 2011

How do I add the WCF service built using VS2010 as a service reference to a Winforms app which is written in VB6?

View 1 Replies

WCF / ASMX :: "Service Error - Web Service Failure

Feb 2, 2011

I am keep getting an error that "Service Error : wbsTest failed" where wbsTest is my webservice.

The error comes up frequently enough for the user - normally reproducible within a minute or so of working with an application.

A bit of background: An user is a remote user accessing application hosted on our servers over https. He is software firewalled and his connection isn't the fastest but it is responsive enough. When errors do not present themselves, page loads are fairly quick.

View 8 Replies

DataSource Controls :: Can't Use Query Effectively - First Name And Last Name

May 13, 2010

i want to know that should first name and last should be kept as sperate field or merged into single attribute. The Basic problem i am facing to keep first name and last name in seperate fields is that i cannot effectively use like query for searching a record by name

View 7 Replies

Use Generic Collections And List Effectively In Application?

Aug 19, 2010

How to use Generic collection and generic list effectively in a asp.net application i.e. web application.? Can we able to use Generic list in Dataset or Datatable or Datareader using to bind in Grid view?

View 7 Replies

Web Forms :: Call Window's Service Not Working Properly

Mar 15, 2010

I am trying to call window's service from my web form but it is not working properly..kindly any one can tell me the procedure or rules that i have to follow to achive this scenario.

View 2 Replies

WCF / ASMX :: Intermittant Error: "A Connection Attempt Failed Because The Connected Party Did Not Properly?

Aug 19, 2010

I'm having a doozy of a problem, and can't find a solution. I have a WFC Web Service installed to a pair of servers, and accessed through a load balancer. I am accessing the service from an ASP.NET client app, also via WCF. The Client is not load balanced.I'm getting an intermittant error:

(Inner Most Exception) System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond x.x.x.x:80(Middle Exception) System.Net.WebException: Unable to connect to the remote server(Outer Exception) System.ServiceModel.EndpointNotFoundException: Could not connect to http://<MYSite>/<MYApp>/<MYService>.svc.TCP error code 10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond x.x.x.x:80.

I can reproduce this error with about 20% reliability if I execute the exact same page request on the client from 2 browsers at the same time. When the problem occurs, the successful page request returns in about 5 seconds, and the failed page request returns in about 30 seconds.I'm guessing that there is some additional latency when the load balancer decides to switch my session to another server, and that is making some timeout setting on my client to be exceeded. I need to research this performance characteristic... any thoughtsbut its not my core question.My core question is... Exactly what setting can I tweak to increase the "period of time" the "connected party" is allows to "properly respond".This is the basicHttpBinding configuration I am using on both sides of the communication:

<basicHttpBinding>
<binding name="LongerTimeout"
sendTimeout="03:00:00"
maxReceivedMessageSize="2147483647"
maxBufferPoolSize="2147483647">
<readerQuotas maxArrayLength="2147483647" maxStringContentLength="2147483647"/>
</binding>
</basicHttpBinding>

I've seen some indication that setting the receiveTimeout value on the server may help, but I set this to 1 second in a test environment, and was unable to reproduce the problem, leads me to believe its not worth a production environment change to verify this.

View 3 Replies

WCF / ASMX :: How To Access Web Service In WCF Service

May 24, 2010

I want to access simple web service inside WCF service. How can i achieve it?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved