Hi Josue,
Custom classes such as this are definitely supported in both return and
parameter arguments for web methods. The default behaviors
(SoapDocumentServiceAttribute) handles this well.
When you say it is not seen in the client, what do you mean. If you have
your custom classes as inputs or outputs to your methods, the WSDL should
reflect the right types, and the generated proxy will contain a projection
of your classes.
I hope this helps
Dan Rogers
Microsoft Corporation
--------------------
From: "Josue Avila M." <josue_avila200@hotmail.com>
Subject: Custom Class in a Web Service
Date: Thu, 25 Nov 2004 22:21:43 -0600
Lines: 44
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Message-ID: <udLdv920EHA.1652@TK2MSFTNGP11.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.webservices
NNTP-Posting-Host: dsl-201-129-76-67.prod-infinitum.com.mx 201.129.76.67
Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11
.phx.gbl
Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.webservices:7642
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices
HI
I Design a Class Wich contains severals DataTypes . (2 Strings and Other
Data Types from a Class wich i Desing to)
Its Something like This
<serializable()>
Public Class Emitor
Public NameMsg as String
Public KeyCode as String
Public Parmas as DAtaParams
Public Class DataParams
inherits Arraylist
Ok thats de Way ... When i Use The Class into the web service it create the
.asmx succesfuly but in the soap envelope seccion
it does'nt represent the Xml Code Element to the datatype of Param argument
. So on the client Cosumer does reconize it
I Read in a document that i need to use the SoapRPCMethod Attribute and the
SoapInlcude (gettype(class)) in the function that use to pass this data
However when i compile the WS ... i get an error abot the
system.data.dataset it imposible to searilize on a sope code ... (Ha!!!! I
missed... it the web service im using a Dataset and in tje DataParams Class
To )
So please Any Body Help..
Where Do i Put the Descripto for the class or do i Have to use XMLAttributes
on my class definition ...
Thaks A lot