It's not a secret anymore!*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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!!!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: during saving a multipart message
 
Similar Threads
Soap Envelope not version 1.1
Have a question about accessing the SOAP response via VBA client.
SOAPTextElement in my SOAPBody
WSAD 5.1.1 SOAP RPC return type of Object[]
SOAP request processing