Ask a Question related to ASP.NET Web Services, Design and Development.
-
Asier #1
Problem with WebServices
Hello,
I' ve created a new webService Project and run with "Hello World"
example. It run fine. After it, i created a Winform project and included a
webReference to this webservice. I run it and run fine.
Ok, no problems...
Yes I have a problem. When i run my WinForm project and execution go
into webService, in this momento no other program can run this webservice
because is locked.
What is the problem? Can 2 programs run then same WebMethod at the same
time?
Thanks.
Asier
Asier Guest
-
problem about webservices
hello,kind people. there is one problem about WebServices from me,i thought over and over,but no result. it looks not the FMS case,but as you... -
WebServices Queuing problem
I have an RIA which has about 15 webservices to load. By the time user clicks signin sometimes the wsdl is not loaded and hence its not making a... -
webservices simple example problem
Hello, I am trying to get familiar with the possibilities of webservices under the .Net development environment. I have created from the .Net... -
HELP! HELP! Access problem to WebServices
I have written a generic proxy class for web services access This proxy class runs in the same server of WebService The class works fine if the... -
Problem accessing webservices
Hi All, We have problems in accessing a WebService which is running on a remote server from a ASPX application. It gives us Un Authorized... -
Bharat Biyani #2
RE: Problem with WebServices
Hi Asier,
You are not able to perform any activity on the windows form since the webrequest call to the webservice is a blocking call. Which means once the request is made and till the response is received all activity of the thread which called the web request ceases. To get around this problem you will have to call your web service in an asynchronous fashion.
You can have a look at the foll. URL to see how web services can be called asynchronously.
[url]http://www.developer.com/net/article.php/1464751[/url]
Any number of programs can call the web method at the same time. It depends upon how much load the web server can bear.
--
Bharat Biyani (bsb@orcim.com)
[url]http://www.orcim.com[/url]
"Asier" wrote:
> Hello,
>
> I' ve created a new webService Project and run with "Hello World"
> example. It run fine. After it, i created a Winform project and included a
> webReference to this webservice. I run it and run fine.
> Ok, no problems...
> Yes I have a problem. When i run my WinForm project and execution go
> into webService, in this momento no other program can run this webservice
> because is locked.
>
> What is the problem? Can 2 programs run then same WebMethod at the same
> time?
> Thanks.
>
> Asier
>
>
>
>
>
>Bharat Biyani Guest
-
minzojian #3
problem with WebServices
hello,kind people.
there is one problem about WebServices from me,i thought over and over,but no
result.
it looks not the FMS case,but as you know,FMS can use WebServices,and the
problem just occur when i use a WS object to do sth.
see,i just use these scripts to build a WS object.
======================
load("WebServices.asc");
application.onAppStart = function() {
this.myWebSrvc = new WebService("http://localhost/myservice.asmx?wsdl");
};
======================
in normal situation,the live logs will show these messages:
======================
WebServices Loaded successfully.
10/13 13:58:9 [INFO] : Made SOAPCall for operation helloworld
10/13 13:58:9 [INFO] : Made SOAPCall for operation helloworld2
10/13 13:58:9 [INFO] : Made SOAPCall for operation helloworld3
======================
but my situation like this:
======================
WebServices Loaded successfully.
======================
no romote methods can be got...
i use IE to view the page code of "http://localhost/myservice.asmx?wsdl"
in the normal situation,codes could be
======================
<?xml version="1.0" encoding="utf-8" ?>
- <definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://tempuri.org/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
targetNamespace="http://tempuri.org/" xmlns="http://schemas.xmlsoap.org/wsdl/">
- <types>
- <s:schema elementFormDefault="qualified"
targetNamespace="http://tempuri.org/">
- <s:element name="helloworld">
..... ....
....
======================
but in my situation. it was
======================
<?xml version="1.0" encoding="utf-8" ?>
- <wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns="http://tempuri.org/"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
targetNamespace="http://tempuri.org/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
- <wsdl:types>
- <s:schema elementFormDefault="qualified"
targetNamespace="http://tempuri.org/">
- <s:element name="helloworld">
... ...
...
======================
check the differences between the codes,the unnormal one has a addtional
tag:wsdl:
minzojian Guest



Reply With Quote

