// compose a request message MessageFactory mf = MessageFactory .newInstance(SOAPConstants.SOAP_1_1_PROTOCOL); // Create a message. This example works with the SOAPPART. SOAPMessage request = mf.createMessage(); SOAPPart part = request.getSOAPPart(); // Obtain the SOAPEnvelope and header and body elements. SOAPEnvelope env = part.getEnvelope(); SOAPBody body = env.getBody(); // Construct the message payload. SOAPElement operation = body.addChildElement("something", "something", "something"); SOAPElement value = operation.addChildElement("data"); value.addTextNode(data); //the data I have is currently a string I want to be able to add data to a soapmessage as an inputStream or something of the sort for memory reasons
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.