Listing 2. Here is an example that invokes a WebLogic Integration process using SAAJ.

String inputXml = "<env:Envelope xmlns:env=
        \"http://schemas.xmlsoap.org/soap/envelope/\" " +
        "xmlns:soapenc=\"http://schemas.xmlsoap.org/
        soapencoding/\" 
        xmlns:xsd=\"http://www.w3.org/001/
        XMLSchema\" " +
        "xmlns:xsi=\"http://www.w3.org/2001/
        XMLSchema-instance\">        <env:Header></env:Header> 
        <env:Body> " +
                "<getTemp xmlns=\"http://
                        www.openuri.org/\">" +
                        "<location xmlns=\"\"> 
                        <city>Barrington</city> 
                        <state>IL</state> 
                        </location> 
                </getTemp>" +  " 
        </env:Body> 
</env:Envelope> ";
invokeService("http://localhost:7001/saajService/
        processes/TempService.jpd",inputXml);