This file contains 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
Pattern: | |
LIST: | |
http://[domain]/[context]/[main-resource]/ | |
IDENTIFY: | |
http://[domain]/[context]/[main-resource]/[identifier] | |
RESOURCE: | |
http://[domain]/[context]/[main-resource]/[identifier]/[sub-resource] |
This file contains 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
Pattern: | |
http://[mydomain]/[module]/[context]/[type]/[version] | |
Examples Below. | |
AUTHENTICATION-MODULE-DOMAIN | |
_User Domain Model: |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
Licensed to the Apache Software Foundation (ASF) under one | |
or more contributor license agreements. See the NOTICE file | |
distributed with this work for additional information | |
regarding copyright ownership. The ASF licenses this file | |
to you under the Apache License, Version 2.0 (the | |
"License"); you may not use this file except in compliance | |
with the License. You may obtain a copy of the License at |
This file contains 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
<web-app> | |
<servlet> | |
<servlet-name>jersey-servlet</servlet-name> | |
<servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class> | |
<init-param> | |
<param-name>com.sun.jersey.config.property.packages</param-name> | |
<param-value>br.com.ggdio.estoque.rest</param-value> | |
</init-param> | |
<load-on-startup>1</load-on-startup> | |
</servlet> |
This file contains 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
<web-app> | |
<listener> | |
<listener-class> | |
com.sun.xml.ws.transport.http.servlet.WSServletContextListener | |
</listener-class> | |
</listener> | |
<servlet> | |
<servlet-name>jaxws-servlet</servlet-name> | |
<servlet-class>com.sun.xml.ws.transport.http.servlet.WSServlet</servlet-class> |
This file contains 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 br.com.ggdio.gists.ws.service.client; | |
import java.net.MalformedURLException; | |
import java.net.URL; | |
import javax.xml.namespace.QName; | |
import javax.xml.ws.Service; | |
import javax.xml.ws.WebServiceClient; | |
import br.com.ggdio.ws.service.structure.MyService; |
This file contains 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 br.com.gists.ws.service.structure; | |
import javax.jws.WebMethod; | |
import javax.jws.WebService; | |
/** | |
* Webservice structure definition | |
* @author Guilherme Dio | |
*/ | |
@WebService |
This file contains 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 br.com.ggdio.gists.ws.service; | |
import javax.jws.WebService; | |
import br.com.ggdio.gists.ws.service.structure.MyService; | |
/** | |
* Webservice implementation based on the Service - {@link MyService} | |
* @author Guilherme Dio | |
*/ |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<endpoints xmlns="http://java.sun.com/xml/ns/jax-ws/ri/runtime" version="2.0"> | |
<!-- WEBSERVICE MAPPING --> | |
<endpoint | |
implementation="br.com.ggdio.gists.ws.service.MyServiceWs" | |
name="MyService" | |
url-pattern="/services/myservice" | |
/> | |
</endpoints> |
This file contains 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 br.com.ggdio.gists; | |
import java.awt.Component; | |
import java.util.ArrayList; | |
import java.util.List; | |
import javax.swing.JFormattedTextField; | |
import javax.swing.JFrame; | |
import javax.swing.JInternalFrame; | |
import javax.swing.JOptionPane; |