This is my first thread in this forum. I am programmer in VBA and PL/SQL. DotNet I have read many books, so I am beginner in praxis-things. Also I am not native to the English language. So I hope my question is not too trivial.
I use VB.NET in the Professional-Version 2008:
I attached successfull over WSDL a Webservice to my project. DotNet created automatically the non-user-code, so I can call and use all the methods and propertys of the webservice.
In this way I can use and fill all of the input-parameters of the webservice, call it and get back a encapsulated resultset , which I can write back to a database: recordset after recordset into the correct different database-tables of (in this case) an Access-Database. The tables are linked to the project as datasource-tableadapters.
So far so good... Works excellent... But... The writing of the resultset-data to the database is very very slow.
Example:
the DB-Table is named t_Message. WebserviceTabs_dotNetDataSetTableAdapters DotNet makes available because of the datasource. WSResult is the resultset of the Webservice.
Dim oM_A = New WebserviceTabs_dotNetDataSetTableAdapters.t_MessageTableAdapter
For lngI = 0 To WSResult.MESSAGES.Length - 1
With WSResult.MESSAGES(lngI)
oM_A.Insert(.TYPE, .MSG_NUMBER, .MESSAGE)
End With
Next
My questions:
1. How can I write the resultset of the webservice as a XML-file. I think the webservice still sends back the result as an XML, so how can I grab it in its native form, without putting DotNet the content in classes and propertys of automatically generated code. It would be nice to have a little code-snipped if it is difficult.
In general my question is: if you link an arbitrary Webservice automatically by WSDL and let DotNet generate the code to use it, how are you writing the result into a XML-file?
2. Perhaps a simular question is how to write the resulting data to a database in a speedy way? The method described above seems to be a mighty overhead but I do not know why.
I ask myself, if the data of the webservice isn't a kind of dataset I can connect/link with a databasetable to write it back in "one move"?
Or more general: how are you writing back mass-datas you got in a resultset from a webservice into a database? A little codesnippet would be fine.
I hope for several helpful answers. Sorry for my rusty English.
Yours, Michael
I use VB.NET in the Professional-Version 2008:
I attached successfull over WSDL a Webservice to my project. DotNet created automatically the non-user-code, so I can call and use all the methods and propertys of the webservice.
In this way I can use and fill all of the input-parameters of the webservice, call it and get back a encapsulated resultset , which I can write back to a database: recordset after recordset into the correct different database-tables of (in this case) an Access-Database. The tables are linked to the project as datasource-tableadapters.
So far so good... Works excellent... But... The writing of the resultset-data to the database is very very slow.
Example:
the DB-Table is named t_Message. WebserviceTabs_dotNetDataSetTableAdapters DotNet makes available because of the datasource. WSResult is the resultset of the Webservice.
Dim oM_A = New WebserviceTabs_dotNetDataSetTableAdapters.t_MessageTableAdapter
For lngI = 0 To WSResult.MESSAGES.Length - 1
With WSResult.MESSAGES(lngI)
oM_A.Insert(.TYPE, .MSG_NUMBER, .MESSAGE)
End With
Next
My questions:
1. How can I write the resultset of the webservice as a XML-file. I think the webservice still sends back the result as an XML, so how can I grab it in its native form, without putting DotNet the content in classes and propertys of automatically generated code. It would be nice to have a little code-snipped if it is difficult.
In general my question is: if you link an arbitrary Webservice automatically by WSDL and let DotNet generate the code to use it, how are you writing the result into a XML-file?
2. Perhaps a simular question is how to write the resulting data to a database in a speedy way? The method described above seems to be a mighty overhead but I do not know why.
I ask myself, if the data of the webservice isn't a kind of dataset I can connect/link with a databasetable to write it back in "one move"?
Or more general: how are you writing back mass-datas you got in a resultset from a webservice into a database? A little codesnippet would be fine.
I hope for several helpful answers. Sorry for my rusty English.
Yours, Michael