 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Christopher Guest
|
Posted: Tue Apr 24, 2007 6:30 pm Post subject: New to Webservervices Trying to Create a Delphi Client to A |
|
|
I am currently using Delphi 6. I have a lot of experience creating client/server apps, but very little with web services. I am creating a j2ee based web service that will act as a report server. The server will return (often very large) XML files containing the report data. I may also want to pass back an xsl file. To get started in an attempt to familiarize myself, I created a simple web service that returned a small string. Getting the client and server to work for this was fairly simple. My next step was to create a web service that generates a file and transfers that file to the client. I set up the webservice which now returns a Java Source type (it's actually a DOMSource). I don't really don't even know where to begin with this in Delphi, however. I guess I basically want to know how to deserialize the DOMSource or if I should be passing the file back as a different Java type and how to go about deserializing that Java type. If I generate pascal file for the interfaceusing the WSDL wizard, the resulting interface contains a function that returns a Source type, something of which Delphi has no understanding.
Thanks for any help in advance.
Christopher |
|
| Back to top |
|
 |
Jean-Marie Babet Guest
|
Posted: Sat Apr 28, 2007 2:31 am Post subject: Re: New to Webservervices Trying to Create a Delphi Client |
|
|
Hello Christopher,
I can't say for sure until I see the WSDL but your best bet to pass a file
is to deal with byte[]. Both Delphi and Java will base64 encode the data and
interop. Each SOAP stack has proprietary extensions that don't necessarily
work with others. I've never run into 'Source' but I know that Java
WebServices often expose types such as 'Array' or 'Map' that work with other
Java clients.
If you can point me to the WSDL of the service I can see how things could
work between Delphi and the service.
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
|
|