Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IIS crashes creating web service reference
Message
De
25/06/2009 17:46:49
 
 
À
25/06/2009 13:33:44
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Divers
Thread ID:
01408112
Message ID:
01408503
Vues:
29
>>>You should be able to run the web service within the VS IDE the same as any other application. Once running, you can open another instance of Visual Studio for your windows test application and set the web service to the local running copy and port. This would allow you to set breakpoints both in the windows app as well as in the web service side.

>I think if you just set your breakpoint in the web service method it would stop on that breakpoint in that instance of VS. I did it lots, so may have to do it again to verify any exact steps but I don't recall anything special. When you have a straight web service like this you actually have a proxy object on the client. But you are ultimately calling a method in the web service, so set your breakpoint in your web service code instead.
>Tim

I think I figured out how to attach to the ASP.net web server process to debug so maybe I can get it to halt on a breakpoint in there. My little client app died with an unrelated problem before I could find out. :)
<Serializable()> _
Public Class ICGOrder
    Public ServiceType As String = " "
    Public AccountNumber As String = " "
    Public AccountName As String = " "
    Public LoanType As String = " "
    Public LoanTerm As String = " "
    Public LoanAmount As Decimal = 0.0
    Public AppraisedValue As Decimal = 0.0
    Public AppraisalDate As Date
    Public Branch As String = " "
    Public InvestorCode As String = " "
    Public FormerOwner As String = " "
    Public Remarks As String = ""
    Public MailAddress1 As String = ""
    Public MailAddress2 As String = ""
    Public MailCity As String = ""
    Public MailState As String = ""
    Public MailZipCode As String = ""
    Public MailPlus4 As String = ""
    Public CollateralCount As Integer
    Public Collaterals As ICGCollateral()
    Public ClientSystem As String = ""
    Public EndUserEmail As String = ""
End Class

Public Class ICGCollateral
    Public PropertyAddress1 As String = ""
    Public PropertyAddress2 As String = ""
    Public PropertyCity As String = ""
    Public PropertyState As String = ""
    Public PropertyZipCode As String = ""
    Public PropertyPlus4 As String = ""
    Public PropertyCounty As String = ""
    Public PropertyType As String = ""
    Public PropertyLegalDescription As String = ""
    Public TaxingJurisdictionName As String = ""
    Public Parcel As String = ""
    Public AlternateParcel As String = ""
    Public AddressSame As Boolean = False
End Class
Given the above class definitions, how do I fill in the array (or collection?) of ICGCollateral objects when creating and filling an instance or ICGOrder? I tried this and blew up.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim myorder As New localhost.ICGOrder()
 With myorder
            .ServiceType = "TAX CERT"
            .AccountName = "Newsom"
            .AccountNumber = "0123654"
            .Branch = "001"
            .ClientSystem = "SAC"
            .EndUserEmail = "jnewsom@icgtax.com"
            .LoanAmount = 100000.0
            .LoanTerm = "360"
            .LoanType = "FHA"
            .Collaterals.SetValue(New localhost.ICGCollateral, 1)
            .Remarks = "Remarks."
        End With
        With myorder.Collaterals(1)
            .AddressSame = True
            .Parcel = "123-456-789"
            .PropertyAddress1 = "3130 Sundial Dr."
            .PropertyAddress2 = ""
            .PropertyCity = "Dallas"
            .PropertyCounty = "Dallas"
            .PropertyZipCode = "75229"
            .PropertyState = "TX"
            .PropertyLegalDescription = "Single family residence at stated address."
            .PropertyType = "Residential"
        End With
 End Sub
Jim Newsom
IT Director, ICG Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform