Skip to content

Instantly share code, notes, and snippets.

View pinei's full-sized avatar
🏠
Working from home

Pìnei pinei

🏠
Working from home
  • Petrobras
  • Rio de Janeiro, Brazil
View GitHub Profile
@pinei
pinei / WebServiceClient.java
Created September 4, 2015 19:54
Username token profile with CXF for SOAP Clients
import org.apache.cxf.endpoint.*;
import org.apache.cxf.ws.security.policy.model.Header;
import org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor;
import org.apache.ws.security.WSConstants;
import org.apache.ws.security.handler.WSHandlerConstants;
// ...
private static void addUsernameTokenProfileCXF(PapiWebService papiWebServicePort, String username) {
Client client = org.apache.cxf.frontend.ClientProxy.getClient(papiWebServicePort);
@pinei
pinei / .gitignore
Last active September 1, 2015 21:23
Git ignore file for Grails / Java projects and IntelliJ IDEA
# Mac files
.DS_Store
*/.DS_Store
# Output
/target
/classes
/bin
/out
Aqua Data Studio 7.0.22
Depends on the following DLLs to connect to Oracle through OCI driver:
- ocijdbc10.dll
- oci.dll