0 Replies Latest reply on May 9, 2011 2:09 AM by TheGarfunkal

    Webservice IO error help!

    TheGarfunkal Level 1



      I have a company internal Flex application that uses a asp webservice (again internal)  to get user Id and Name.  Its been live for a few months now, but today its gone haywire - it was even working earlier today! 


      My app calls this webservice which has two webmethods - oddly one is fine and returns the info ok - the other is failing.  If i access the webservice via the browser thru localhost then they both work - so this seems to be an interpretation in Flex maybe?


      The trace shows the error as :


      faultCode:Server.Error.Request faultString:'HTTP request error' faultDetail:'Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://horoap509/CMIRSS/Flex.asmx"]. URL: http://horoap509/CMIRSS/Flex.asmx'


      The webmethods are: (top one is the working one)


          <WebMethod()> _

          Public Function GetName() As String

              Return My.User.Name.ToString

          End Function


          <WebMethod()> _

         Public Function GetFullName() As String


              Dim defaultNamingContext As String

              Using rootDSE As New DirectoryEntry("LDAP://RootDSE")

                  defaultNamingContext = rootDSE.Properties("defaultNamingContext").Value.ToString()

              End Using


              Dim strUserName As String

              Dim strRealName As String

              Dim strADPath As String


              strUserName = (My.User.Name.ToString)

              strUserName = strUserName.Replace("OPD\", "")

              'strUserName = "a08107"

              strADPath = "LDAP://" + defaultNamingContext


              Dim Entry As DirectoryEntry = New DirectoryEntry(strADPath)

              Dim Searcher As DirectorySearcher = New DirectorySearcher(Entry)

              Dim result As System.DirectoryServices.SearchResult


              Searcher.Filter = ("(sAMAccountName=" & strUserName & ")")

              result = Searcher.FindOne()

              strRealName = (result.GetDirectoryEntry().Name)

              strRealName = strRealName.Replace("CN=", "").Replace("\", "")

              strRealName = StrConv(strRealName, VbStrConv.ProperCase)


              Return strRealName

          End Function


      any ideas?  Its pretty weird that it worked earlier!