Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > how to expose structure of a structure

Reply
Thread Tools

how to expose structure of a structure

 
 
jake
Guest
Posts: n/a
 
      10-23-2007
Have a structure a: public struct a{ string st1, int int1} and public struct
b {a[] stra, string str2}

A method returning structure b and taking structure b as a param: public b
method1(b arg1)

When method1 exposed as webmethod, only struct b is visible. Am I doing
something wrong? Thank you very much.
 
Reply With Quote
 
 
 
 
John Saunders [MVP]
Guest
Posts: n/a
 
      10-24-2007
"jake" <> wrote in message
news:25258472-8469-4419-B160-...
> Have a structure a: public struct a{ string st1, int int1} and public
> struct
> b {a[] stra, string str2}
>
> A method returning structure b and taking structure b as a param: public b
> method1(b arg1)
>
> When method1 exposed as webmethod, only struct b is visible. Am I doing
> something wrong? Thank you very much.


Please be more specific. What do you mean, "only struct b is visible"? What
happens if you reference b.stra[0]?
--
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer


 
Reply With Quote
 
 
 
 
jake
Guest
Posts: n/a
 
      10-24-2007
Thank you for your reply, John.
What I mean is, the proxy created to be used by the webservice client
doesn't show struct a.

"John Saunders [MVP]" wrote:

> "jake" <> wrote in message
> news:25258472-8469-4419-B160-...
> > Have a structure a: public struct a{ string st1, int int1} and public
> > struct
> > b {a[] stra, string str2}
> >
> > A method returning structure b and taking structure b as a param: public b
> > method1(b arg1)
> >
> > When method1 exposed as webmethod, only struct b is visible. Am I doing
> > something wrong? Thank you very much.

>
> Please be more specific. What do you mean, "only struct b is visible"? What
> happens if you reference b.stra[0]?
> --
> --------------------------------------------------------------------------------
> John Saunders | MVP - Windows Server System - Connected System Developer
>
>
>

 
Reply With Quote
 
John Saunders [MVP]
Guest
Posts: n/a
 
      10-24-2007
"jake" <> wrote in message
news:E55DA366-E737-44F8-9BE1-...
> Thank you for your reply, John.
> What I mean is, the proxy created to be used by the webservice client
> doesn't show struct a.


What happens if you reference b.stra[0]?

--
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer


 
Reply With Quote
 
jake
Guest
Posts: n/a
 
      10-24-2007
"jake" wrote:

> Thank you for your reply, John.
> What I mean is, the proxy created to be used by the webservice client
> doesn't show struct a.If I reference b.stra[0], it will produce an error
>
> "John Saunders [MVP]" wrote:
>
> > "jake" <> wrote in message
> > news:25258472-8469-4419-B160-...
> > > Have a structure a: public struct a{ string st1, int int1} and public
> > > struct
> > > b {a[] stra, string str2}
> > >
> > > A method returning structure b and taking structure b as a param: public b
> > > method1(b arg1)
> > >
> > > When method1 exposed as webmethod, only struct b is visible. Am I doing
> > > something wrong? Thank you very much.

> >
> > Please be more specific. What do you mean, "only struct b is visible"? What
> > happens if you reference b.stra[0]?
> > --
> > --------------------------------------------------------------------------------
> > John Saunders | MVP - Windows Server System - Connected System Developer
> >
> >
> >

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
expose a event to IE clients via .Net remoting Max ASP .Net 0 05-07-2004 06:40 AM
Over expose or under expose with a canon 10d n Digital Photography 16 01-22-2004 02:25 AM
HtmlControls doesn't expose GridLayoudPanel? Paul Russell ASP .Net 0 11-03-2003 10:11 AM
Expose Assembly As Web Service C ASP .Net 1 07-29-2003 11:56 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57