-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/jbossws/jbossws-cxf
- Loading branch information
Showing
10 changed files
with
262 additions
and
19 deletions.
There are no files selected for viewing
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
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
17 changes: 17 additions & 0 deletions
17
...testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3655/GoodByRequest.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.jboss.test.ws.jaxws.cxf.jbws3655; | ||
|
||
public class GoodByRequest | ||
{ | ||
private String input; | ||
|
||
public String getInput() | ||
{ | ||
return input; | ||
} | ||
|
||
public void setInput(String input) | ||
{ | ||
this.input = input; | ||
} | ||
|
||
} |
20 changes: 20 additions & 0 deletions
20
...estsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3655/GoodByResponse.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package org.jboss.test.ws.jaxws.cxf.jbws3655; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class GoodByResponse | ||
{ | ||
private List<String> multiGoodBy = new ArrayList<String>(); | ||
|
||
public List<String> getMultiGoodBy() | ||
{ | ||
return multiGoodBy; | ||
} | ||
|
||
public void setMultiGoodBy(List<String> multiGoodBy) | ||
{ | ||
this.multiGoodBy = multiGoodBy; | ||
} | ||
|
||
} |
26 changes: 26 additions & 0 deletions
26
...stsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3655/GoodByWSEJBImpl.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package org.jboss.test.ws.jaxws.cxf.jbws3655; | ||
|
||
import org.jboss.ws.api.annotation.WebContext; | ||
|
||
import javax.ejb.Stateless; | ||
import javax.jws.WebService; | ||
|
||
@Stateless | ||
@WebService(wsdlLocation = "META-INF/wsdl/GoodBy.wsdl", | ||
name = GoodByWs.NAME, | ||
serviceName = GoodByWs.NAME, | ||
targetNamespace = GoodByWs.TARGET_NAMESPACE, | ||
endpointInterface = "org.jboss.test.ws.jaxws.cxf.jbws3655.GoodByWs") | ||
@WebContext(contextRoot = "/jaxws-cxf-jbws3655-goodby", urlPattern = GoodByWs.NAME) | ||
public class GoodByWSEJBImpl implements GoodByWs | ||
{ | ||
|
||
public GoodByResponse doGoodBy(GoodByRequest request) | ||
{ | ||
GoodByResponse response = new GoodByResponse(); | ||
response.getMultiGoodBy().add(request.getInput()); | ||
response.getMultiGoodBy().add("world"); | ||
return response; | ||
} | ||
|
||
} |
13 changes: 13 additions & 0 deletions
13
modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3655/GoodByWs.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package org.jboss.test.ws.jaxws.cxf.jbws3655; | ||
|
||
import javax.jws.WebService; | ||
|
||
@WebService(name = GoodByWs.NAME, targetNamespace = GoodByWs.TARGET_NAMESPACE) | ||
public interface GoodByWs | ||
{ | ||
public final static String NAME = "GoodByService"; | ||
|
||
public final static String TARGET_NAMESPACE = "http://goodby/test"; | ||
|
||
public GoodByResponse doGoodBy(GoodByRequest request); | ||
} |
18 changes: 18 additions & 0 deletions
18
.../testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3655/GoodByWsImpl.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package org.jboss.test.ws.jaxws.cxf.jbws3655; | ||
|
||
import javax.jws.WebService; | ||
@WebService(wsdlLocation = "META-INF/wsdl/GoodBy.wsdl", | ||
name = GoodByWs.NAME, | ||
serviceName = GoodByWs.NAME, | ||
targetNamespace = GoodByWs.TARGET_NAMESPACE, | ||
endpointInterface = "org.jboss.test.ws.jaxws.cxf.jbws3655.GoodByWs") | ||
public class GoodByWsImpl implements GoodByWs | ||
{ | ||
public GoodByResponse doGoodBy(GoodByRequest request) | ||
{ | ||
GoodByResponse response = new GoodByResponse(); | ||
response.getMultiGoodBy().add(request.getInput()); | ||
response.getMultiGoodBy().add("world"); | ||
return response; | ||
} | ||
} |
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
46 changes: 46 additions & 0 deletions
46
modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3655/META-INF/wsdl/GoodBy.wsdl
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<wsdl:definitions name="GoodByService" | ||
targetNamespace="http://goodby/test" | ||
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" | ||
xmlns:tns="http://goodby/test" | ||
xmlns:xsd="http://www.w3.org/2001/XMLSchema" | ||
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"> | ||
<wsdl:types> | ||
<schema xmlns="http://www.w3.org/2001/XMLSchema"> | ||
<import namespace="http://goodby/test" schemaLocation="GoodBy_schema1.xsd"/> | ||
</schema> | ||
</wsdl:types> | ||
<wsdl:message name="doGoodBy"> | ||
<wsdl:part name="parameters" element="tns:doGoodBy"> | ||
</wsdl:part> | ||
</wsdl:message> | ||
<wsdl:message name="doGoodByResponse"> | ||
<wsdl:part name="parameters" element="tns:doGoodByResponse"> | ||
</wsdl:part> | ||
</wsdl:message> | ||
<wsdl:portType name="GoodByService"> | ||
<wsdl:operation name="doGoodBy"> | ||
<wsdl:input name="doGoodBy" message="tns:doGoodBy"> | ||
</wsdl:input> | ||
<wsdl:output name="doGoodByResponse" message="tns:doGoodByResponse"> | ||
</wsdl:output> | ||
</wsdl:operation> | ||
</wsdl:portType> | ||
<wsdl:binding name="GoodByServiceSoapBinding" type="tns:GoodByService"> | ||
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> | ||
<wsdl:operation name="doGoodBy"> | ||
<soap:operation soapAction="" style="document"/> | ||
<wsdl:input name="doGoodBy"> | ||
<soap:body use="literal"/> | ||
</wsdl:input> | ||
<wsdl:output name="doGoodByResponse"> | ||
<soap:body use="literal"/> | ||
</wsdl:output> | ||
</wsdl:operation> | ||
</wsdl:binding> | ||
<wsdl:service name="GoodByService"> | ||
<wsdl:port name="GoodByServicePort" binding="tns:GoodByServiceSoapBinding"> | ||
<soap:address location="http://localhost:9090/GoodByServicePort"/> | ||
</wsdl:port> | ||
</wsdl:service> | ||
</wsdl:definitions> |
28 changes: 28 additions & 0 deletions
28
...estsuite/cxf-tests/src/test/resources/jaxws/cxf/jbws3655/META-INF/wsdl/GoodBy_schema1.xsd
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<xs:schema xmlns:tns="http://goodby/test" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
elementFormDefault="unqualified" | ||
targetNamespace="http://goodby/test" version="1.0"> | ||
<xs:element name="doGoodBy" type="tns:doGoodBy"/> | ||
<xs:element name="doGoodByResponse" type="tns:doGoodByResponse"/> | ||
<xs:complexType name="doGoodBy"> | ||
<xs:sequence> | ||
<xs:element minOccurs="0" name="arg0" type="tns:goodByRequest"/> | ||
</xs:sequence> | ||
</xs:complexType> | ||
<xs:complexType name="goodByRequest"> | ||
<xs:sequence> | ||
<xs:element minOccurs="0" name="goodBy" type="xs:string"/> | ||
</xs:sequence> | ||
</xs:complexType> | ||
<xs:complexType name="doGoodByResponse"> | ||
<xs:sequence> | ||
<xs:element minOccurs="0" name="return" type="tns:goodByResponse"/> | ||
</xs:sequence> | ||
</xs:complexType> | ||
<xs:complexType name="goodByResponse"> | ||
<xs:sequence> | ||
<xs:element maxOccurs="unbounded" minOccurs="0" name="multiGoodBy" nillable="true" type="xs:string"/> | ||
</xs:sequence> | ||
</xs:complexType> | ||
</xs:schema> |