Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
|
.NET Web Services Discussions about .NET XML Web Service technologies including ASMX files, WSDL and SOAP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Web Services section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 8th, 2003, 05:43 AM
Registered User
 
Join Date: Oct 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to saitx Send a message via Yahoo to saitx
Default Problem with creating Custom Property in Web Servi

how to create custom properties in web service classes such as

    Public Property ClientName() As String
        Get
           Return m_strMyVal
        End Get
        Set(ByVal Value As SqlConnection)
            m_strMyVal = Value
        End Set
    End Property

please help on this

 
Old October 8th, 2003, 10:10 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

What is your goal? Thats kind of a vague question. Usually you create web methods, and you pass your arguments to those methods. If you want to create a property, you must make that property the member of some class. If you then want to pass that class on to a web method, the class must be set up to be serializable to XML.

Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Server Control....Custom Property Editor ZArrinPour ASP.NET 1.0 and 1.1 Basics 1 June 15th, 2010 11:30 AM
Web Custom Control - Color Picker Property elwappo ASP.NET 2.0 Professional 0 January 31st, 2008 08:37 AM
Creating web custom controls problem Lerik ASP.NET 1.0 and 1.1 Professional 0 January 6th, 2006 06:39 AM
Creating Web Custom Controls Lerik C# 2005 0 January 6th, 2006 04:55 AM
Ch. 13/14 creating own custom controls...problem.. Chimlim BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 2 August 10th, 2005 04:21 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.