Skip to content

Instantly share code, notes, and snippets.

@benleov
benleov / gist:06e2c4ab4d0ef4c04b42
Created July 19, 2014 10:01
Example WSDL file
<definitions name="HelloService"
targetNamespace="http://www.examplesite.com/wsdl/HelloService.wsdl"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://www.examplesite.com/wsdl/HelloService.wsdl"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<message name="SayHelloRequest">
<part name="firstName" type="xsd:string" />
</message>
@benleov
benleov / mail_write_script.sh
Last active April 5, 2016 03:06
This script writes emails piped from postfix into separate files.
#!/bin/bash
#
# This script writes emails piped from postfix into separate files. It also removes
# new line delimiters which causes issues when viewing in Outlook.
#
# Setup:
#
# It requires lines in master.cf that looks something like this:
#
# to_filesystem unix - n n - - pipe
@benleov
benleov / gist:292fb7ee692e830f5dd1
Created July 7, 2014 09:04
Sample SOAP Client running over SSL(TLS)
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.net.URL;
import java.net.URLConnection;
import java.security.InvalidKeyException;
import java.security.KeyManagementException;