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
<?php | |
$client = new SoapClient('http://personah.cmsw.com.br/Sale/services/Compra?wsdl'); | |
$request = new stdClass; | |
$request->compra = new stdClass; | |
$request->compra->id_cliente = 1; | |
$request->compra->usuario = 'usuario'; | |
$request->compra->... | |
$request->compra->... |
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
import gammu | |
sm = gammu.StateMachine() | |
sm.ReadConfig() | |
sm.Init() | |
message = { | |
'Number': '1234', | |
'SMSC': {'Number': '+554199138200'}, | |
'Text': 'Hello world!', |
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
// Models | |
namespace AltaMontanha.Models.Dominio | |
{ | |
public class Conteudo | |
{ | |
public virtual int Codigo { get; set; } | |
public virtual string Titulo { get; set; } | |
public virtual List<PalavraChave> PalavrasChave { get; set; } | |
} | |
} |
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
public class Aluno { // aqui é a definição de classe | |
private String nome; // aqui é um atributo 'nome' do tipo 'String', ou seja, poderemos guardar tudo que é texto nela, inclusive números e caracteres especiais. | |
public String getNome() { // é o método pra pegar o nome, pois vamos ver que não é 'bonito' acessar direto os atributos | |
return nome; | |
} | |
public void setNome(String nome) { // método pra guardar o nome | |
this.nome = nome; | |
} |
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
<History type="ficção" context="enterprise" description="padrão perfeito X" | |
observation="Qualquer semelhança com a vida real será pura coincidência"> | |
<Content> | |
1 - Temos o "padrão perfeito X", chamado a partir de agora ppX; | |
2 - O ppX é grande, foi criado para resolver todo tipo de problema do mundo tecnológico; | |
3 - Muitas pessoas enterprise (vulgo PE) usam e amam o ppX e são felizes com ele; | |
4 - Toda palestra, evento e rodinha das PE só se ouve falar do ppX, bem, é lógico; | |
5 - Usam ele para todo e qualquer problema; | |
6 - Eles sabem que o ppX tem seus problemas, mas é super confiável; | |
7 - **Eles resolvem seus problemas com o ppX e são felizes com o que fazem.** |
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
history = { | |
type: "ficção", | |
context: "non-enterprise", | |
description: "padrão perfeito X", | |
observation: "Qualquer semelhança com a vida real será pura coincidência", | |
content: "1 – Existe o “padrão perfeito X”, chamado a partir de agora ppX; | |
2 – O ppX é grande, foi criado para resolver todo tipo de problema do mundo tecnológico; | |
3 – Muitas pessoas enterprise (vulgo PE) usam e amam o ppX e são felizes com ele; | |
4 – Muitas pessoas não-enterprise (vulgo PNE) pouco usam e odeiam o ppX; | |
5 – Toda palestra, evento e rodinha das PNE só se ouve falar mal do ppX; |
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
<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> | |
<action>discard|fault</action> |
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
<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> |
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
<failover> | |
<endpoint .../>+ | |
</failover> |
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
<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> |
OlderNewer