Click here to Skip to main content
15,887,477 members
Home / Discussions / Web Development
   

Web Development

 
Questionhow to develpoe website with irrespetive of resolution? Pin
Rajesh Kumar Chekuri21-Oct-08 0:54
Rajesh Kumar Chekuri21-Oct-08 0:54 
AnswerRe: how to develpoe website with irrespetive of resolution? Pin
Johnny ²21-Oct-08 1:56
Johnny ²21-Oct-08 1:56 
GeneralRe: how to develpoe website with irrespetive of resolution? Pin
Rajesh Kumar Chekuri21-Oct-08 2:07
Rajesh Kumar Chekuri21-Oct-08 2:07 
GeneralRe: how to develpoe website with irrespetive of resolution? Pin
Johnny ²21-Oct-08 6:08
Johnny ²21-Oct-08 6:08 
QuestionSession Timeout Pin
sirisha guttikonda20-Oct-08 21:05
sirisha guttikonda20-Oct-08 21:05 
AnswerRe: Session Timeout Pin
Paddy Boyd21-Oct-08 2:25
Paddy Boyd21-Oct-08 2:25 
AnswerRe: Session Timeout Pin
Rajesh Kumar Chekuri26-Oct-08 22:08
Rajesh Kumar Chekuri26-Oct-08 22:08 
Questionweb services with no ASMX or WSDL Pin
tryingtofindanamethatsnotused20-Oct-08 16:59
tryingtofindanamethatsnotused20-Oct-08 16:59 
I am using VB.NET.

I am new to web services, and have been given the instruction that I am to send an XML document via HTTPS POST and receive a response XML document. The web service address I have been given has no ASMX file, WSDL file or DISCO, so from what I can gather I cannot use dot.NET's built in web service controls. The address I have been given to post these calls to, is in is the following format:
https://www.server.com/WebService
(I have replaced the real server name)

I swear I have read the entire internet on the topic.

I have a couple of questions

1) can it be done with a web service address formatted such as the above (no ASMX WSDL)?? (I presume it must)

2) Are any of the approaches I have attempted below valid / should work?

3) I keep receiving an error "unable to connect to the remote server", are my issues all their fault? (I doubt it) and if not, what am I doing wrong? How can I do this?

Approaches I have tried include:
(don't get too caught up with the fact some are incomplete or some of the data or calls look silly, I'm really trying to illustrate the techniques that have failed)

Dim oRequest As HttpWebRequest = WebRequest.Create("https://www.server.com/WebService")
Dim oStream As Stream = oRequest.GetRequestStream
Dim oXML As Xml.XmlTextWriter = New Xml.XmlTextWriter(oStream, Encoding.GetEncoding("UTF-8"))


address = New Uri("https://www.server.com/WebService")
request = DirectCast(WebRequest.Create(address), HttpWebRequest)
request.Method = "POST"
request.ContentType = "application/x-www-form-urlencoded"


<WebServiceBinding("SomeBindingName", "SomeBindingNS")> _
Public Class CustomProxy
    Inherits SoapHttpClientProtocol

    <SoapRpcMethod(Action:="urn:AstroIntf-IAstro#GetSunriseInfo", RequestNamespace:="run:AstroIntf-IAstro")> _
        Public Function GetSunriseInfo(ByVal Latitude As Double, ByVal Longitude As Double, _
                                       ByVal Year As Integer, ByVal Month As Integer, ByVal Day As Integer, _
                                       ByVal TimeBiasMinutes As Integer) As String
        Me.Url = "https://www.server.com/WebService"
        Dim ret() As Object
        ret = Me.Invoke("GetSunriseInfo", _
                      New Object() _
                      {Latitude, Longitude, Year, Month, Day, TimeBiasMinutes})
        Return CType(ret(0), String)
    End Function
End Class


Dim oClient As New WebClient
Dim oStream As Stream = oClient.OpenWrite("https://www.server.com/WebService", "POST")
Dim oWriter As StreamWriter = New StreamWriter(oStream)
oWriter.WriteLine("Hello world")
oWriter.Close()


and good old fashioned html:
<form target="_blank" action='http://www.server.com/WebService' method="POST"> 
<table>
  <tr>
    <td>Enter something:</td>
    <td><input type="text" size="30" name="test1" /></td>
  </tr>
  <tr>
    <td></td>
    <td align="right"> <input type="submit" value="Submit" /></td>
  </tr>
</table>
</form>

QuestionUsing javascript to set the backgroundColor of a gridview row cell's textbox. Pin
Steve Holdorf20-Oct-08 11:39
Steve Holdorf20-Oct-08 11:39 
AnswerRe: Using javascript to set the backgroundColor of a gridview row cell's textbox. Pin
Steve Holdorf21-Oct-08 3:28
Steve Holdorf21-Oct-08 3:28 
Questionhow to change a value of a variable defining in code behind via Java Script Pin
dhumplopoka20-Oct-08 4:55
dhumplopoka20-Oct-08 4:55 
QuestionWebservice with SQL DB Pin
Hakmeh Mohannad20-Oct-08 1:48
Hakmeh Mohannad20-Oct-08 1:48 
QuestionHow to include Style Sheets in ASP program Pin
jainvidhya8419-Oct-08 22:56
jainvidhya8419-Oct-08 22:56 
AnswerRe: How to include Style Sheets in ASP program Pin
Paddy Boyd20-Oct-08 0:54
Paddy Boyd20-Oct-08 0:54 
AnswerRe: How to include Style Sheets in ASP program Pin
Sachin Pimpale20-Oct-08 2:49
Sachin Pimpale20-Oct-08 2:49 
QuestionVBScript Image Resizing [modified] Pin
Reelix19-Oct-08 22:53
Reelix19-Oct-08 22:53 
AnswerRe: VBScript Image Resizing Pin
Guffa22-Oct-08 3:09
Guffa22-Oct-08 3:09 
GeneralRe: VBScript Image Resizing Pin
Reelix22-Oct-08 3:40
Reelix22-Oct-08 3:40 
Questionpartially disabling browser functionality... Pin
kabir39318-Oct-08 20:49
kabir39318-Oct-08 20:49 
AnswerRe: partially disabling browser functionality... Pin
Shog919-Oct-08 4:59
sitebuilderShog919-Oct-08 4:59 
AnswerRe: partially disabling browser functionality... Pin
Vengatachalapathy Palanivel20-Oct-08 21:12
Vengatachalapathy Palanivel20-Oct-08 21:12 
QuestionDistance between 2 addresses Pin
AghaKhan18-Oct-08 18:55
AghaKhan18-Oct-08 18:55 
AnswerRe: Distance between 2 addresses Pin
Mohammad Dayyan18-Oct-08 22:21
Mohammad Dayyan18-Oct-08 22:21 
GeneralRe: Distance between 2 addresses Pin
AghaKhan18-Oct-08 22:46
AghaKhan18-Oct-08 22:46 
QuestionTabcontainer: ".aspx" page for each tab (like ie or firefox), is this impossible? - (moved) [modified] Pin
BlackDice18-Oct-08 8:01
BlackDice18-Oct-08 8:01 

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.