Examples of BSConfigRequest


Examples of org.apache.stonehenge.stocktrader.config.xsd.BSConfigRequest

  }

  public TradeOrderConfig getTradeOrderConfig() throws RemoteException {
    Config_svcStub stub = new Config_svcStub(prop.getProperty(SERVICE_URL));
    BSConfigRequestE configRequestE = new BSConfigRequestE();
    BSConfigRequest param = new BSConfigRequest();
    param.setBS("JAVA_BS");
    configRequestE.setBSConfigRequest(param);
    BSConfigResponseE configResponseE = stub.bSConfigRequest(configRequestE);
    BSConfigResponse configResponse = configResponseE.getBSConfigResponse();
    TradeOrderConfig config = new TradeOrderConfig();
    config.setEndpointURL(configResponse.getOPS().toString());
View Full Code Here

Examples of org.apache.stonehenge.stocktrader.config.xsd.BSConfigRequest

        *                If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
        * Postcondition: If this object is an element, the reader is positioned at its end element
        *                If this object is a complex type, the reader is positioned at the end element of its outer element
        */
        public static BSConfigRequest parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
            BSConfigRequest object =
                new BSConfigRequest();

            int event;
            java.lang.String nillableValue = null;
            java.lang.String prefix ="";
            java.lang.String namespaceuri ="";
            try {
               
                while (!reader.isStartElement() && !reader.isEndElement())
                    reader.next();

               
                if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
                  java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
                        "type");
                  if (fullTypeName!=null){
                    java.lang.String nsPrefix = null;
                    if (fullTypeName.indexOf(":") > -1){
                        nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
                    }
                    nsPrefix = nsPrefix==null?"":nsPrefix;

                    java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
                   
                            if (!"BSConfigRequest".equals(type)){
                                //find namespace for the prefix
                                java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
                                return (BSConfigRequest)org.apache.stonehenge.stocktrader.config.xsd.ExtensionMapper.getTypeObject(
                                     nsUri,type,reader);
                              }
                       

                  }
               

                }

               

               
                // Note all attributes that were handled. Used to differ normal attributes
                // from anyAttributes.
                java.util.Vector handledAttributes = new java.util.Vector();
               

                
                   
                    reader.next();
               
                                   
                                    while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
                               
                                    if (reader.isStartElement() && new javax.xml.namespace.QName("http://apache.org/stonehenge/stocktrader/xsd","BS").equals(reader.getName())){
                               
                                    java.lang.String content = reader.getElementText();
                                   
                                              object.setBS(
                                                    org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
                                             
                                        reader.next();
                                   
                              // End of if for expected property start element
View Full Code Here

Examples of org.datacontract.schemas._2004._07.trade.BSConfigRequest

        GetClientConfigResponse clientConfigResponse = service.getClientConfig(getClientConfig);
        ClientConfigResponse clientresponse = clientConfigResponse.getGetClientConfigResult();
        String bsName = clientresponse.getBSName();

        GetBSConfig getBSConfig = new GetBSConfig();
        BSConfigRequest configRequest = new BSConfigRequest();
        configRequest.setBSName(bsName);
        getBSConfig.setBs(configRequest);
        GetBSConfigResponse getBSConfigResponse = service.getBSConfig(getBSConfig);
        BSConfigResponse response = getBSConfigResponse.getGetBSConfigResult();

        TradeOrderConfig config = new TradeOrderConfig();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.