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
for i in *.markdown | |
do | |
perl -p -i -e 'print "comments: true\n" if /status: publish/' $i | |
done |
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
<operation name="productsByGroup"> | |
<call-query href="productsByGroup"> | |
<with-param name="group_id" query-param="group_id"/> | |
</call-query> | |
</operation> |
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
<operation name="productsByGroup"> | |
<call-query href="productsByGroup"> | |
<with-param name="group_id" query-param=""/> | |
</call-query> | |
</operation> |
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
<query id="productsByGroup" useConfig="default"> | |
<sql>call sp_productsByGroup @group_id = ?</sql> | |
<param name="cliente" ordinal="1" sqlType="INTEGER" type="IN"/> | |
<result defaultNamespace="http://ds.ws.mcorp.com.br/products" element="products" rowName="product"> | |
<element column="id" name="id"/> | |
<element column="name" name="name"/> | |
</result> | |
</query> |
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
<query id="productsByGroup" useConfig="default"> | |
<sql>call sp_productsByGroup @group_id = ?</sql> | |
<param name="cliente" ordinal="" sqlType="INTEGER" type="IN"/> | |
<result defaultNamespace="http://ds.ws.mcorp.com.br/products" element="products" rowName="product"> | |
<element column="id" name="id"/> | |
<element column="name" name="name"/> | |
</result> | |
</query> |
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
// configurações de conexão | |
$username = "admin"; | |
$password = "admin"; | |
$created = date ("Y-m-d\TH:i:s", mktime (date("H"), date("i"), date("s"), date("m"), date("d"), date("Y")))."Z"; | |
// definição de namespaces | |
$ns = 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd'; | |
$wsu = 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd'; | |
// criando elemento UsernameToken |
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
$client = new SoapClient("http://localhost:8280/services/Tutorial?wsdl"); | |
try { | |
$obj = $client->searchProductsByGroupId(array("group_id" => 1)); | |
print_r($obj); | |
} catch (Exception $e) { | |
echo "ERRO: " . $e->getMessage(); | |
} |
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
<endpoint name="SampleFailover"> | |
<failover> | |
<endpoint name="Sample_First" statistics="enable" > | |
<address uri="http://localhost/myendpoint" statistics="enable" trace="disable"> | |
<timeout> | |
<duration>60000</duration> | |
</timeout> | |
<markForSuspension> | |
<errorCodes>101504, 101505, 101500</errorCodes> |
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
<failover> | |
<endpoint .../>+ | |
</failover> |
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
<address uri="endpoint address" [format="soap11|soap12|pox|get"] | |
[optimize="mtom|swa"] [encoding="charset encoding"] | |
[statistics="enable|disable"] [trace="enable|disable"]> | |
<enableRM [policy="key"]/>? | |
<enableSec [policy="key"]/>? | |
<enableAddressing [version="final|submission"] [separateListener="true|false"]/>? | |
<timeout> | |
<duration>timeout duration in seconds</duration> |