Wrox Programmer Forums
|
Visual Basic 2005 Basics If you are new to Visual Basic programming with version 2005, this is the place to start your questions. For questions about the book: Beginning Visual Basic 2005 by Thearon Willis and Bryan Newsome, ISBN: 0-7645-7401-9 please, use this forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Basic 2005 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 2nd, 2007, 05:09 AM
Registered User
 
Join Date: Jun 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default WebService Helllpp Plz

Hi everyone,

I need your help on this plese

The WebService return this :
Code:
- <ArrayOfAnyType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.creationslabs.pt/webservices">
<anyType xsi:type="xsd:string">00001</anyType>
<anyType xsi:type="xsd:string">5606584000013</anyType>
<anyType xsi:type="xsd:string">RELOGIO LV277ME</anyType>
<anyType xsi:type="xsd:string">00010</anyType>
<anyType xsi:type="xsd:string">5606584000105</anyType>
<anyType xsi:type="xsd:string">RELOGIO F1143/BE</anyType>
</ArrayOfAnyType>
By this code (ArrayList)
Code:
<WebMethod()> _
Public Function gceArtigos(ByVal strServerVirg ... ) As ArrayList

'BASICO
Dim MyResults As DataSet
MyResults = ...'Resultado de uma funcao não importante , busca aos dados ao SQL, como DataSet

'ARRAY PARA O FLEX
Dim MyArrayList As ArrayList = New ArrayList

For intCounter As Integer = 0 To MyResults.Tables(0).Rows.Count - 1
MyArrayList.Add(MyResults.Tables(0).Rows(intCounter).Item(0))'coluna cod artigo
MyArrayList.Add(MyResults.Tables(0).Rows(intCounter).Item(1))'coluna cod barras
MyArrayList.Add(MyResults.Tables(0).Rows(intCounter).Item(2))'coluna desc
Next

Return MyArrayList
-But I want this type or Return, instead of the first..
Code:
<ArrayOfAnyType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.creationslabs.pt/webservices">
+<Artigo>
<cod>00001</cod>
<barras>5606584000013</barras>
<desc>RELOGIO LV277ME</desc>
-</Artigo>
+<Artigo>
<cod>00001</cod>
<barras>5606584000013</barras>
<desc>RELOGIO LV277ME</desc>
-</Artigo>
etc...
</ArrayOfAnyType>
Thank you very much for the help
Core






Similar Threads
Thread Thread Starter Forum Replies Last Post
to know Webservice vingo_mail ASP.NET 2.0 Basics 1 March 3rd, 2008 01:16 PM
plz.....plz solve out my problem.... kethireddy435 ASP.NET 1.x and 2.0 Application Design 1 October 4th, 2007 12:56 PM
Help me about WebService hueduongit .NET Web Services 2 June 3rd, 2004 09:51 PM
Problem with the ddq task.... HELLLPP!!! lucinda SQL Server 2000 0 July 14th, 2003 07:09 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.