[Mono-dev] Help with xsp
Daniel Lo Nigro
lists at dan.cx
Thu Sep 19 06:06:25 UTC 2013
>
> Just out of curiosity why does add subtract one from the Count in the Add
> method?
The Add method returns the zero-based index of the new item, which is one
less than the count (that is, the last item in a collection of 10 items is
at index 9).
On Thu, Sep 19, 2013 at 7:14 AM, Neale Ferguson
<NealeFerguson at verizon.net>wrote:
> Thanks Robert.
>
> Using --debug shows:
>
> at System.Web.Services.Description.MessageCollection.get_Item (Int32
> index) [0x00019] in
>
> /home/BUILD/mono-3.2.3/mcs/class/System.Web.Services/System.Web.Services.Des
> cription/MessageCollection.cs:50
>
> Which corresponds to the throw below. Just out of curiosity why does add
> subtract one from the Count in the Add method?
>
> public Message this [int index] {
> get {
> if (index < 0 || index > Count)
> throw new
> ArgumentOutOfRangeException ();
>
> return (Message) List [index];
> }
> set { List [index] = value; }
> }
>
> public Message this [string name] {
> get { return this [IndexOf ((Message) Table
> [name])]; }
> }
>
> #endregion // Properties
>
> #region Methods
>
> public int Add (Message message)
> {
> Insert (Count, message);
> return (Count - 1);
> }
>
>
>
> On 9/18/13 5:08 AM, "Robert Jordan" <robertj at gmx.net> wrote:
>
> > Neale,
> >
> > On 18.09.2013 00:19, Neale Ferguson wrote:
> >> I had a webservice that was working fine. I duplicated a routine - same
> name
> >> but with different parameters which requires the MessageName attribute.
> So
> >> for the duplicated routine which originally just had:
> >> [WebMethod (Description="Process VMARCH QUERY TAPES ALL
> >> command")]
> >> I changed it to
> >> [WebMethod (Description="Process VMARCH QUERY TAPES ALL
> >> command",
> >> MessageName="vmaQryTapesAll")]
> >>
> >> Pointed browser to: http://localhost:9000/webservice.asmx and now get:
> >>
> >> System.ArgumentOutOfRangeException
> >> Argument is out of range.
> >>
> >> Is there some way to get more informative messages from xsp to get it to
> >> tell me exactly what it's choking on? I can invoke the webmethods
> directly
> >> on the browser but it's just this bit that is giving me grief.
> >
> > The Web Service overview and test page is generated by
> > $prefix/etc/mono/x.x/DefaultWsdlHelpGenerator.aspx,
> > where x.x is the .NET version.
> >
> > It looks like the exception is thrown when Page_Load of this
> > ASPX page is invoking WebServicesInteroperability.CheckConformance.
> >
> > That's where I would start looking for issue with overloaded
> > WebMethods following back the stack trace.
> >
> > Try to get line numbers with
> >
> > MONO_OPTIONS=--debug xsp ...
> >
> > Robert
> >
> >
> >
> > _______________________________________________
> > Mono-devel-list mailing list
> > Mono-devel-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20130919/f72a549f/attachment.html>
More information about the Mono-devel-list
mailing list