Subversion Repositories XServices

Compare Revisions

Ignore whitespace Rev 157 → Rev 158

/xservices/trunk/src/java/net/brutex/xservices/ws/impl/XmlServiceImpl.java
29,6 → 29,7
import java.util.StringTokenizer;
 
import javax.jws.WebService;
import javax.ws.rs.NotAuthorizedException;
import javax.xml.namespace.QName;
import javax.xml.stream.XMLOutputFactory;
import javax.xml.stream.XMLStreamException;
35,6 → 36,7
import javax.xml.stream.XMLStreamReader;
import javax.xml.stream.XMLStreamWriter;
 
import net.brutex.xservices.security.DirectoryPermission;
import net.brutex.xservices.types.AttributeType;
import net.brutex.xservices.types.NamespaceListType;
import net.brutex.xservices.types.NamespaceType;
42,6 → 44,7
import net.brutex.xservices.types.ant.FileResource;
import net.brutex.xservices.ws.XServicesFault;
import net.brutex.xservices.ws.XmlService;
 
import org.apache.axiom.om.OMAbstractFactory;
import org.apache.axiom.om.OMAttribute;
import org.apache.axiom.om.OMCloneOptions;
56,6 → 59,8
import org.apache.axiom.om.OMXMLBuilderFactory;
import org.apache.axiom.om.xpath.AXIOMXPath;
import org.apache.log4j.Logger;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authz.UnauthorizedException;
import org.jaxen.JaxenException;
import org.jaxen.SimpleNamespaceContext;
 
420,6 → 425,7
 
 
private OMDocument replaceNodes(OMDocument xmldocument, AXIOMXPath axp, OMDocument xmlfragment) throws XServicesFault {
List<?> olist = null;
try {
olist = axp.selectNodes(xmldocument.getOMDocumentElement());
469,7 → 475,7
 
while (children.hasNext()) {
OMNode container = (OMNode) children.next();
match.insertSiblingAfter((OMNode) container.clone(new OMCloneOptions()));
match.insertSiblingBefore((OMNode) container.clone(new OMCloneOptions()));
}
match.detach();
}
503,4 → 509,6
logger.debug("Setting source xml string encoding to '"+encoding+"'");
return encoding;
}
 
}