Here you can find the source of getFirstChild(SOAPElement body, QName elementName)
public static SOAPElement getFirstChild(SOAPElement body, QName elementName)
//package com.java2s; import java.util.Iterator; import javax.xml.namespace.QName; import javax.xml.soap.SOAPElement; public class Main { public static SOAPElement getFirstChild(SOAPElement body, QName elementName) { Iterator updateRequest = body.getChildElements(elementName); if (!updateRequest.hasNext()) return null; return (SOAPElement) updateRequest.next(); }/*from w w w. j a v a2s. co m*/ }