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. .NET Web Service with VB6 and Soap Toolkit 3

.NET Web Service with VB6 and Soap Toolkit 3

Scheduled Pinned Locked Moved Visual Basic
csharphelpquestionwcf
1 Posts 1 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.
  • C Offline
    C Offline
    cory_baker
    wrote on last edited by
    #1

    I'm trying to consume a C# Web Service using VB6 and Soap Toolkit 3. Everything works fine when I'm passing/returning simple data types such as strings and integers but I'm having trouble using complex data types. The class I'm trying to pass is defined in my C# WS as public class AlertMessage { public string AlertMessage; public string AlertComment; } How do I treat this in VB and how do I pass it? Currently, I have created an ActiveX DLL with a class AlertMessage as follows: Private mAlertText As String Private mAlertComment As String Public Property Get AlertText() As String AlertText = mAlertText End Property Public Property Let AlertText(ByVal Value As String) mAlertText = Value End Property Public Property Get AlertComment() As String AlertText = mAlertComment End Property Public Property Let AlertComment(ByVal Value As String) mAlertComment = Value End Property When trying to pass an AlertMessage to the WS I get the following error: SoapMapper: Saving SoapMapper alertMessage failed. No such interface supported. When trying to return an AlertMessage from the WS I get a type mismatch error. My Soap response looks as follows: Hello There My Comment Can anyone help? Thanks, Cory

    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