由于在Jdeveloper工具中不能通过wsdl生成客户端代码,所以需要使用soap协议手动构造消息以及发送消息.
/**
* 构造用户消息
* @return
* @throws javax.xml.soap.SOAPException
*/
private static SOAPMessage createUserMessage() throws SOAPException, IOException {
String send = "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:urn=\"urn:DefaultNamespace\">"+
"<soapenv:Header/>" +
"<soapenv:Body>" +
"<urn:IN_FOLDERID>*</urn:IN_FOLDERID>" +
"<urn:IN_RETURNSUBDEPTUSER>1</urn:IN_RETURNSUBDEPTUSER>" +
"<urn:SYSID>"+SYSID+"</urn:SYSID>" +