Problem with WebServices

Ask a Question related to ASP.NET Web Services, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default 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

  4. #3

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139