Ceriwis  

Go Back   Ceriwis > HOBI > Komputer & Teknologi > Programming

Programming Share, tanya jawab, saling bantu antar programmer dengan berbagai macam bahasa pemrograman.

Reply
 
Thread Tools
  #1  
Old 20th November 2011
Permenkaret Permenkaret is offline
Ceriwiser
 
Join Date: Nov 2011
Posts: 351
Rep Power: 15
Permenkaret mempunyai hidup yang Normal
Default [ASK]Array di webservice VB.net?

Gan, ane mau nanya tentang webservice di VB.Net.



Ane punya sistem di PDA, itu kirim parameter bentuknya array ke Webservice (basis VB.Net).

Nah yang ane tanyain itu gimana cara supaya webservice itu bisa nerima parameter ane?

Ni kodenya gan




Spoiler for Webservice:







Quote:





.....

.....

.....

WebMethod() _

Public Function InsertProduk(ByVal key As Array, ByVal val As String, ByVal konter As Integer) As DataSet

Dim conn As String

Dim i As Integer = konter

For a As Integer = 0 To i

conn = "server=localhost;uid=root;pwd=;database=m ile s"

Dim sql As String = "insert into trade set id_pro="' + key(i) + '";

Dim konek As New MySqlConnection(conn)

Dim OdbcDa As New MySqlDataAdapter(Sql, conn)

konek.Open()

Dim ds As New DataSet

OdbcDa.Fill(ds)

konek.Close()

Return ds

Next

End Function

....

....

....















Tapi waktu ane browse service.asmx muncul error gini :








Spoiler for error:







Quote:





You must implement a default accessor on System.Array because it inherits from ICollection.
















Mohon pencerahannya gan

</div>
Reply With Quote
Reply


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


Terkait
Thread Thread Starter Forum Replies Last Post
Kursus Java Programming: Wicket,EJB3.1,CriteriaAPI,WebService VanderSars Service lainnya 0 15th October 2012 07:44 AM
hosting untuk php webservice tidak berhasil.. PHPmaster Programming 0 20th November 2011 11:32 PM
Java WebService play! ke spring framework Darkc0der Programming 0 20th November 2011 11:17 PM
[ask] array di AS3 SinggahDapur Programming 0 20th November 2011 01:45 AM
[ask] php+nusoap as webservice,vb 6.0 as client Darkc0der Programming 0 20th November 2011 12:44 AM

 


All times are GMT +7. The time now is 10:23 AM.