I'm in a situation where another system in my domain is sending SOAP messages periodically to a given number of IP:Port addresses, and i went to be able to receive those. Now, I have experience with Web Services a bit, But this is different.
I thought that what i basically need is some kind of Listener service running and getting those SOAP messages. The service needs to be in .NET and probably written in C#.
I'm currently looking at anything from simple HttpListener implementation to WCF. How would you su开发者_如何学运维ggest to go about this?
Note: This is an existing interoperability interface, Which is why i'm not just doing a Web service or WCF Service and have the other system call it.
If you know what the contract is supposed to look like, you could create a simple WCF service that accepts it and listen on the specified IP:Port. WCF using BasicHttpBinding is expecting to receive a SOAP message, so with things set up correctly it should handle it.
If you don't, and can't figure it out for some reason (or it changes a lot), then you could just open a socket that accepts traffic on that port and parse the messages out yourself when they turn up.
精彩评论