This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.ws; | |
| import javax.xml.ws.Endpoint; | |
| public class PublishWS | |
| { | |
| public static void main(String[] args) | |
| { | |
| String url = "http://localhost:9999/helloservice"; | |
| HelloService service = new HelloService(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.ws; | |
| import javax.jws.WebService; | |
| @WebService | |
| public class HelloService | |
| { | |
| public String sayHello(String name) | |
| { | |
| return ("Hello " + name); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.w3schools.client; | |
| import java.net.ProxySelector; | |
| import com.w3schools.TempConvert; | |
| import com.w3schools.TempConvertSoap; | |
| public class WSClient { | |
| public static void main(String[] args) { | |
| ProxySelector.setDefault(new MyProxySelector()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.w3schools.client; | |
| import java.io.IOException; | |
| import java.net.InetSocketAddress; | |
| import java.net.*; | |
| import java.util.*; | |
| public class MyProxySelector extends ProxySelector { | |
| @Override |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <servlet> | |
| <description></description> | |
| <display-name>ServletContainer</display-name> | |
| <servlet-name>ServletContainer</servlet-name> | |
| <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class> | |
| </servlet> | |
| <servlet-mapping> | |
| <servlet-name>ServletContainer</servlet-name> | |
| <url-pattern>/rest/*</url-pattern> | |
| </servlet-mapping> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import javax.ws.rs.GET; | |
| import javax.ws.rs.Path; | |
| @Path("/hellowithpath") | |
| public class HelloRestWithPath { | |
| @GET @Path("/text") | |
| public String helloText() | |
| { | |
| return "Hello world"; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import javax.ws.rs.GET; | |
| import javax.ws.rs.Path; | |
| import javax.ws.rs.Produces; | |
| import javax.ws.rs.core.MediaType; | |
| @Path("/hello") | |
| public class HelloRest { | |
| @GET @Produces(MediaType.TEXT_PLAIN) | |
| public String helloText() | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <property name="c3p0.min_size">5</property> | |
| <property name="c3p0.max_size">20</property> | |
| <property name="c3p0.timeout">1800</property> | |
| <property name="c3p0.max_statements">50</property> | |
| <property name="connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // unblock flexigrid | |
| $("div .gBlock").css("zIndex", 0); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //add block | |
| g.block.className = 'gBlock'; | |
| var gh = $(g.bDiv).height(); | |
| var gtop = g.bDiv.offsetTop; | |
| $(g.block).css( | |
| { | |
| width: g.bDiv.style.width, | |
| height: gh, | |
| background: 'white', | |
| position: 'relative', |