WCF / ASMX :: Second Request To Webservice Is Not Handled?
Aug 10, 2010
I have a Asp.net webservice. This webservice uses a dll ( the purpose of the dll is to listen at a port say 3305 and accept the request from one of its client (say client is some name PG and this client is different from webservice client) and the dll keeps communicating to the PG client to get some data.)
The webservice works like this.
When a request comes from my test program to Webservice, the webmethod calls the dll api ( to establish the connection between the dll and PG client). and after the connection is established between dll and PG client, the webmethod uses the data from my test program and implements some business logic and then returns some values to the test program.
After the first request from my test program is processed, the connection between DLL and PG will still be existing so as to serve the subsequent request from the test program.
The problem is after the first request is finished, the second request is not being processed by webservice, the request doesnot come to the webmethod or even to the class constructor.
is the connection between the DLL and PG , hanging up the webservice?
View 3 Replies
Similar Messages:
Mar 9, 2011
I'm getting an exception when trying to access an .asmx webservice within a MVC site. I've tried numerous things like updating the web reference within the console application and building another quick app to test, but can't get passed this issue. If I pull the URL out of the svc variable, I can browse to it directly.
Exception Details
System.Web.Services.Protocols.SoapException
occurred Message=Server was unable
to process request. ---> Value cannot
be null. Parameter name: uriString
Source=System.Web.Services Actor=""
Lang="" Node="" Role=""
StackTrace:
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream
responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
at ClarityIntegration.SendTrackerDataToClarity()
in [REDACTED].Reference.cs:line 78
at [REDACTED].Program.Main(String[] args)
in [REDACTED].Program.cs:line 33
InnerException:
CONSOLE APP CODE
var svc = new TrackerClarityService.ClarityIntegration()
{
Url = url,
Credentials =
new System.Net.NetworkCredential("user", "pass", "domain")
};
svc.SendTrackerDataToClarity();
svc.Dispose();
The exception was coming out of the Web Service itself. There were some global variables not being initialized directly through the .asmx call that were being initialized by the application itself.
Some simple checks on variables within the Web Service and setting what needs to be set have fixed up the issue.
View 2 Replies
Apr 27, 2010
have a working ASP.NET 3.5 webservice that accepts standard POST requests using an encoding type of application/x-www-form-urlencoded. I then added a method which needs to accept an uploaded file. We change the encoding type of the request to multipart/form-data so that we can get the file data and now we receive the following error:System.InvalidOperationException: Request format is invalid: multipart/form-data
View 3 Replies
Nov 30, 2010
I have a .Net Webservice(2.0 framework) and I am trying to call this service from SQL
server 2005 using CLR.
I have created assamblies on server and trying to call the we service through CLR, but I'm getting below error:
"Exception:
Server was unable to process request. ---> Invalid URI: The URI is empty."
View 1 Replies
Jun 18, 2010
I am trying to consume a webservice. I added the web reference. But when i try to access the method, I am getting the error as:"The request failed with HTTP status 401: Unauthorized."The web service has username as "user1", password as "pass".I tried this:
Service1.TestPrcsService serv = new Service1.TestPrcsService();
serv.PreAuthenticate = true;
serv.Custom_methodname(true);
How to pass the username and password to access the method?
View 2 Replies
Nov 10, 2010
On my page I have a dropdown for country.
On my asmx service I want to get the value of the dropdownlist to filter the next input which will be state/providence.
My code on the asmx:
[Code]....
I want to add another clause to the WHERE statement to restrict Country = @Country so I will need to get that value to the web service.
View 2 Replies
Feb 24, 2011
I have datatable consist of 20 records and i want to bulk insert into sqlserver through the asmx webservice. Can anybody guide to me or provide Sample BusinessLogic and webservice code.
View 1 Replies
May 15, 2010
I have a webservice which works 100% fine on my developer machine. Where Web Service is installed on LOCALHOST on my developer machine,Then i went to my servers, I installed webservice on one server and map it with the server where the website is hosted, Then i tried accessing this service using BROWSER from my web server, it worked fine, That means the mapping was done perfect.Then i run my program on web server (website). It worked fine on page1, then on page2, but when i did the same and call same function on page3, It popped me any error of
View 4 Replies
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
May 28, 2010
I am facing an issue while calling a web request thru my code. I have searched a lot on number of sites but did not get any solution.
Here is the code which I am using:
[Code]....
View 3 Replies
Nov 3, 2010
I have spent a couple of days on this one. I have an ASP.NET website that has Linkbuttons on
the Default.aspx page.. I added a WebService to the Website because later on the WebService will
subscribe to a Provider(Feed) of News, Sports and Weather and things like that. So when a Linkbutton
on the Default.aspx page is clicked it will connect to the link in the WebService which will load the News,
Sports or Weather onto the Default.aspx web page.
The problem is I can't get the LinkButton to execute the Link in the WebService. The link will call the page up
to where you see all of the Web References. But then if you want to execute one of those references you
have to click its link and the Invoke button that will follow. My questioh is how can the link on my Default.aspx
page execute the link in the WebService. Now I changed the LinkButton into an <a href> but I still can't execute
the link in the WebServices. I always use www.Microsoft.com as the link when testing and I wasn't sure about the return type
so I put "void" for an HTTPRequest, so below is the link from the Default.aspx web page and below that is he asmx file:
[code]....
View 2 Replies
Aug 19, 2010
As I've found here, I can change the webconfig to allow/disallow methods on webservices.
I need only one method to be a GET and for the others it should be a POST, is there a way to configure just one method (or maybe webservice if there is no other way) to accept GET requests? I am on IIS7.
View 2 Replies
Apr 24, 2010
I am using PHP web service in dot net [URL]I set the name of web service as Test but when I am trying to access object test I was not able to use that, is there is any other method to use PHP webservice.
View 1 Replies
Jul 9, 2010
I was looking for an asp.net webservice that uses .net 4.0 but everytime I choose 4.0 the webservice choice goes away.Someone suggested to me that maybe they(MS) want you to use WCF instead. I don't know much about it but he said they are like webservices but better. So anyone got a comparisons guide?
View 3 Replies
Jan 28, 2011
Any body knows How to use webservice ? using Get & Post method...
View 3 Replies
Oct 29, 2010
I have certificate(abcd.rar) , which I need to include when I call that web service from asp.net application, Some one tell me how do I implement certificate into my application, certificate is with file extention .rar
View 3 Replies
May 28, 2010
How can I deploy my Web service on IIS 6.0 ?
I create a web service with VS 2005 on the local IIS, now I must deploy it on an intranet with IIS 6.0.
how to deploy this one one in production server.
View 2 Replies
Nov 4, 2010
I have deployed a webservice on my machine.
Now i want to configure ssl on webservice.
View 5 Replies
Sep 17, 2010
I'm calling an asp.net webservice from a VB.Net application.Is there any way to determine in the webservice that it was called from a specific application. I had a look at Me.Context.Request but I can't see anything that refers to my VB app.
View 1 Replies
Nov 3, 2010
try to guide how to call web service in my asp.net Application. I had Web reference of that web service.I added the Service to my application.i created name space and I try to use methods inside the web service it showing unable to connect server machine. I want to Use jangomail services from asp.net application. my application need to send mass mailing using jangomail service.when i try to access that web service( http://api.jangomail.com/api.asmx) it giving Some Error like Connection failed to
View 4 Replies
Sep 8, 2010
I have console application that sends http request to asp (classic asp).
The asp sends http request to web service.
How can I debug (break points) the WebService?
View 1 Replies
Dec 18, 2010
How to Create WCF Webservice How to Host. How to access. how to transfer data.
View 3 Replies
Sep 1, 2010
Facing an issue with the web service calls written in Java.When am trying to call webservices written indexer Java from my machine its takign ages to respond back.same URL when typed indexer explorer fetches abstract response immediately.if tried on other system and code seems to work find so no issue with the code.unable to figure out what could be the issue while accessing the same from my box?
View 4 Replies
Jun 29, 2010
How to debug a web service localhost after hosting the webservice in IIS
i am not able to find a solution how to debug a web service locally . ie
i am not able to put a breakpoint in afterdeserialize and before serialize method
can any provide a sample code..
Any help
View 6 Replies
Oct 21, 2010
I'm trying to connect to a webservice but my experiens of webservice i limited
Code]....
The values that I would like to getis:carWorkOrderInfoResult.areaIdcarWorkOrderInfoResult.workOrderNumber
View 2 Replies