Hi Patrick,
Thank you for your prompt reaction. My webservice is quering a table (Select ClientName from Client). Below is my webservice. When I run the code in
Public Function GetKlantenLijst() As Klanten
'Declarations...
Dim myConnection As New SqlConnection _
(System.Configuration.ConfigurationManager.ConnectionStrings("Jobtraining_testConnectionString").ConnectionString)
Dim myDataAdapter As New SqlDataAdapter() 'da properties at Fomr1_Load event
Dim myDataSet As DataSet = New DataSet()
Dim dr As SqlDataReader
'set the select command properties...
myDataAdapter.SelectCommand = New SqlCommand
myDataAdapter.SelectCommand.Connection = myConnection
myDataAdapter.SelectCommand.CommandText = _
"Select Bedrijf FROM Klanten
myDataAdapter.SelectCommand.CommandType = CommandType.Text
'Open db connection...
myConnection.Open()
'Execute command...
dr = myDataAdapter.SelectCommand.ExecuteReader()
dr.Read()
Dim Klanten As New Klanten()
Klanten.Bedrijf = dr("Bedrijf")
'Close db connection...
myConnection.Close()
Return Klanten
End Function
When I run the webservice I get this
De volgende bewerkingen worden ondersteund. Zie voor een formele
definitie de servicebeschrijving.
- GetContactInfo
- GetKlantNaam
- GetKlantenLijst
- GetUitvoeringslocatieInfo
- HelloWorld
I see my function "GetklantenLijst" but when I test what it returns, I get this:
BODY{font:x-small 'Verdana';margin-right:1.5em}
.c{cursor:hand}
.b{color:red;font-family:'Courier New';font-weight:bold;text-decoration:none}
.e{margin-left:1em;text-indent:-1em;margin-right:1em}
.k{margin-left:1em;text-indent:-1em;margin-right:1em}
.t{color:#990000}
.xt{color:#990099}
.ns{color:red}
.dt{color:green}
.m{color:blue}
.tx{font-weight:bold}
.db{text-indent:0px;margin-left:1em;margin-top:0px;margin-bottom:0px;padding-left:.3em;border-left:1px solid #CCCCCC;font:small Courier}
.di{font:small Courier}
.d{color:blue}
.pi{color:blue}
.cb{text-indent:0px;margin-left:1em;margin-top:0px;margin-bottom:0px;padding-left:.3em;font:small Courier;color:#888888}
.ci{font:small Courier;color:#888888}
PRE{margin:0px;display:inline}0) fix(e,"cb");}
if (e.className=="di"){if (e.children(0).innerText.indexOf("\n")>0) fix(e,"db");}
e.id="";
}
function fix(e,cl){
e.className=cl;
e.style.display="block";
j=e.parentElement.children(0);
j.className="c";
k=j.children(0);
k.style.visibility="visible";
k.href="http://www.infopathdev.com/forums/AddPost.aspx?ReplyToPostID=41811&Quote=False#";
}
function ch(e){
mark=e.children(0).children(0);
if (mark.innerText=="+"){
mark.innerText="-";
for (var i=1;i
<?xml
version="1.0" encoding="utf-8" ?>
- <Klanten xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://tempuri.org/">
<Bedrijf>CGSoft</Bedrijf>
</Klanten>
However this test table has 3 entries. Further, I cannot bind my drop down to this data source because I receive the message that it need a repeating field! What is a repeating field? and why does my service only returns one row of the 3?
If you can help me Patrick, I would really appreciate!
Regards,
Christiane