Hi, I keep getting this error. Any idea what this means? java.lang.Exception: Connector
- Bad request to the server. The WSDL is: https://supplier.clearstar.net/SOAPSvr/ClearStarSOAP.wsdl Here is the code snippet involved. The error gets thrown by
the "throw new Exception(fault.getFaultString())"
line. Thanks in advance. System.setProperty("java.protocol.handler.pkgs",
"com.sun.net.ssl.internal.www.protocol"); java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider()); Call call = new Call(); call.setMethodName ("GetNewOrders"); call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC); //call.setTargetObjectURI ("urn:studentProfileSaver"); // call.setEncodingStyleURI(encLoc); Vector params = new Vector (); URL url = new URL (WSDLloc); System.out.println("BusID:" + getBOID()); System.out.println("sourceID:" + getSourceID()); System.out.println("loginname:" + getLoginName()); System.out.println("password:" + getPassword()); params.addElement (new Parameter("lBOID", Long.class, getBOID(), null)); params.addElement (new Parameter("iSourceID", Integer.class, getSourceID(), null)); params.addElement (new Parameter("sLoginName", String.class, getLoginName(), null)); params.addElement (new Parameter("sPassword", String.class, getPassword(), null)); call.setParams (params); System.out.println("About to invoke."); Response resp = call.invoke (url, "" ); if (resp.generatedFault()) { Fault fault = resp.getFault(); throw new Exception(fault.getFaultString()); } else {
Parameter p = resp.getReturnValue(); xmlReturned = "" + p.getValue(); } } catch (Exception e) { e.printStackTrace(); } This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender. |