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 

New to Webservervices Trying to Create a Delphi Client to A

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





PostPosted: Tue Apr 24, 2007 6:30 pm    Post subject: New to Webservervices Trying to Create a Delphi Client to A Reply with quote



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





PostPosted: Sat Apr 28, 2007 2:31 am    Post subject: Re: New to Webservervices Trying to Create a Delphi Client Reply with quote



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
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.