How can i use .Net assembly in asp?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Gyanchand
    New Member
    • Jul 2007
    • 35

    How can i use .Net assembly in asp?

    I have a .Net API (wsdl). I have created a proxy for it, and now it want to use it in ASP. Since, we didn’t get any readymade Proxy generator for ASP/vbscript, We used .Net command prompt to generate the Proxy class.

    Code:
     
    Dim ws
    set ws = Server.CreateObject("Integration_1_1")      ‘line where ERROR appears 
    
    Dim auth
    auth = ws.Login(entityID, partnerKey, userKey)
    If (auth <> "") and  not isnull(auth) Then
      Dim customer
      set Customer = server.createobject("Customer")
      Customer = ws.GetCustomer(auth, "TESTINTEGR").Result
    End If
    Error :
    Server object, ASP 0177 (0x80131509)
    80131509

    If I refer this dll from Asp.net then, it works fine.
  • mzmishra
    Recognized Expert Contributor
    • Aug 2007
    • 390

    #2
    Are you trying to Consuming a WSDL Webservice from ASP ?

    Comment

    • Gyanchand
      New Member
      • Jul 2007
      • 35

      #3
      yes that is what i am trying to do.

      Comment

      • mzmishra
        Recognized Expert Contributor
        • Aug 2007
        • 390

        #4
        Look into this link.It may help you
        Founded in 1999, ASPFree.com offers free gift cards, game redeem codes, and daily giveaways with no fees or hidden charges. Get your favorite freebies and surprises every day.

        Comment

        • Gyanchand
          New Member
          • Jul 2007
          • 35

          #5
          Connecting using a proxy

          We are able to connect and retrieve values using SOAP. However, we were trying connect using a proxy.

          We have now added IWAM permissions to the folder where DLL is placed and also to the $windows root folder/temp$.
          Now we are able to instantiate the object of the API. However, we are getting the error at line :
          result = objWs.Login(var 1, var2, var3)

          Error :
          System.Web.Serv ices (0x80131509)
          The underlying connection was closed: The connection was closed unexpectedly.

          Comment

          • Gyanchand
            New Member
            • Jul 2007
            • 35

            #6
            Well i guess their server was unavailable. When we tried the next morning, we were able to get through. So no problem here.

            Comment

            Working...