Skip to content

Commit

Permalink
#146: fix generation of WSA Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
unixoid committed Jun 13, 2017
1 parent 8200044 commit 5184861
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.Action;

/**
* @since 3.3
Expand All @@ -41,6 +42,7 @@
public interface Iti86PortType {

@WebMethod(operationName = "DocumentRepository_RemoveDocuments")
@Action(input = "urn:ihe:iti:2017:RemoveDocuments", output = "urn:ihe:iti:2017:RemoveDocumentsResponse")
@WebResult(name = "RegistryResponse", targetNamespace = "urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0", partName = "body")
public RegistryResponseType documentRepositoryRemoveDocuments(
@WebParam(partName = "body", name = "RemoveDocumentsRequest", targetNamespace = "urn:ihe:iti:rmd:2017")
Expand Down
2 changes: 1 addition & 1 deletion commons/ihe/xds/src/main/resources/wsdl/iti86.wsdl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
xmlns:rmd="urn:ihe:iti:rmd:2017"
xmlns:rs="urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0"
xmlns:wsoap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:wsam="http://www.w3.org/2006/05/addressing/metadata/"
xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata"
targetNamespace="urn:ihe:iti:rmd:2017"
name="DocumentRepository">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import org.apache.cxf.transport.servlet.CXFServlet
import org.junit.Before
import org.junit.BeforeClass
import org.junit.Test
import org.openehealth.ipf.commons.ihe.core.payload.PayloadLoggerBase
import org.openehealth.ipf.commons.ihe.xds.core.SampleData
import org.openehealth.ipf.commons.ihe.xds.core.requests.RemoveDocuments
import org.openehealth.ipf.commons.ihe.xds.core.responses.Response
Expand All @@ -36,7 +37,7 @@ class TestIti86 extends StandardTestContainer {

def static CONTEXT_DESCRIPTOR = 'iti-86.xml'

def SERVICE2 = "rmd-iti86://localhost:${port}/rmd-iti86-service2"
def SERVICE2 = "rmd-iti86://localhost:${port}/rmd-iti86-service2?inInterceptors=#inLogger&outInterceptors=#outLogger"
def SERVICE2_ADDR = "http://localhost:${port}/rmd-iti86-service2"

RemoveDocuments request
Expand All @@ -47,6 +48,8 @@ class TestIti86 extends StandardTestContainer {

@BeforeClass
static void classSetUp() throws Exception {
System.setProperty(PayloadLoggerBase.PROPERTY_CONSOLE, 'true')
System.setProperty(PayloadLoggerBase.PROPERTY_DISABLED, 'true')
startServer(new CXFServlet(), CONTEXT_DESCRIPTOR)
}

Expand Down
8 changes: 8 additions & 0 deletions platform-camel/ihe/xds/src/test/resources/iti-86.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,13 @@ http://camel.apache.org/schema/spring/camel-spring.xsd">
class="org.openehealth.ipf.platform.camel.ihe.xds.iti86.Iti86TestRouteBuilder">
</bean>

<bean id="inLogger" class="org.openehealth.ipf.commons.ihe.ws.cxf.payload.InPayloadLoggerInterceptor">
<constructor-arg value="dummy" />
</bean>

<bean id="outLogger" class="org.openehealth.ipf.commons.ihe.ws.cxf.payload.OutPayloadLoggerInterceptor">
<constructor-arg value="dummy" />
</bean>

</beans>

0 comments on commit 5184861

Please sign in to comment.