Package org.apache.axis2.om

Examples of org.apache.axis2.om.OMFactory


public class EchoIntArrayFaultClientUtil implements WhitemesaR4ClientUtil {


    public OMElement getEchoOMElement() {
        OMFactory fac = OMAbstractFactory.getOMFactory();

        OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");

        OMElement method = fac.createOMElement("echoIntArrayFault", omNs);
        method.addAttribute("soapenv:encodingStyle","http://schemas.xmlsoap.org/soap/encoding/",null);
      

        OMElement value1 = fac.createOMElement("param", null);
        OMElement value2=fac.createOMElement("Item",null);
        OMElement value3=fac.createOMElement("Item",null);
        OMElement value4=fac.createOMElement("Item",null);


        value1.addAttribute("soapenc:arrayType","nsa:int[3]",null);
         value1.addAttribute("soapenc:offset","[0]",null);
        value1.addAttribute("xmlns:soapenc","http://schemas.xmlsoap.org/soap/encoding/",null);
       value1.addAttribute("xmlns:nsa","http://www.w3.org/2001/XMLSchema",null);


        value2.addChild(fac.createText(value2, "10"));
        value3.addChild(fac.createText(value3, "11"));
        value4.addChild(fac.createText(value4, "1"));

        value1.addChild(value2);
        value1.addChild(value3);
        value1.addChild(value4);
View Full Code Here


public class EchoSOAPStructFaultClientUtil implements WhitemesaR4ClientUtil{

    public OMElement getEchoOMElement() {

        OMFactory fac = OMAbstractFactory.getOMFactory();

        OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");

        OMElement method = fac.createOMElement("echoSOAPStructFault", omNs);
        method.addAttribute("soapenv:encodingStyle","http://schemas.xmlsoap.org/soap/encoding/",null);
        method.addAttribute("xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance",null);

        method.addAttribute("xmlns:ns2", "http://soapinterop.org/types", null);
        method.addAttribute("xmlns:wsdl", "http://schemas.xmlsoap.org/wsdl/", null);

        OMElement value1 = fac.createOMElement("param", null);
        OMElement value2 = fac.createOMElement("soapStruct", null);
        OMElement value3 = fac.createOMElement("varString", null);
        OMElement value4 = fac.createOMElement("varInt", null);
        OMElement value5 = fac.createOMElement("varFloat", null);


        value3.addChild(fac.createText(value3, "hi"));
        value4.addChild(fac.createText(value4, "10"));
        value5.addChild(fac.createText(value5, "5.3"));

                                 
        value2.addChild(value5);
        value2.addChild(value4);
        value2.addChild(value3);
View Full Code Here

public class EchoExtendedStructFaultClientUtil implements WhitemesaR4ClientUtil{
   
    public OMElement getEchoOMElement() {

        OMFactory fac = OMAbstractFactory.getOMFactory();
        OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");

        OMElement method = fac.createOMElement("echoExtendedStructFault", omNs);
        method.addAttribute("soapenv:encodingStyle","http://schemas.xmlsoap.org/soap/encoding/",null);


        OMElement value1 = fac.createOMElement("param", null);
        OMElement value2=fac.createOMElement("floatMessage",null);
        OMElement value3=fac.createOMElement("shortMessage",null);
        OMElement value4=fac.createOMElement("stringMessage",null);
        OMElement value5=fac.createOMElement("intMessage",null);
        OMElement value6=fac.createOMElement("anotherIntMessage",null);



        value2.addChild(fac.createText(value2, ".023"));
        value3.addChild(fac.createText(value3, "1.3"));
        value4.addChild(fac.createText(value4, "hi"));
        value5.addChild(fac.createText(value5, "6"));
        value6.addChild(fac.createText(value6, "78"));



        value1.addChild(value2);
        value1.addChild(value3);
View Full Code Here

public class EchoBaseStructFaultClientutil implements WhitemesaR4ClientUtil{

    public OMElement getEchoOMElement() {

        OMFactory fac = OMAbstractFactory.getOMFactory();

        OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");

        OMElement method = fac.createOMElement("echoBaseStructFault", omNs);
        method.addAttribute("soapenv:encodingStyle","http://schemas.xmlsoap.org/soap/encoding/",null);
        method.addAttribute("xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance",null);
        method.addAttribute("xmlns:xsd","http://www.w3.org/2001/XMLSchema",null);
        method.addAttribute("xmlns:ns2", "http://soapinterop.org/types", null);
        method.addAttribute("xmlns:wsdl", "http://schemas.xmlsoap.org/wsdl/", null);


        OMElement value1 = fac.createOMElement("param", null);
        OMElement value2=fac.createOMElement("floatMessage",null);
        OMElement value3=fac.createOMElement("shortMessage ",null);

        value2.addChild(fac.createText(value2, "10.3"));
        value3.addChild(fac.createText(value3, "1.55"));


        value1.addChild(value2);
        value1.addChild(value3);
        method.addChild(value1);
View Full Code Here

import org.apache.axis2.om.OMNamespace;
public class EchoMultipleFaults1ClientUtil implements WhitemesaR4ClientUtil{

    public OMElement getEchoOMElement() {

        OMFactory fac = OMAbstractFactory.getOMFactory();

        OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");

        OMElement method = fac.createOMElement("echoMultipleFaults1", omNs);
        method.addAttribute("soapenv:encodingStyle","http://schemas.xmlsoap.org/soap/encoding/",null);

        OMElement value1 = fac.createOMElement("whichFault", null);
        OMElement value2=fac.createOMElement("param1",null);
        OMElement value3=fac.createOMElement("param2",null);
        OMElement value4 = fac.createOMElement("varInt", null);
        OMElement value5=fac.createOMElement("varFloat",null);
        OMElement value6=fac.createOMElement("varString",null);
        OMElement value7 = fac.createOMElement("floatMessage", null);
        OMElement value8=fac.createOMElement("shortMessage",null);

        value1.addChild(fac.createText(value1, "10"));
        value4.addChild(fac.createText(value4, "1"));
        value5.addChild(fac.createText(value5, "1.0"));
        value6.addChild(fac.createText(value6, "hi"));
        value7.addChild(fac.createText(value7, "0.23"));
        value8.addChild(fac.createText(value8, "45"));


        value2.addChild(value4);
        value2.addChild(value5);
        value2.addChild(value6);
View Full Code Here

public class EchoMultipleFaults2ClientUtil implements WhitemesaR4ClientUtil{

    public OMElement getEchoOMElement() {

        OMFactory fac = OMAbstractFactory.getOMFactory();

        OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");

        OMElement method = fac.createOMElement("echoMultipleFaults2", omNs);
        method.addAttribute("soapenv:encodingStyle","http://schemas.xmlsoap.org/soap/encoding/",null);

        OMElement value1 = fac.createOMElement("whichFault", null);
        OMElement value2=fac.createOMElement("param1",null);
        OMElement value3=fac.createOMElement("param2",null);
        OMElement value4=fac.createOMElement("param3",null);
        OMElement value5 = fac.createOMElement("floatMessage", null);
        OMElement value6=fac.createOMElement("shortMessage",null);
        OMElement value7=fac.createOMElement("floatMessage",null);
        OMElement value8=fac.createOMElement("shortMessage",null);
        OMElement value9 = fac.createOMElement("stringMessage", null);
        OMElement value10=fac.createOMElement("intMessage",null);
        OMElement value11=fac.createOMElement("anotherIntMessage",null);
        OMElement value12=fac.createOMElement("floatMessage",null);
        OMElement value13=fac.createOMElement("shortMessage",null);
        OMElement value14=fac.createOMElement("stringMessage",null);
        OMElement value15=fac.createOMElement("intMessage",null);
        OMElement value16=fac.createOMElement("anotherIntMessage",null);
        OMElement value17=fac.createOMElement("booleanMessage",null);


        value1.addChild(fac.createText(value1, "1"));
        value5.addChild(fac.createText(value5, "0.10"));
        value6.addChild(fac.createText(value6, "10"));
        value7.addChild(fac.createText(value7, "0.210"));
        value8.addChild(fac.createText(value8, "10"));
        value9.addChild(fac.createText(value9, "hi"));
        value10.addChild(fac.createText(value10, "10"));
        value11.addChild(fac.createText(value11, "15"));
        value12.addChild(fac.createText(value12, "0.569"));
        value13.addChild(fac.createText(value13, "10"));
        value14.addChild(fac.createText(value14, "Nadana"));
        value15.addChild(fac.createText(value15, "14"));
        value16.addChild(fac.createText(value16, "89"));
        value17.addChild(fac.createText(value17, "1"));

        value2.addChild(value5);
        value2.addChild(value6);
        value3.addChild(value7);
        value3.addChild(value8);
View Full Code Here

public class EchoBaseStructFaultClientutil implements SunGroupHClientUtil{

    public OMElement getEchoOMElement() {


        OMFactory fac = OMAbstractFactory.getOMFactory();

        OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "mns");

        OMElement method = fac.createOMElement("echoBaseStructFault", omNs);
        OMNamespace soapEnvNS = method.declareNamespace(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI,
                SOAP11Constants.SOAP_DEFAULT_NAMESPACE_PREFIX);
        method.addAttribute("encodingStyle", "http://schemas.xmlsoap.org/soap/encoding/", soapEnvNS);



        OMElement value1 = fac.createOMElement("param", null);
        method.addChild(value1);

        OMElement value2 = fac.createOMElement("floatMessage", null);
        OMElement value3 = fac.createOMElement("shortMessage ", null);

        value1.addChild(value2);
        value1.addChild(value3);
        method.addChild(value1);

        value2.addChild(fac.createText(value2, "10.3"));
        value3.addChild(fac.createText(value3, "1"));

        return method;
    }
View Full Code Here

*/
public class EchoMultipleFaults1ClientUtil implements SunGroupHClientUtil{

    public OMElement getEchoOMElement() {

        OMFactory fac = OMAbstractFactory.getOMFactory();

        OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");

        OMElement method = fac.createOMElement("echoMultipleFaults1", omNs);
        OMNamespace soapEnvNS = method.declareNamespace(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI,
                SOAP11Constants.SOAP_DEFAULT_NAMESPACE_PREFIX);
        method.addAttribute("encodingStyle", "http://schemas.xmlsoap.org/soap/encoding/", soapEnvNS);

        OMElement value1 = fac.createOMElement("whichFault", null);
        method.addChild(value1);


        OMElement value2 = fac.createOMElement("param1", null);
        OMElement value3 = fac.createOMElement("varInt", null);
        OMElement value4 = fac.createOMElement("varFloat", null);
        OMElement value5 = fac.createOMElement("varString", null);
        OMElement value6 = fac.createOMElement("param2", null);
        OMElement value7 = fac.createOMElement("floatMessage", null);
        OMElement value8 = fac.createOMElement("shortMessage", null);


        value2.addChild(value3);
        value2.addChild(value4);
        value2.addChild(value5);

        value6.addChild(value7);
        value6.addChild(value8);


        method.addChild(value2);
        method.addChild(value6);

        value1.addChild(fac.createText(value1, "1"));
        value3.addChild(fac.createText(value3, "210"));
        value4.addChild(fac.createText(value4, "0.256"));
        value5.addChild(fac.createText(value5, "hi"));
        value7.addChild(fac.createText(value7, "0.569"));
        value8.addChild(fac.createText(value8, "56"));



        return method;

View Full Code Here

* To change this template use File | Settings | File Templates.
*/
public class EchoMultipleFaults2ClientUtil implements SunGroupHClientUtil{

    public OMElement getEchoOMElement() {
        OMFactory fac = OMAbstractFactory.getOMFactory();

        OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");

        OMElement method = fac.createOMElement("echoMultipleFaults2", omNs);
        OMNamespace soapEnvNS = method.declareNamespace(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI,
                SOAP11Constants.SOAP_DEFAULT_NAMESPACE_PREFIX);
        method.addAttribute("encodingStyle", "http://schemas.xmlsoap.org/soap/encoding/", soapEnvNS);



        OMElement value1 = fac.createOMElement("whichFault", null);
        method.addChild(value1);


        OMElement value2 = fac.createOMElement("param1", null);

        OMElement value3 = fac.createOMElement("floatMessage", null);
        OMElement value4 = fac.createOMElement("shortMessage", null);
        OMElement value5 = fac.createOMElement("param2", null);
        OMElement value6 = fac.createOMElement("floatMessage", null);
        OMElement value7 = fac.createOMElement("shortMessage", null);
        OMElement value8 = fac.createOMElement("stringMessage", null);
        OMElement value9 = fac.createOMElement("intMessage", null);
        OMElement value10 = fac.createOMElement("anotherIntMessage", null);
        OMElement value11 = fac.createOMElement("param3", null);
        OMElement value12 = fac.createOMElement("floatMessage", null);
        OMElement value13 = fac.createOMElement("shortMessage", null);
        OMElement value14 = fac.createOMElement("stringMessage", null);
        OMElement value15 = fac.createOMElement("intMessage", null);
        OMElement value16 = fac.createOMElement("anotherIntMessage", null);
        OMElement value17 = fac.createOMElement("booleanMessage", null);


        value2.addChild(value3);
        value2.addChild(value4);
        value5.addChild(value6);
        value5.addChild(value7);
        value5.addChild(value8);
        value5.addChild(value9);
        value5.addChild(value10);
        value11.addChild(value12);
        value11.addChild(value13);
        value11.addChild(value14);
        value11.addChild(value15);
        value11.addChild(value16);
        value11.addChild(value17);


        method.addChild(value2);
        method.addChild(value5);
        method.addChild(value11);


        value1.addChild(fac.createText(value1, "2"));
        value3.addChild(fac.createText(value3, "0.21"));
        value4.addChild(fac.createText(value4, "6"));
        value6.addChild(fac.createText(value6, "0.555"));
        value7.addChild(fac.createText(value7, "9"));
        value8.addChild(fac.createText(value8, "hi"));
        value9.addChild(fac.createText(value9, "10"));

        value10.addChild(fac.createText(value10, "20"));

        value12.addChild(fac.createText(value12, "0.111"));

        value13.addChild(fac.createText(value13, "11"));

        value14.addChild(fac.createText(value14, "hi"));
        value15.addChild(fac.createText(value15, "8"));
        value16.addChild(fac.createText(value16, "9"));
        value17.addChild(fac.createText(value17, "1"));

        return method;
    }
View Full Code Here

*/
public class EchoSOAPStructFaultClientUtil implements SunGroupHClientUtil{

    public OMElement getEchoOMElement() {

        OMFactory fac = OMAbstractFactory.getOMFactory();

        OMNamespace omNs = fac.createOMNamespace("http://soapinterop.org/wsdl", "m");

        OMElement method = fac.createOMElement("echoSOAPStructFault", omNs);
        OMNamespace soapEnvNS = method.declareNamespace(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI,
                SOAP11Constants.SOAP_DEFAULT_NAMESPACE_PREFIX);
        method.addAttribute("encodingStyle", "http://schemas.xmlsoap.org/soap/encoding/", soapEnvNS);


        OMElement value1 = fac.createOMElement("param", null);
        method.addChild(value1);


        OMElement value2 = fac.createOMElement("soapStruct", null);
        OMElement value3 = fac.createOMElement("varInt", null);
        OMElement value4 = fac.createOMElement("varFloat", null);
        OMElement value5 = fac.createOMElement("varString", null);


        value2.addChild(value3);
        value2.addChild(value4);
        value2.addChild(value5);

        value1.addChild(value2);
        value3.addChild(fac.createText(value3, "10"));
        value4.addChild(fac.createText(value4, "0.568"));
        value5.addChild(fac.createText(value5, "Hi"));

        return method;
    }
View Full Code Here

TOP

Related Classes of org.apache.axis2.om.OMFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.