ListBoxes, WebServices, and Browser Compatibility.

K

Kolten

I need to populate a listbox with data I pull from a webservice that spits
out XML.
Every method I have tried comes up empty. The form also needs to be
displayed as a web page inside of SharePoint 2007.

I seem to be able to populate text boxes ok, but it only uses the first
occurance of the data from the webservice to populate a standard text box
(which makes sense since a textbox is only a single line).
Listboxes on the other hand, don't seem to populate by directly linking to
the webservice data connection. Dropdown boxes don't either.

How can I populate a listbox from a webservice data connection while still
having the ability to display the form as a web page?
 
K

Kolten

Ok I figured it out. It seems I had to modify what my XML looked like coming
from the web service.
Now, though - A new problem. When uploading it to my SharePoint 2007 site
as a Content Type, I get an error while loading the form, saying:

"An error occurred accessing a data source.


An entry has been added to the Windows event log of the server.
Log ID:6932"

Looking at the event log on the server, I see this:
"Windows cannot copy file C:\Documents and Settings\Default User\Application
Data\Microsoft\CLR Security
Config\v2.0.50727.832\security.config.cch.4660.297210640 to location
C:\Documents and Settings\kcadmin\Application Data\Microsoft\CLR Security
Config\v2.0.50727.832\security.config.cch.4660.297210640. Possible causes of
this error include network problems or insufficient security rights. If this
problem persists, contact your network administrator.

DETAIL - Access is denied.
"

What sort of authentication/security issues am I looking at here?
 
M

mkzp9

Hi,

I am facing a similar problem. I need to populate a listbox with values retrieved from a database using a webservice. I can get all the values in a string format, but I need to get them like a list in a listbox. Can you please tell me how I can acheive this. I think I need to change the webservice commands, if yes can you please tell me how to modify the webservice for this.

Thank you
 
G

Greg Collins

I'm not sure what you are trying to do, but if you open the list box
properties dialog box, you can tell it to populate the list with the values
in the webservice data connection. It should be straight forward enough.

If you need to have your web service return values differently, then you'll
need to address that with whomever wrote the web service.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top