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 

Webservice and xml

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





PostPosted: Wed May 09, 2007 4:18 pm    Post subject: Webservice and xml Reply with quote



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





PostPosted: Fri May 11, 2007 2:01 am    Post subject: Re: Webservice and xml Reply with 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
Detlef Kroeze
Guest





PostPosted: Mon May 21, 2007 2:27 pm    Post subject: Re: Webservice and xml Reply with quote



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