Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. web service error

web service error

Scheduled Pinned Locked Moved Visual Basic
help
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    monageasmear
    wrote on last edited by
    #1

    Im new to this language so forgive my lack of knoledge, i am getting an error about the namespace on line 4"Expression expected" and on line 9 Description "Description is a namespace,aned so is not a valid expression" Imports System.Web.Services Imports System.Data _ Public Class FlightService Inherits System.Web.Services.WebService _ Public Function ArrivalTime(ByVal FlightNum As String) As String Dim theTime As String Select Case FlightNum Case 1001 theTime = "12.30 AM EST" Case 2002 theTime = "4:15 PM EST" Case Else theTime = "INVALID FLIGHT NUMBER" End Select Return theTime End Function

    D 1 Reply Last reply
    0
    • M monageasmear

      Im new to this language so forgive my lack of knoledge, i am getting an error about the namespace on line 4"Expression expected" and on line 9 Description "Description is a namespace,aned so is not a valid expression" Imports System.Web.Services Imports System.Data _ Public Class FlightService Inherits System.Web.Services.WebService _ Public Function ArrivalTime(ByVal FlightNum As String) As String Dim theTime As String Select Case FlightNum Case 1001 theTime = "12.30 AM EST" Case 2002 theTime = "4:15 PM EST" Case Else theTime = "INVALID FLIGHT NUMBER" End Select Return theTime End Function

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      You might want to try posting your code. I don't think it's complete. When you do, make sure you click the "Do not treat <'s as HTML tags between the message and signature windows. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      M 1 Reply Last reply
      0
      • D Dave Kreskowiak

        You might want to try posting your code. I don't think it's complete. When you do, make sure you click the "Do not treat <'s as HTML tags between the message and signature windows. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        M Offline
        M Offline
        monageasmear
        wrote on last edited by
        #3

        its ok it was only the syntax of the code tht was wrong

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups