 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Terry Guest
|
Posted: Mon Apr 23, 2007 1:16 am Post subject: How to use Records and not classes in Webservices |
|
|
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
|
Posted: Fri Apr 27, 2007 11:57 pm Post subject: Re: How to use Records and not classes in Webservices |
|
|
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 |
|
 |
|
|
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
|
|