Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

during saving a multipart message

 
Sunesh Kumar
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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();
 
Sunesh Kumar
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Friends,

kindly help me out!!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic