I am trying to expose some Java web services so that I can interact with C # (see this SO question ). The proof of concept code below works great with WCF!
My question is about using the class javax.xml.ws.Endpointto publish my service:
javax.xml.ws.Endpoint
The following is an example of a WSDL that is purely callable from .Net and works well. Why don't I use it?
@javax.jws.WebService public class TestSvc { @javax.jws.WebMethod() public String sayHello() { return "Hello!"; } } import javax.xml.ws.Endpoint; public class Main { public static void main(String[] args) throws Exception { Endpoint.publish("http://localhost:8181/Test", new TestSvc()); } }
( ..) , .
, . , , , .
, .
.
, Java EE , - . EJB v Spring v... debate. , , , - , , , , , , ; App Server. , , EJB3 + JPA Spring, - App Server. Java , , .
, , .
WSDL java. - , , , , . WCF - WSDL, VS , ( , .)
( , , , , ) . , ..
Source: https://habr.com/ru/post/1722498/More articles:UIScrollView Infinite Scroll? - iphoneWhy doesn't GroupBox have a MouseMove event? - winformsHow can I manage flexible, typed, immutable data structures in Scala? - scalaiPhone - HTML5 "cache manifest" common to many webapps? - html5Почему [[...]] работает, когда script вызван с sh, а [...] работает всегда? - bashInteroperability between C # and Java using web services without Java EE application server? - javaWhy does SQL Update Top seem to reduce locks even when no records are updated? - sqlA few PHP warnings in XSLTProcessor :: importStylesheet () - xmlsizeof (* this) in the header constructor implementation only - c ++What is a good and easy way to back up SVN repo to an FTP server? - svnAll Articles