WSDL and ServerName not defined RRS feed

  • Question

  • User-1002153616 posted

    Hello. I have a WSDL added as a web reference called mywsdl. I'm trying to call a method but I keep running into problems. The latest one is ServerName.mywsdl() not defined. Can someone please help? Here's the code:

        <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="mypage._Default" %>
        <%@ Import Namespace="mypage" %>
        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
        <html xmlns="http://www.w3.org/1999/xhtml" >
        <head runat="server">
            <form id="form1" runat="server">
                Dim output
                Dim CallWebService As New ServerName.mywsdl()
                Dim sGetValue As String = CallWebService.GetSomeValue()
                output = sGetValue

    Wednesday, February 20, 2013 8:55 AM


  • User-1662538993 posted

    What are you trying to do? Are you trying to call the methods from web service whose reference you have added by adding wsdl file or generated proxy from wsdl?

    First you have to add service reference you can do that by adding the url of the service you are calling.

    Then you can consume the methods from that service.

    Please check this link-


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, February 20, 2013 1:55 PM