on 11-27-2008 8:40 AM
Dear all,
I am trying develop a java program by following the SAP NetWaver Library.
http://help.sap.com/saphelp_nw04s/helpdata/en/c4/e1343e8c7f6329e10000000a114084/frameset.htm
But it always catches the IllegalArgumentException because XI server isn't allowed for the direct connect to the URL like "http://www.w3.org/2001/XMLSchema".
Please advise me how to establish the connect to the target URL by the proxy server using user authorization and apply to this development.
The developing code:
try {
DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
docBuilderFactory.setNamespaceAware(true);
docBuilderFactory.setValidating(true);
docBuilderFactory.setAttribute("http://java.sun.com/xml/jaxp/properties/schemaLanguage", "http://www.w3.org/2001/XMLSchema");
docBuilderFactory.setAttribute("http://java.sun.com/xml/jaxp/properties/schemaSource","Schemafile");
DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
Document doc = docBuilder.parse("myXMLfile");
} catch(DOMException domException) {
domException.printStackTrace();
} catch(IllegalArgumentException illegalArgumentException){
illegalArgumentException.printStackTrace();
}
Thanks & Regards,
Red
I think your xml and your xsd are not found on the server.
What is the exact stack trace?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
96 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.