I have to implement client server protocol over socket in java, 开发者_JAVA技巧and sending the data as XML messages, so i implement one by my self, but i want to know is there any standard API, or standard way to do this in java.
Yes, SOAP is the standard. Example Java implementations are Apache CXF, JAX-WS and Spring-WS.
For something a bit simpler, you might want to look at Burlap, but that's very much not a standard, or XMPP.
精彩评论