On 6/17/11 3:44 PM, Scott Baily wrote:
> I would like to have an IOC talk to hardware that communicates
> using SOAP. In theory, I could setup an appropriate protocol
> file for Streamdevice and use a raw TCP connection to port 80.
> Has anyone done this? Is there a better method?
Hi, Scott.
If you can get that to work with your particular device, that
may be the easiest solution. I've done something similar just
using asyn records to query readings from a temperature and
humidity sensor via HTTP.
A better method, but more work, would be to actually use a SOAP
library on the IOC to communicate with the device. Since SOAP
uses XML, you would need an XML parser which would typically be
included with or used by your SOAP library. With your
StreamDevice approach, you are really just doing pattern
matching which is likely to work with your particular device,
but could fail given a different device implementing the same
API (e.g. XML allows whitespace characters in lots of places and
one device could place them differently than another).
While not perfect, in most situations I'd probably do something
like what you are thinking with StreamDevice (or asyn records).
Lewis
- Replies:
- Re: SOAP device communication. Peter Milne
- References:
- SOAP device communication. Scott Baily
- Navigate by Date:
- Prev:
SOAP device communication. Scott Baily
- Next:
Re: SOAP device communication. Peter Milne
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
<2011>
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
SOAP device communication. Scott Baily
- Next:
Re: SOAP device communication. Peter Milne
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
<2011>
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|