Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
This should be so simple
Message
From
19/04/2009 14:39:13
 
 
To
All
General information
Forum:
ASP.NET
Category:
Web Services
Title:
This should be so simple
Environment versions
Environment:
VB 9.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01395505
Message ID:
01395505
Views:
125
I really do not understand the complexity of such a simple process I am trying to do. Basically, the only think I want is to pass an object to the soap extension property and this is never accepted. I keep getting constant expression is required.

Here is what I have:
        <WebMethod(), TraceExtension(oProcess)> _
        Public Function MyMethod() As String
           ...
            Return lcXml
        End Function
The Sub() parameter of the TraceExtension attribute code is an object. If I put a "Test", or a value such as 12, instead of oProcess, this will work. But, as soon as I am trying to pass oProcess, I am always getting this error. oProcess exists and can be used inside this method. But, at the WebMethod() line, it is not accepted. So, how are we suppose to pass an object to a soap extension?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform