Created
December 6, 2013 13:38
-
-
Save tjsnell/7823960 to your computer and use it in GitHub Desktop.
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
<cxf:configuration name="CXF_Configuration" enableMuleSoapHeaders="true" initializeStaticBusInstance="true" doc:name="CXF Configuration"/> | |
<flow name="mainFlow1" doc:name="mainFlow1"> | |
<http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8081" doc:name="HTTP"/> | |
<cxf:jaxws-service configuration-ref="CXF_Configuration" serviceClass="cc.notsoclever.mule.GitHubService" validationEnabled="true" doc:name="GitHub SOAP Service"/> | |
<choice doc:name="Choice"> | |
<when expression="#[cxf_operation.toString().endsWith('getProjectTags')]"> | |
<set-payload value="repos/#[payload[0]]/#[payload[1]]/tags" doc:name="Tags"/> | |
</when> | |
<when expression="#[cxf_operation.toString().endsWith('getProjectBranches')]"> | |
<set-payload value="repos/#[payload[0]]/#[payload[1]]/branches" doc:name="Branches"/> | |
</when> | |
<when expression="#[cxf_operation.toString().endsWith('getRepos')]"> | |
<set-payload value="orgs/#[payload]/repos" doc:name="Repos"/> | |
</when> | |
</choice> | |
<response> | |
<object-to-string-transformer doc:name="Object to String"/> | |
</response> | |
<https:outbound-endpoint exchange-pattern="request-response" host="api.github.com" port="443" path="#[payload]" method="GET" doc:name="Call GitHub REST API"/> | |
</flow> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment