• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

during saving a multipart message

 
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Friends,

kindly help me out!!!
 
reply
    Bookmark Topic Watch Topic
  • New Topic