cancel
Showing results for 
Search instead for 
Did you mean: 

the problem about http proxy.

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

I think your xml and your xsd are not found on the server.

What is the exact stack trace?

Answers (0)