* To change this template use File | Settings | File Templates.
*/
public class Round2Soap12EchoStructArrayClientUtil implements SunRound2ClientUtil {
public SOAPEnvelope getEchoSoapEnvelope() {
SOAPFactory omfactory = OMAbstractFactory.getSOAP12Factory();
SOAPEnvelope reqEnv = omfactory.createSOAPEnvelope();
//reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/", "soapenv");
//reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/", "xmlns");
//reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/soap/", "soap");
reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema", "xsd");
reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/", "SOAP-ENC");
reqEnv.declareNamespace("http://soapinterop.org/", "tns");
reqEnv.declareNamespace("http://soapinterop.org/xsd", "s");
//reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/", "wsdl");
reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance","xsi");
OMElement operation = omfactory.createOMElement("echoStructArray", "http://soapinterop.org/", null);
SOAPBody body = omfactory.createSOAPBody(reqEnv);
body.addChild(operation);
operation.addAttribute("soapenv:encodingStyle", "http://www.w3.org/2003/05/soap-encoding", null);
OMElement part = omfactory.createOMElement("inputStructArray", "", null);
part.addAttribute("xsi:type", "SOAP-ENC:Array", null);
part.addAttribute("SOAP-ENC:arrayType", "s:SOAPStruct[3]", null);
OMElement item0 = omfactory.createOMElement("item0", null);
OMElement value00 = omfactory.createOMElement("varString", "", null);
value00.addAttribute("xsi:type", "xsd:string", null);
value00.addChild(omfactory.createText("strss fdfing1"));
OMElement value01 = omfactory.createOMElement("varInt", "", null);
value01.addAttribute("xsi:type", "xsd:int", null);
value01.addChild(omfactory.createText("25"));
OMElement value02 = omfactory.createOMElement("varFloat", "", null);
value02.addAttribute("xsi:type", "xsd:float", null);
value02.addChild(omfactory.createText("25.23"));
OMElement item1 = omfactory.createOMElement("item0", null);
OMElement value10 = omfactory.createOMElement("varString", "", null);
value10.addAttribute("xsi:type", "xsd:string", null);
value10.addChild(omfactory.createText("strss fdfing1"));
OMElement value11 = omfactory.createOMElement("varInt", "", null);
value11.addAttribute("xsi:type", "xsd:int", null);
value11.addChild(omfactory.createText("25"));
OMElement value12 = omfactory.createOMElement("varFloat", "", null);
value12.addAttribute("xsi:type", "xsd:float", null);
value12.addChild(omfactory.createText("25.23"));
OMElement item2 = omfactory.createOMElement("item0", null);
OMElement value20 = omfactory.createOMElement("varString", "", null);
value20.addAttribute("xsi:type", "xsd:string", null);
value20.addChild(omfactory.createText("strss fdfing1"));
OMElement value21 = omfactory.createOMElement("varInt", "", null);
value21.addAttribute("xsi:type", "xsd:int", null);
value21.addChild(omfactory.createText("25"));
OMElement value22 = omfactory.createOMElement("varFloat", "", null);
value22.addAttribute("xsi:type", "xsd:float", null);
value22.addChild(omfactory.createText("25.23"));
item0.addChild(value00);
item0.addChild(value01);
item0.addChild(value02);