Skip to content

Commit ce9d50b

Browse files
committed
implementacion del cliente en un app context
1 parent 6cef69a commit ce9d50b

File tree

63 files changed

+801
-46
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+801
-46
lines changed

.DS_Store

0 Bytes
Binary file not shown.

apachecxf-jaxws-get-person/.classpath

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,30 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<classpath>
3-
<classpathentry kind="src" output="target/classes" path="src/main/java"/>
4-
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/>
5-
<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
6-
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"/>
7-
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
3+
<classpathentry kind="src" output="target/classes" path="src/main/java">
4+
<attributes>
5+
<attribute name="optional" value="true"/>
6+
<attribute name="maven.pomderived" value="true"/>
7+
</attributes>
8+
</classpathentry>
9+
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
10+
<attributes>
11+
<attribute name="optional" value="true"/>
12+
<attribute name="maven.pomderived" value="true"/>
13+
</attributes>
14+
</classpathentry>
15+
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
16+
<attributes>
17+
<attribute name="maven.pomderived" value="true"/>
18+
</attributes>
19+
</classpathentry>
20+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6">
21+
<attributes>
22+
<attribute name="maven.pomderived" value="true"/>
23+
</attributes>
24+
</classpathentry>
825
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
926
<attributes>
27+
<attribute name="maven.pomderived" value="true"/>
1028
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
1129
</attributes>
1230
</classpathentry>

apachecxf-jaxws-get-person/src/test/java/pe/joedayz/ejemplos/cxf/ClienteHolaMundoTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
public class ClienteHolaMundoTest {
2424

2525
@Autowired
26-
private HolaMundo instance = new HolaMundoImpl();
26+
private HolaMundo instance = null;
2727

2828
/**
2929
* Test of decirHola method, of class HolaMundo.
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#Generated by Maven Integration for Eclipse
2-
#Tue May 29 23:45:14 PET 2012
2+
#Sat Aug 18 16:58:21 PET 2012
33
version=1.0
44
groupId=pe.joedayz.ejemplos
5-
m2e.projectName=apachecxf-jaxws-get-person
6-
m2e.projectLocation=/Users/josediaz/Documents/workspace-dsd/apachecxf-jaxws-get-person
5+
m2e.projectName=apachecxf-jaxws-list-persons
6+
m2e.projectLocation=/Users/josediaz/Documents/github-java-samples/java-samples/apachecxf-jaxws-get-person
77
artifactId=apachecxf-jaxws-list-persons

calculonotas-cliente/.classpath

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<classpath>
3-
<classpathentry kind="src" output="target/classes" path="src/main/java">
4-
<attributes>
5-
<attribute name="optional" value="true"/>
6-
<attribute name="maven.pomderived" value="true"/>
7-
</attributes>
8-
</classpathentry>
93
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
104
<attributes>
115
<attribute name="maven.pomderived" value="true"/>
126
</attributes>
137
</classpathentry>
8+
<classpathentry kind="src" path="src/main/java"/>
149
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
1510
<attributes>
1611
<attribute name="optional" value="true"/>

calculonotas-cliente/.springBeans

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<beansProjectDescription>
3+
<version>1</version>
4+
<pluginVersion><![CDATA[3.0.0.201208090952-RELEASE]]></pluginVersion>
5+
<configSuffixes>
6+
<configSuffix><![CDATA[xml]]></configSuffix>
7+
</configSuffixes>
8+
<enableImports><![CDATA[false]]></enableImports>
9+
<configs>
10+
<config>src/main/resources/applicationContext.xml</config>
11+
</configs>
12+
<configSets>
13+
</configSets>
14+
</beansProjectDescription>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
package com.mycompany.calculonotas.service;
2+
3+
import javax.jws.WebParam;
4+
import javax.jws.WebService;
5+
6+
@SuppressWarnings("restriction")
7+
@WebService
8+
public interface NotaService {
9+
10+
public double calcularNotaFinalDSD(@WebParam(name = "pc1") double pc1,
11+
@WebParam(name = "pc2") double pc2,
12+
@WebParam(name = "pa1") double pa1,
13+
@WebParam(name = "tp") double tp,
14+
@WebParam(name = "tf") double tf);
15+
16+
public double calcularTFParaAprobarDSD(@WebParam(name = "pc1") double pc1,
17+
@WebParam(name = "pc2") double pc2,
18+
@WebParam(name = "pa1") double pa1,
19+
@WebParam(name = "tp") double tp,
20+
@WebParam(name = "tf") double tf,
21+
@WebParam(name = "nf") double nf
22+
);
23+
24+
25+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<beans xmlns="http://www.springframework.org/schema/beans"
3+
xmlns:jaxws="http://cxf.apache.org/jaxws" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
5+
6+
<jaxws:client id="notaServiceClient" serviceName="NotaServiceImpl"
7+
serviceClass="com.mycompany.calculonotas.service.NotaService"
8+
address="http://localhost:8080/consultanotas/NotaService" />
9+
10+
</beans>

0 commit comments

Comments
 (0)