This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Web Services and the fly likes during saving a multipart message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Web Services
Bookmark "during saving a multipart message " Watch "during saving a multipart message " New topic
Author

during saving a multipart message

Sunesh Kumar
Ranch Hand

Joined: Oct 17, 2005
Posts: 89
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
Sunesh Kumar
Ranch Hand

Joined: Oct 17, 2005
Posts: 89
Friends,

kindly help me out!!!
 
GeeCON Prague 2014
 
subject: during saving a multipart message