posted 15 years ago
Dear Friends,
While saving the message I am facing the problem of "Error during saving multipart message" .. kindly help me in this regards.
env.setEncodingStyle("http://schemas.xmlsoap.org/soap/encoding/");
env.addNamespaceDeclaration("xsd","http://www.w3.org/2001/XMLSchema");
env.addNamespaceDeclaration("xsi","http://www.w3.org/2001/XMLSchema-instance");
env.addNamespaceDeclaration("enc","http://schemas.xmlsoap.org/soap/encoding/");
env.addNamespaceDeclaration("tns","syniverse:uniroam");
SOAPBody bd = env.getBody();
SOAPElement bg = bd.addChildElement(env.createName("query","ans1","syniverse:uniroam"));
SOAPElement be = bg.addChildElement(env.createName("UNIRequest_1"));
be.addChildElement("companyId").addTextNode("3740").setAttribute("xsi:type","xsd:string");
be.addChildElement("dataFlag").addTextNode("N").setAttribute("xsi:type","xsd:string");
be.addChildElement("direction").addTextNode("IG").setAttribute("xsi:type","xsd:string");
be.addChildElement("min").addTextNode("1623567780").setAttribute("xsi:type","xsd:string");
be.addChildElement("subGroup").addTextNode("37").setAttribute("xsi:type","xsd:string");
out.println("<br>1...");
msg.saveChanges();
Thanks & Regards<br />Sunesh Kumar Baachu