Re: Submitting an Array to a Webservice.

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




Hi Rod!!!
I've found the solution!
You have to create an class with the structure of your array... and
instantiate it where you want to use...see...

Sorry for my English..
Rose


---CLASS-----

Imports System
Imports System.Web.Services

Namespace DataTypesVB.Enumerations

Public Class Sku
Public Sku As String
Public Qty As Integer
Public EndUserPrice As Double
End Class

End Namespace


---USING THE CLASS----

Dim oWsSku As DataTypesVB.Enumerations.Sku()

'numParc = number of rows
oWsSku = New DataTypesVB.Enumerations.Sku(numParc) {}

oWsSku(i) = New wsImla1.Sku
oWsSku(i).Sku1 = a
oWsSku(i).Qty = b
oWsSku(i).Price = c
oWsSku(i).EndUserPrice = d



--
RoseIM
------------------------------------------------------------------------
Posted via http://www.mcse.ms
------------------------------------------------------------------------
View this thread: http://www.mcse.ms/message1132804.html

.



Relevant Pages

  • Re: seperation of function namespace
    ... namespace because there's no *syntactic* distinction between the array ... the ALET and ARRAY special operators. ... If is the name of a special operator, ... basic evaluation rule. ...
    (comp.lang.lisp)
  • Re: C# pass an array of objects to a WebService...
    ... In proxy class -- ... -add reference to order class from local namespace ... I cannot figure out how to send an array to the webservice ... > public class OrderService: System.Web.Services.WebService ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: seperation of function namespace
    ... If is the name of a special operator or macro, ... global bindings in this namespace, FLET to create lexical bindings, ... we need to change the basic evaluation rule for conses ... and a special operator ARRAY. ...
    (comp.lang.lisp)
  • Re: Marshal Structure containing arrays to function in DLL
    ... David Fort wrote: ... I'm struggling with the info in the System.Runtime.Interop namespace help ... Is an Array of Structures containing 2 fixed length Arrays a blittable type? ... don't see how a marshaller could figure that out. ...
    (microsoft.public.dotnet.languages.vb)
  • non-persistence of BLT vector variables
    ... a vector is also an object with a command whose ... What I have discovered is that if I create an array in a proc, ... namespace, but this is part of a really big project, and my ...
    (comp.lang.tcl)