 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Detlef Kroeze Guest
|
Posted: Wed May 09, 2007 4:18 pm Post subject: Webservice and xml |
|
|
Hi,
I need to build a webservice that needs to read an xml file send bij another application build in Lansa.
The webservice needs to use soap. How can i get the xml file, should i read it from a file with readxmlfile or is this done in another way.
Regards Detlef |
|
| Back to top |
|
 |
Jean-Marie Babet Guest
|
Posted: Fri May 11, 2007 2:01 am Post subject: Re: Webservice and xml |
|
|
Hello Detlef,
I suspect you'll first need to determine how you'll expose the XML file.
From a WebService point of view there are many ways to expose the content of
a file:
1. As a string
2. As a byte[]
3. As an attachment
4. As raw XML embedded within the SOAP envelope (this one is an option since
you file is in XML format)
If you have no constraints regarding the above, the byte[] is the one I
would recommend.
See the following link for a sample implementation:
http://www.agnisoft.com/soap/binarytransfer.htm
Cheers,
Bruneau. |
|
| Back to top |
|
 |
Detlef Kroeze Guest
|
Posted: Mon May 21, 2007 2:27 pm Post subject: Re: Webservice and xml |
|
|
Hi Bruneau,
I tried implementing the code of the angisoft site. It compiles ok, but when i run it on the server i get the following message;
'The specified CGI application misbehaved by not returning a complete set of HTTP headers.'
I-am using delphi 7 and it runs on a windows 2003 as a standalone cgi executable
Any suggestions?
Tnx Detlef
| Quote: | Hello Detlef,
I suspect you'll first need to determine how you'll expose the XML file.
From a WebService point of view there are many ways to expose the content of
a file:
1. As a string
2. As a byte[]
3. As an attachment
4. As raw XML embedded within the SOAP envelope (this one is an option since
you file is in XML format)
If you have no constraints regarding the above, the byte[] is the one I
would recommend.
See the following link for a sample implementation:
http://www.agnisoft.com/soap/binarytransfer.htm
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
|
|