BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to use Records and not classes in Webservices

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi WebServices SOAP
View previous topic :: View next topic  
Author Message
Terry
Guest





PostPosted: Mon Apr 23, 2007 1:16 am    Post subject: How to use Records and not classes in Webservices Reply with quote



 I am trying to develop a client to a webservice written i C++
The webservice use records. When I Import the WSDL document the records
is missing and I have to create them myself. I also manually write the
code to register the records. But my client do not seam to manage to
send the records to the webservice. The soap message contains empty
items. I made classes instead. Then the soap messages looked fine. But
the webservice generated an error message that i could not use class
instead of array.

What is wrong??



--- posted by geoForum on http://delphi.newswhat.com
Back to top
Jean-Marie Babet
Guest





PostPosted: Fri Apr 27, 2007 11:57 pm    Post subject: Re: How to use Records and not classes in Webservices Reply with quote



Hello Terry,

Quote:
I am trying to develop a client to a webservice written i C++
The webservice use records.

I'm not sure what you mean by "The webservice use records". The types of the
webservice are described in the Webservices' WSDL and record is not an XML
schema type. Do you mean that the service you wrote exposes PODS (plain old
data structures). If yes, that won't work with C++Builder as we rely on RTTI
for serializing XML data from and to native.

If you're trying to expose existing classes via SOAP you can do that with
Remotable object wrappers. I believe the documentation illustrates how one
could expose TStringList via SOAP. You would need to do something similar.

Let me know if you need more information.

Cheers,

Bruneau.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi WebServices SOAP All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.