Skip to Content (Press Enter)
OutSystems.com
Personal Edition
Community
Support
Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Jobs
Ideas
Members
Mentorship
User Groups
Platform
Platform
ODC
O11
Search in OutSystems
Log in
Get Started
Back to Forums
Milton Moura
1
Views
1
Comments
MOSS UserProfileService Web Reference
Question
Hello,
I'm trying to invoke the method GetUserProfileByName in the UserProfileService Web Reference I added to an eSpace, in an attempt to integrate with SharePoint authentication / authorization services.
When I invoke the method in an Action, I get the following error:
Unable to cast object of type 'System.Xml.XmlText' to type 'System.Xml.XmlElement'.
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderWRefUserProfileService.Read10_WORCValueDataRecord(Boolean isNullable, Boolean checkType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderWRefUserProfileService.Read11_WORCPropertyDataRecord(Boolean isNullable, Boolean checkType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderWRefUserProfileService.Read78_GetUserProfileByNameResponse()
at Microsoft.Xml.Serialization.GeneratedAssembly.ArrayOfObjectSerializer126.Deserialize(XmlSerializationReader reader)
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
Any clues on how to solve this?
Thanks in advance.
AcacioPN
Staff
Hello Milton
From the error you are getting I would say that either your web service is not declaring the correct type of a construct used in the answer, or the Agile Platform is misinterpreting it.
Can you post the WSDL of the web service you are consuming? You can get it by inputting the URL you use to import the web service in a web browser, and then choosing "View Source".
Also, if you could capture a set of requests/responses it would be great for detecting what is going wrong. You can use
this post
with instructions for doing that.
If you have any questions on how to proceed, please post your comments here.
Cheers,
Acácio
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
See the full guidelines
Loading...