Re: TOMEE-2882 Translate to Portuguese: examples/pojo-webservice

2020-07-20 Thread Daniel Dias Dos Santos
hello,

thanks Helber :  )
--

*Daniel Dias dos Santos*
Java Developer
SouJava & JCP Member
GitHub: https://github.com/Daniel-Dos
Linkedin: www.linkedin.com/in/danieldiasjava
Twitter: http://twitter.com/danieldiasjava


Em seg., 20 de jul. de 2020 às 17:35, Helber Belmiro <
helber.belm...@gmail.com> escreveu:

> Hello Daniel.
>
> I suggested a couple of changes in the translation.
>
>
> > On 17 Jul 2020, at 22:12, Daniel Dias Dos Santos <
> daniel.dias.analist...@gmail.com> wrote:
> >
> > Hello,
> >
> > I opened a ticket in Jira [1] and a PR [2], can anyone revise the
> > translation?
> >
> > thank you
> >
> > [1] https://issues.apache.org/jira/browse/TOMEE-2882
> > [2] https://github.com/apache/tomee/pull/691
> > --
> >
> > *Daniel Dias dos Santos*
> > Java Developer
> > SouJava & JCP Member
> > GitHub: https://github.com/Daniel-Dos
> > Linkedin: www.linkedin.com/in/danieldiasjava
> > Twitter: http://twitter.com/danieldiasjava
>
>


[GitHub] [tomee] Daniel-Dos merged pull request #691: TOMEE-2882 Translate to Portuguese: examples/pojo-webservice

2020-07-20 Thread GitBox


Daniel-Dos merged pull request #691:
URL: https://github.com/apache/tomee/pull/691


   



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [tomee] Daniel-Dos commented on pull request #691: TOMEE-2882 Translate to Portuguese: examples/pojo-webservice

2020-07-20 Thread GitBox


Daniel-Dos commented on pull request #691:
URL: https://github.com/apache/tomee/pull/691#issuecomment-661325260


   thanks @hbelmiro for review. 



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




Re: TOMEE-2882 Translate to Portuguese: examples/pojo-webservice

2020-07-20 Thread Helber Belmiro
Hello Daniel.

I suggested a couple of changes in the translation.


> On 17 Jul 2020, at 22:12, Daniel Dias Dos Santos 
>  wrote:
> 
> Hello,
> 
> I opened a ticket in Jira [1] and a PR [2], can anyone revise the
> translation?
> 
> thank you
> 
> [1] https://issues.apache.org/jira/browse/TOMEE-2882
> [2] https://github.com/apache/tomee/pull/691
> --
> 
> *Daniel Dias dos Santos*
> Java Developer
> SouJava & JCP Member
> GitHub: https://github.com/Daniel-Dos
> Linkedin: www.linkedin.com/in/danieldiasjava
> Twitter: http://twitter.com/danieldiasjava



[GitHub] [tomee] hbelmiro commented on a change in pull request #691: TOMEE-2882 Translate to Portuguese: examples/pojo-webservice

2020-07-20 Thread GitBox


hbelmiro commented on a change in pull request #691:
URL: https://github.com/apache/tomee/pull/691#discussion_r457673774



##
File path: examples/pojo-webservice/README_pt.adoc
##
@@ -0,0 +1,297 @@
+:index-group: Web Services
+:jbake-type: page
+:jbake-status: status=published
+= Exemplo JAX-WS @WebService
+
+Criar serviços da Web com JAX-WS é bastante fácil. Pouco é preciso ser feito, 
além de anotar uma classe com `@WebService`. Este exemplo mostra o uso do CDI 
com anotação de webservice. O `web.xml` expõe o servlet de webservice no 
endereço `http://latexmath:[${host}:$]\{port}/ pojo-webservice?Wsdl`. Para 
executar o exemplo, você pode usar o plugin mavne do tomee, `mvn tomee:run`.

Review comment:
   ```suggestion
   Criar serviços da Web com JAX-WS é bastante fácil. Pouco é preciso ser 
feito, além de anotar uma classe com `@WebService`. Este exemplo mostra o uso 
do CDI com anotação de webservice. O `web.xml` expõe o servlet de webservice no 
endereço `http://latexmath:[${host}:$]\{port}/ pojo-webservice?Wsdl`. Para 
executar o exemplo, você pode usar o plugin maven do tomee, `mvn tomee:run`.
   ```

##
File path: examples/pojo-webservice/README_pt.adoc
##
@@ -0,0 +1,297 @@
+:index-group: Web Services
+:jbake-type: page
+:jbake-status: status=published
+= Exemplo JAX-WS @WebService
+
+Criar serviços da Web com JAX-WS é bastante fácil. Pouco é preciso ser feito, 
além de anotar uma classe com `@WebService`. Este exemplo mostra o uso do CDI 
com anotação de webservice. O `web.xml` expõe o servlet de webservice no 
endereço `http://latexmath:[${host}:$]\{port}/ pojo-webservice?Wsdl`. Para 
executar o exemplo, você pode usar o plugin mavne do tomee, `mvn tomee:run`.
+
+== web.xml
+
+Expor um servlet para o webservice
+
+[source,xml]
+
+http://java.sun.com/xml/ns/javaee;
+xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
+xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd;
+version="3.0">
+
+ws
+org.superbiz.ws.pojo.PojoWS
+
+
+ws
+/*
+
+
+
+
+== @PojoWS
+
+Esta é a única classe concreta anotada como `@WebService` que expõe uma 
operação `ws()`, também o `WebServiceContext` e `UserTransaction` são injetados 
na classe e usados na operação.
+
+[source,java]
+
+import javax.annotation.Resource;
+import javax.jws.WebService;
+import javax.transaction.UserTransaction;
+import javax.xml.ws.WebServiceContext;
+
+@WebService
+public class PojoWS implements WS {
+
+@Resource
+private WebServiceContext webServiceContext;
+
+@Resource
+private UserTransaction userTransaction;
+
+@Override
+public String ws() {
+return webServiceContext + " & " + userTransaction;
+}
+
+public void setWebServiceContext(WebServiceContext webServiceContext) {
+this.webServiceContext = webServiceContext;
+}
+
+public void setUserTransaction(UserTransaction userTransaction) {
+this.userTransaction = userTransaction;
+}
+}
+
+
+== @WebService Endpoint Interface
+
+Ter uma interface de endpoint não é necessário, mas pode facilitar muito o 
teste e o uso do webservice de outros clientes Java.
+
+[source,java]
+
+import javax.jws.WebService;
+
+@WebService
+public interface WS {
+
+String ws();
+}
+
+
+== PojoWS WSDL
+
+O wsdl para nosso serviço é criado automaticamente para nós e disponível em

Review comment:
   ```suggestion
   O wsdl para nosso serviço é criado automaticamente para nós e está 
disponível em
   ```





This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




TOMEE-2882 Translate to Portuguese: examples/pojo-webservice

2020-07-17 Thread Daniel Dias Dos Santos
Hello,

I opened a ticket in Jira [1] and a PR [2], can anyone revise the
translation?

thank you

[1] https://issues.apache.org/jira/browse/TOMEE-2882
[2] https://github.com/apache/tomee/pull/691
--

*Daniel Dias dos Santos*
Java Developer
SouJava & JCP Member
GitHub: https://github.com/Daniel-Dos
Linkedin: www.linkedin.com/in/danieldiasjava
Twitter: http://twitter.com/danieldiasjava


[GitHub] [tomee] Daniel-Dos opened a new pull request #691: TOMEE-2882 Translate to Portuguese: examples/pojo-webservice

2020-07-17 Thread GitBox


Daniel-Dos opened a new pull request #691:
URL: https://github.com/apache/tomee/pull/691


   Link to Jira: https://issues.apache.org/jira/browse/TOMEE-2882



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org