默认构造函数无法处理由隐式超级构造函数抛出的异常类型SAXException。必须定义显式构造函数

时间:2017-02-02 19:40:56

标签: java

我看了类似的帖子,但无法找到问题的答案。我写了下面的代码。我收到错误:

  

无法处理第3行隐式超级构造函数抛出的异常类型

代码:

public static String msg = "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:sur=\"http://siebel.com/SurveyWebService\"><soapenv:Header><UsernameToken xmlns=\"http://siebel.com/webservices\">kchelamk</UsernameToken><PasswordText xmlns=\"http://siebel.com/webservices\">kchelamk</PasswordText><SessionType xmlns=\"http://siebel.com/webservices\">Stateless</SessionType></soapenv:Header><soapenv:Body><sur:QuerySurvey_Input><sur:SRNum>RFS-1-74143796</sur:SRNum><sur:AccountId>1-MPWH</sur:AccountId></sur:QuerySurvey_Input></soapenv:Body></soapenv:Envelope>"; 
InputStream   input   = new ByteArrayInputStream(msg.getBytes()); 
SOAPEnvelope  env     = new SOAPEnvelope(input); 

有谁能让我知道我的代码需要哪些修改?

0 个答案:

没有答案
相关问题