Here is one method that works:
1. Cut couple of holes into the plastic cap.
2. Solder two wires to the H1 bulb.
3. Run the wires through the plastic cap.
4. Epoxy the holes shut so it won't leak.
5. Make the ends of the wires nice and round and pointy. Coat the ends with a little solder to make them rigid. They should be just thick enough to fit snuglly inside the 9006 connector.
6. Apply masking tape.