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

+23-5
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

+1-1
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

+1-6
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

+14
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>
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+
}
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>
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>

calculonotas-cliente/target/m2e-wtp/web-resources/META-INF/maven/com.mycompany/calculonotas-cliente/pom.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#Generated by Maven Integration for Eclipse
2-
#Sat Aug 18 18:35:39 PET 2012
2+
#Sat Aug 18 18:41:07 PET 2012
33
version=1.0
44
groupId=com.mycompany
55
m2e.projectName=calculonotas-cliente

clima-ws/.classpath

+19-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,27 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<classpath>
3-
<classpathentry kind="src" output="target/classes" path="src/main/java"/>
4-
<classpathentry kind="src" path="src/test/java"/>
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>
515
<classpathentry excluding="*.java" kind="src" path="src/test/resources"/>
6-
<classpathentry excluding="*.java" kind="src" path="src/main/resources"/>
7-
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
16+
<classpathentry excluding="*.java" including="**/*.java" kind="src" path="src/main/resources"/>
17+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5">
18+
<attributes>
19+
<attribute name="maven.pomderived" value="true"/>
20+
</attributes>
21+
</classpathentry>
822
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
923
<attributes>
24+
<attribute name="maven.pomderived" value="true"/>
1025
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
1126
</attributes>
1227
</classpathentry>

clima-ws/.project

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@
2121
</arguments>
2222
</buildCommand>
2323
<buildCommand>
24-
<name>org.eclipse.m2e.core.maven2Builder</name>
24+
<name>org.eclipse.wst.validation.validationbuilder</name>
2525
<arguments>
2626
</arguments>
2727
</buildCommand>
2828
<buildCommand>
29-
<name>org.eclipse.wst.validation.validationbuilder</name>
29+
<name>org.springframework.ide.eclipse.core.springbuilder</name>
3030
<arguments>
3131
</arguments>
3232
</buildCommand>
3333
<buildCommand>
34-
<name>org.springframework.ide.eclipse.core.springbuilder</name>
34+
<name>org.eclipse.m2e.core.maven2Builder</name>
3535
<arguments>
3636
</arguments>
3737
</buildCommand>

clima-ws/.settings/org.eclipse.wst.common.component

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
<wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/>
55
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
66
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
7-
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/test/java"/>
8-
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/test/resources"/>
97
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
108
<property name="context-root" value="clima-ws"/>
119
<property name="java-output-path" value="/clima-ws/target/classes"/>

clima-ws/target/classes/cliente.xml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<beans xmlns="http://www.springframework.org/schema/beans"
3+
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">
5+
6+
7+
<bean id="weatherServiceProxy" class="com.mycompany.clima_ws.WeatherServiceProxy">
8+
<property name="defaultUri" value="http://localhost:8080/clima-ws/services"/>
9+
</bean>
10+
11+
12+
13+
<bean id="client" class="com.mycompany.clima_ws.WeatherServiceClient">
14+
<property name="weatherService" ref="weatherServiceProxy"></property>
15+
</bean>
16+
</beans>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Manifest-Version: 1.0
2+
Built-By: josediaz
3+
Build-Jdk: 1.6.0_33
4+
Created-By: Maven Integration for Eclipse
5+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#Generated by Maven Integration for Eclipse
2+
#Sat Aug 18 16:36:15 PET 2012
3+
version=0.0.1-SNAPSHOT
4+
groupId=com.mycompany
5+
m2e.projectName=clima-ws
6+
m2e.projectLocation=/Users/josediaz/Documents/github-java-samples/java-samples/clima-ws
7+
artifactId=clima-ws

0 commit comments

Comments
 (0)