This file contains hidden or 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
<xsl:stylesheet version="1.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:dp="http://www.datapower.com/extensions" | |
extension-element-prefixes="dp" | |
> | |
<dp:input-mapping href="store:///pkcs7-convert-input.ffd" type="ffd"/> | |
<xsl:template match="/"> | |
<xsl:variable name="response"> | |
<xsl:value-of select="dp:binary-encode(/object/message)"/> |
This file contains hidden or 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
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:int="http://integration.abc.com"> | |
<soapenv:Header/> | |
<soapenv:Body> | |
<int:request> | |
<int:ip>verysecret.company.com</int:ip> | |
<int:operation>sitecheck.aspx</int:operation> | |
<int:params> | |
<!--Zero or more repetitions:--> | |
<int:item> | |
<int:key>alfa</int:key> |
This file contains hidden or 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
<?xml version="1.0"?> | |
<xsl:stylesheet version="1.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output method="text"/> | |
<xsl:template match="/"> | |
<xsl:text>http://</xsl:text><xsl:value-of select="//*[local-name()='ip']"/><xsl:text>:</xsl:text> | |
<xsl:value-of select="//*[local-name()='port']"/><xsl:text>/</xsl:text> | |
<xsl:value-of select="//*[local-name()='operation']"/> | |
<xsl:for-each select="//*[local-name()='item']"> | |
<xsl:if test="position()=1"> |
This file contains hidden or 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
local_filename = "d:\\codes\\harmony\\back-end\\target\\restrict-maven-plugin.txt" | |
File.open(local_filename, 'r') do |f| | |
paket = nil | |
while line = f.gets | |
if line.start_with?("Restricted access from") | |
tokens = line.split(/\(|\)/) | |
paket_suan = tokens[1][tokens[1].rindex(/\\/)+1..-1] | |
if paket_suan != paket |
This file contains hidden or 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
<build> | |
<plugins> | |
<plugin> | |
<groupId>com.yamanyar</groupId> | |
<artifactId>restrict-maven-plugin</artifactId> | |
<version>0.6</version> | |
<executions> | |
<execution> |
This file contains hidden or 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
@echo off | |
echo "Generating Axis-2 Client Stubs." | |
echo "Do not forget to set environment specific variables before executing this script." | |
echo "You only need to execute this script if new/update of wsdl or xsd occurs." | |
echo "Kaan Yamanyar, 2012." | |
set JAVA_HOME=D:\apps\jdk6 | |
set THE_AXIS_PATH=d:\apps\axis2-1.6.2 |
This file contains hidden or 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
package com.yamanyar.mediation.esb.services; | |
import org.apache.commons.logging.Log; | |
import org.apache.commons.logging.LogFactory; | |
import org.springframework.integration.Message; | |
import org.springframework.integration.message.ErrorMessage; | |
import org.springframework.integration.xml.AggregatedXmlMessageValidationException; | |
import org.springframework.xml.xsd.XsdSchemaException; |
This file contains hidden or 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
<int-ws:inbound-gateway id="ws-odemeGonder-inbound" | |
request-channel="odemeGonderChannel" error-channel="inboundsErrorChannel"/> | |
<int:channel id="inboundsErrorChannel"/> | |
<int:service-activator input-channel="inboundsErrorChannel"> | |
<bean class="com.yamanyar.mediation.esb.services.ErrorDetail"/> | |
</int:service-activator> |
This file contains hidden or 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
org.springframework.integration.MessageRejectedException: Message was rejected due to XML Validation errors | |
at org.springframework.integration.xml.selector.XmlValidatingMessageSelector.accept(XmlValidatingMessageSelector.java:101) | |
at org.springframework.integration.filter.MessageFilter.handleRequestMessage(MessageFilter.java:103) | |
... | |
Caused by: org.springframework.integration.xml.AggregatedXmlMessageValidationException | |
... 39 more |
This file contains hidden or 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
<int:channel id="inChannel"/> | |
<int:transformer id="saxonTransformerOdemeGonder" input-channel="inChannel" | |
output-channel="transformedOutChannel"> | |
<beans:bean class="com.yamanyar.esb.transformers.SaxonXsltTransformer"> | |
<beans:constructor-arg value="classpath:/xsls/scoped-def-namespaces.xsl" index="0"/> | |
<beans:constructor-arg ref="resultTransformer" index="1"/> | |
</beans:bean> |