[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.0

SOAP - subclasses in WSDL

Asked by darrello in Delphi Programming

Tags: delphi, soap, wsdl

I have a problem using the .PAS files that I generated by importing several WSDL Files.  The issue is that I have one main WSDL (http://components.groove.net/Groove/Components/GWS/2_5/wsdl/GrooveEvents.wsdl )that is returning a very simple SOAP response.  The <EventData> element contains different data below it (xml sequence) depening on what the type attribute is - here is where the problem is.  

For example, the event that I am tracking is a File event, and it returns an <EventData type="xsi:type="e:FileAddEventData"><FileDescriptor>...</FileDescriptor></EventData> element.  The binding that is created from the WSDL file for the event (listed above) simply creates an EventData.type (Widestring) attribute - that's it.  I need to get the actual data out of the event and I really don't want to manually parse the XML, I would like to learn how to properly register the data types using Delphi - stubborn, but more effective in the long-term.

So far I have taken the class created for the event data "EventData", and I have subclassed to create an data structure that adds the .FileDesc: FileDescriptor as a property - but I have no idea how to register this interface, nor where to do it.  My gut says that I will have to register it in the GrooveEvents.pas (file created on import of the GrooveEvents.wsdl).  My guesses are it has something to do with the RemClassRegistry.RegisterXSClass function - but don't let me misguide you!

The Files WSDL can be found at (http://components.groove.net/Groove/Components/GWS/2_5/wsdl/GrooveFilesBase64.wsdl).  It contains the class that handles the <FileDescriptor>.


NOTE:  I have validated that the SOAP response does contain the info I am looking for (i.e. the XML is there - the sub-element for FileDescriptor is just being ignored.)

Here is a .Net example of the problem and a solution, obviously in a MS environment (both C# and VB.Net are shown):
http://www.groove.net/support/forums/messageview.cfm?catid=15&threadid=7682

Any guidance (or code!) is greatly appreciated.
[+][-]02/19/05 12:39 AM, ID: 13352462Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: Delphi Programming
Tags: delphi, soap, wsdl
Sign Up Now!
Solution Provided By: modulo
Participating Experts: 2
Solution Grade: A
 
[+][-]07/18/04 05:30 PM, ID: 11579949Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07/20/04 05:53 AM, ID: 11592235Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/24/04 05:36 PM, ID: 11630338Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/15/05 12:34 AM, ID: 13311714Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091118-EE-VQP-93