Click here to Skip to main content
15,888,610 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: VB.net 2010 Send Keys To Dos Program Pin
Richard Andrew x6425-Dec-15 11:31
professionalRichard Andrew x6425-Dec-15 11:31 
GeneralRe: VB.net 2010 Send Keys To Dos Program Pin
rderkis25-Dec-15 12:03
rderkis25-Dec-15 12:03 
GeneralRe: VB.net 2010 Send Keys To Dos Program Pin
rderkis25-Dec-15 12:15
rderkis25-Dec-15 12:15 
GeneralRe: VB.net 2010 Send Keys To Dos Program Pin
Richard Andrew x6425-Dec-15 12:23
professionalRichard Andrew x6425-Dec-15 12:23 
GeneralRe: VB.net 2010 Send Keys To Dos Program Pin
rderkis25-Dec-15 12:50
rderkis25-Dec-15 12:50 
GeneralRe: VB.net 2010 Send Keys To Dos Program Pin
Richard Andrew x6425-Dec-15 13:12
professionalRichard Andrew x6425-Dec-15 13:12 
GeneralRe: VB.net 2010 Send Keys To Dos Program Pin
rderkis25-Dec-15 14:01
rderkis25-Dec-15 14:01 
Questionusing streamwriter to access a SSL webservice Pin
jkirkerx23-Dec-15 10:39
professionaljkirkerx23-Dec-15 10:39 
This is a different function to test SSL connectivity to a Web Service.
I keep getting timout on using Stream_writer. I'm thinking that I can't ask for a request until I send data to the website, or it just can't be done using streamwriter. I'm not sure, I don't do much stuff like this, but it works fine on port 80.

And the URL is like https://domain.com/webservice.asmx"
Dim request_str As String = "/ HTTP/1.1" & vbLf & "Host: " & pHost & "?wsdl"
        Dim response_str As String = Nothing

        Dim encoder As ASCIIEncoding = New ASCIIEncoding
        Dim bytes() As Byte = encoder.GetBytes(request_str)

        Dim request As HttpWebRequest = HttpWebRequest.Create(pUrl & "?wsdl")
        request.Credentials = CredentialCache.DefaultCredentials
        request.Method = "POST"
        request.Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8"
        request.ContentType = "application/x-www-form-urlencoded"
        request.KeepAlive = False
        request.UserAgent = "SMTP Messenger 2015/" & My.Application.Info.Version.ToString
        request.Referer = ""
        request.ContentLength = bytes.Length
        request.Timeout = 15

        Try

            ServicePointManager.ServerCertificateValidationCallback = New System.Net.Security.RemoteCertificateValidationCallback(AddressOf AcceptAllCertifications)
            Using stream_writer As StreamWriter = New StreamWriter(request.GetRequestStream)

                stream_writer.Write(request_str)

            End Using

            Using response As HttpWebResponse = request.GetResponse()

                Using stream_response As StreamReader = New StreamReader(response.GetResponseStream())

                    response_str = stream_response.ReadToEnd()
                    stream_response.Close()

                    If (response_str IsNot Nothing) Then

                        If response_str.Contains("<?xml version") Then

                            global_variables.gOnline = True
                            pValue = True

                        End If

                    End If

                End Using

            End Using

        Catch ex As WebException

AnswerRe: using streamwriter to access a webservice via SSL, just test to see if it exist under SSL[solved] Pin
jkirkerx24-Dec-15 10:17
professionaljkirkerx24-Dec-15 10:17 
QuestionStartTLS, using socket Pin
jkirkerx19-Dec-15 12:26
professionaljkirkerx19-Dec-15 12:26 
AnswerRe: StartTLS, using socket Pin
jkirkerx19-Dec-15 13:02
professionaljkirkerx19-Dec-15 13:02 
QuestionRead from Barcode readers Pin
satc19-Dec-15 5:40
satc19-Dec-15 5:40 
AnswerRe: Read from Barcode readers Pin
Richard MacCutchan19-Dec-15 21:17
mveRichard MacCutchan19-Dec-15 21:17 
AnswerRe: Read from Barcode readers Pin
Sascha Lefèvre23-Dec-15 11:40
professionalSascha Lefèvre23-Dec-15 11:40 
QuestionVb6 Installer Pin
Otekpo Emmanuel15-Dec-15 8:03
Otekpo Emmanuel15-Dec-15 8:03 
AnswerRe: Vb6 Installer Pin
Dave Kreskowiak15-Dec-15 9:53
mveDave Kreskowiak15-Dec-15 9:53 
AnswerRe: Vb6 Installer Pin
Rizwan Chattha27-Dec-15 1:26
Rizwan Chattha27-Dec-15 1:26 
QuestionComma, ')', or a valid expression continuation expected Pin
gauravsaraogi2115-Dec-15 3:41
gauravsaraogi2115-Dec-15 3:41 
AnswerRe: Comma, ')', or a valid expression continuation expected Pin
CHill6015-Dec-15 5:24
mveCHill6015-Dec-15 5:24 
Questionhow to display marker on digital map with mapwingis VB.NET Pin
joerwanto14-Dec-15 22:57
joerwanto14-Dec-15 22:57 
QuestionRe: how to display marker on digital map with mapwingis VB.NET Pin
CHill6015-Dec-15 5:14
mveCHill6015-Dec-15 5:14 
QuestionPrinting invoice in CRSTAL report 8.5 in DOT MATRIX Printer in roll Paper Pin
imagetvr12-Dec-15 20:59
imagetvr12-Dec-15 20:59 
AnswerRe: Printing invoice in CRSTAL report 8.5 in DOT MATRIX Printer in roll Paper Pin
Dave Kreskowiak13-Dec-15 5:17
mveDave Kreskowiak13-Dec-15 5:17 
QuestionPrinting invoice in Continuous stationery in usb dot matrix in VB6 Pin
imagetvr12-Dec-15 21:31
imagetvr12-Dec-15 21:31 
AnswerRe: Printing invoice in Continuous stationery in usb dot matrix in VB6 Pin
Dave Kreskowiak13-Dec-15 5:12
mveDave Kreskowiak13-Dec-15 5:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.