Package org.apache.axis2.om

Examples of org.apache.axis2.om.OMFactory


* To change this template use File | Settings | File Templates.
*/
public class EchoMultipleFaults3Clientutil implements SunGroupHClientUtil{
    public OMElement getEchoOMElement() {

        OMFactory fac = OMAbstractFactory.getOMFactory();

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

        OMElement method = fac.createOMElement("echoMultipleFaults3", 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);

        OMNamespace xsiNs = method.declareNamespace("http://www.w3.org/2001/XMLSchema-instance","xsi");
        OMNamespace ns2 = method.declareNamespace("http://soapinterop.org/types","ns2");
        method.declareNamespace("http://schemas.xmlsoap.org/wsdl/","wsdl");

        OMElement value = fac.createOMElement("whichFault", null);
        method.addChild(value);
        OMElement value1 = fac.createOMElement("param1", null);
        OMElement value2 = fac.createOMElement("param2", null);



        value.addChild(fac.createText(value, "3"));
        value1.addChild(fac.createText(value1, "param 1"));
        value2.addChild(fac.createText(value2, "Param 2"));





View Full Code Here


public class EchoEmptyFaultClientUtil implements SunGroupHClientUtil{


    public OMElement getEchoOMElement() {

        OMFactory fac = OMAbstractFactory.getOMFactory();

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

        OMElement method = fac.createOMElement("echoEmptyFault", 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);

View Full Code Here

* To change this template use File | Settings | File Templates.
*/
public class EchoMultipleFaults4ClientUtil implements SunGroupHClientUtil{
    public OMElement getEchoOMElement() {

        OMFactory fac = OMAbstractFactory.getOMFactory();

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

        OMElement method = fac.createOMElement("echoMultipleFaults4", 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 value = fac.createOMElement("whichFault", null);
        method.addChild(value);
        OMElement value1 = fac.createOMElement("param1", null);
        OMElement value2 = fac.createOMElement("param2", null);



        value.addChild(fac.createText(value, "3"));
        value1.addChild(fac.createText(value1, "1"));
        value2.addChild(fac.createText(value2, "8"));





View Full Code Here

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

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

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

        OMElement method = fac.createOMElement("echoStringFault", 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 value = fac.createOMElement("param", null);

        value.addChild(fac.createText(value, "Axis2 Echo String "));

        method.addChild(value);

        return method;
    }
View Full Code Here

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 value = fac.createOMElement("whichFault", null);
        OMElement value1 = fac.createOMElement("param1", null);
        OMElement value2 = fac.createOMElement("param2", null);
        OMElement value3 = fac.createOMElement("Item", null);
        OMElement value4 = fac.createOMElement("Item", null);
        OMElement value5 = fac.createOMElement("Item", null);



        value.addChild(fac.createText(value, "10"));
        value1.addChild(fac.createText(value1, "hi"));
        value3.addChild(fac.createText(value3, "1.0"));
        value4.addChild(fac.createText(value4, "20.6"));
        value5.addChild(fac.createText(value5, "2.6"));

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

import org.apache.axis2.om.OMNamespace;

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);
//        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:soap-enc","http://schemas.xmlsoap.org/soap/encoding/", null);
//        method.addAttribute("xmlns:wsdl","http://schemas.xmlsoap.org/wsdl/", null);

        OMElement value = fac.createOMElement("whichFault", null);
        OMElement value1 = fac.createOMElement("param1", null);
        OMElement value2 = fac.createOMElement("param2", null);
        OMElement value3 = fac.createOMElement("param3", null);

        OMElement value4 = fac.createOMElement("Item", null);
        OMElement value5 = fac.createOMElement("Item", null);
       OMElement value6 = fac.createOMElement("Item", null);


//        value.addAttribute("xsi:type", "xsd:int", null);
//        value1.addAttribute("xsi:type", "xsd:string", null);
//

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

        value.addChild(fac.createText(value, "10"));
        value1.addChild(fac.createText(value1, "hi"));
        value2.addChild(fac.createText(value3, "0.236"));
        value4.addChild(fac.createText(value4, "String1"));
        value5.addChild(fac.createText(value5, "String2"));
        value6.addChild(fac.createText(value6, "String3"));

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

import org.apache.axis2.om.OMFactory;
import org.apache.axis2.om.OMNamespace;

public class EchoMultipleFaults3Clientutil implements WhitemesaR4ClientUtil{
    public OMElement getEchoOMElement() {
        OMFactory fac = OMAbstractFactory.getOMFactory();

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

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


        OMElement value = fac.createOMElement("whichFault", null);
        OMElement value1 = fac.createOMElement("param1", null);
        OMElement value2 = fac.createOMElement("param2", null);




        value.addChild(fac.createText(value, "10"));
        value1.addChild(fac.createText(value1, "hi"));
        value2.addChild(fac.createText(value2, "hello"));

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

import org.apache.axis2.om.OMNamespace;

public class EchoEmptyFaultClientUtil implements WhitemesaR4ClientUtil {

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

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

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

        return method;
    }
View Full Code Here

import org.apache.axis2.om.OMFactory;
import org.apache.axis2.om.OMNamespace;

public class EchoMultipleFaults4ClientUtil implements WhitemesaR4ClientUtil{
    public OMElement getEchoOMElement() {
        OMFactory fac = OMAbstractFactory.getOMFactory();

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

        OMElement method = fac.createOMElement("echoMultipleFaults4", 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:soap-enc", "http://schemas.xmlsoap.org/soap/encoding/", null);
//        method.addAttribute("xmlns:wsdl", "http://schemas.xmlsoap.org/wsdl/", null);

        OMElement value = fac.createOMElement("whichFault", null);
        OMElement value1 = fac.createOMElement("param1", null);
        OMElement value2 = fac.createOMElement("param2", null);

//        value.addAttribute("xsi:type", "xsd:int", null);
//        value1.addAttribute("xsi:type", "xsd:int", null);
//        value2.addAttribute("xsi:type", "ns2:Enum", null);

        value.addChild(fac.createText(value, "10"));
        value1.addChild(fac.createText(value1, "11"));
        value2.addChild(fac.createText(value2, "1"));


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

import org.apache.axis2.om.OMNamespace;

public class EchoStringFaultClientUtil implements WhitemesaR4ClientUtil {

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

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


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


        value.addChild(fac.createText(value, "Axis2 Echo String "));

        method.addChild(value);

        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.