【发布时间】:2013-10-29 22:50:16
【问题描述】:
我在我的项目中使用了一个引用的 Web 服务,我需要传递两个参数:我的名为“clPerson.vb”的类和另一个类的 ArrayList 到 Web 服务方法。
在我的网页中,我需要执行以下操作:
Protected Sub WebPageSub()
Dim ObjPerson = New WebPage.clPerson(84) '84 is IDPerson
Dim ALDocuments As ArrayList = WebPage.getArrPerDocs(84, "T") 'this returns an arraylist of clDocuments class, returns all the documents that person 84 has, "T" is the identified for documents
Dim wsSave As WebServiceExample 'WebService must save the data I Send.
wsSave.InsertData(ObjPerson,ALDocuments) 'I send an arraylist and
End Sub
在我的网络服务中,应该像这样工作
<WebMethod()>
Public sub InsertData(ObjPerson As clPerson, DocsArray as ArrayList)
' ..SAVE DATA
End Sub
注意:clPerson 和 clDocuments 是我的主要项目和我的 web 服务中的类。
【问题讨论】:
-
究竟是什么试图将数据发送到 Web 服务?网页?
-
我的网页必须发送一个名为 clPerson 的类到 Web 服务,然后,在我的 Web 服务中,该方法必须接收网页发送的参数。
标签: asp.net vb.net web-services class serialization