Package org.apache.axis.wsdl.gen

Examples of org.apache.axis.wsdl.gen.Parser


    private PortTypeEntry portTypeEntry;
  private ArrayList methods; 

    public WSDL2Ws(CLArgParser cmdLineArgs) throws WrapperFault {
        try {
            Parser wsdlParser = new Parser();
            //get the commandline arguments
            String wsdlfile = cmdLineArgs.getArgument(0);
            wsdlParser.run(wsdlfile);

            symbolTable = wsdlParser.getSymbolTable();
           
            //get the target namespace
      targetNameSpaceOfWSDL = symbolTable.getDefinition().getTargetNamespace();
        } catch (Exception e) {
            e.printStackTrace();
View Full Code Here


    public WSDL2Ws(CLArgParser cmdLineArgs) throws WrapperFault
    {
        try
        {
            Parser wsdlParser = new Parser();
            //get the commandline arguments
            String wsdlfile = cmdLineArgs.getArgument(0);
            wsdlParser.run(wsdlfile);

            symbolTable = wsdlParser.getSymbolTable();

            //get the target namespace
            targetNameSpaceOfWSDL =
                symbolTable.getDefinition().getTargetNamespace();
        }
View Full Code Here

    private PortTypeEntry portTypeEntry;
  private ArrayList methods; 

    public WSDL2Ws(CLArgParser cmdLineArgs) throws WrapperFault {
        try {
            Parser wsdlParser = new Parser();
            //get the commandline arguments
            String wsdlfile = cmdLineArgs.getArgument(0);
            wsdlParser.run(wsdlfile);

            symbolTable = wsdlParser.getSymbolTable();
           
            //get the target namespace
      targetNameSpaceOfWSDL = symbolTable.getDefinition().getTargetNamespace();
        } catch (Exception e) {
            e.printStackTrace();
View Full Code Here

     *
     * @throws Exception
     */
    public DynamicInvoker(String wsdlURL) throws Exception {
        // Start by reading in the WSDL using Parser
        wsdlParser = new Parser();
        System.out.println("Reading WSDL document from '" + wsdlURL + "'");
        wsdlParser.run(wsdlURL);
    }
View Full Code Here

    private PortTypeEntry portTypeEntry;
  private ArrayList methods; 

    public WSDL2Ws(CLArgParser cmdLineArgs) throws WrapperFault {
        try {
            Parser wsdlParser = new Parser();
            //get the commandline arguments
            String wsdlfile = cmdLineArgs.getArgument(0);
            wsdlParser.run(wsdlfile);

            symbolTable = wsdlParser.getSymbolTable();
           
            //get the target namespace
      targetNameSpaceOfWSDL = symbolTable.getDefinition().getTargetNamespace();
        } catch (Exception e) {
            e.printStackTrace();
View Full Code Here

    public WSDL2Ws(CLArgParser cmdLineArgs) throws WrapperFault
    {
        try
        {
            Parser wsdlParser = new Parser();
            //get the commandline arguments
            String wsdlfile = cmdLineArgs.getArgument(0);
            wsdlParser.run(wsdlfile);

            symbolTable = wsdlParser.getSymbolTable();

            //get the target namespace
            targetNameSpaceOfWSDL =
                symbolTable.getDefinition().getTargetNamespace();
        }
View Full Code Here

    protected Service createService(MuleEvent event) throws Exception
    {
        String wsdlUrl = endpoint.getEndpointURI().getAddress();
        // Parse the wsdl
        Parser parser = new Parser();
        if (endpoint.getEndpointURI().getUserInfo() != null)
        {
            parser.setUsername(endpoint.getEndpointURI().getUser());
            parser.setPassword(endpoint.getEndpointURI().getPassword());
        }
        parser.run(wsdlUrl);
        // Retrieves the defined services
        Map map = parser.getSymbolTable().getHashMap();
        List entries = new ArrayList();
        for (Iterator it = map.entrySet().iterator(); it.hasNext();)
        {
            Map.Entry entry = (Map.Entry)it.next();
            Vector v = (Vector)entry.getValue();
            for (Iterator it2 = v.iterator(); it2.hasNext();)
            {
                SymTabEntry e = (SymTabEntry)it2.next();
                if (ServiceEntry.class.isInstance(e))
                {
                    entries.add(entry.getKey());
                }
            }
        }
        // Currently, only one service should be defined
        if (entries.size() != 1)
        {
            throw new Exception("Need one and only one service entry, found " + entries.size());
        }
        // Create the axis service
        Service service = new Service(parser, (QName)entries.get(0));

        service.setEngineConfiguration(clientConfig);
        service.setEngine(new AxisClient(clientConfig));

        // Really the Axis Client service should set this stuff
        event.getMessage().setOutboundProperty(SoapConstants.METHOD_NAMESPACE_PROPERTY,
                                               parser.getCurrentDefinition().getTargetNamespace());
        // Todo how can we autogenerate the named params from the WSDL?
        return service;
    }
View Full Code Here

    private TypeMap typeMap;

    public WSDL2Ws(CLArgParser cmdLineArgs) throws WrapperFault {
        try {
            typeMap = new TypeMap();
            Parser wsdlParser = new Parser();
            //get the commandline arguments
            String wsdlfile = cmdLineArgs.getArgument(0);
            wsdlParser.run(wsdlfile);

            symbolTable = wsdlParser.getSymbolTable();
            // symbolTable.dump(System.out);
           
            //get the target namespace
      targetNameSpaceOfWSDL = symbolTable.getDefinition().getTargetNamespace();
            porttype = this.getWebServiceInfo();
View Full Code Here

  private ArrayList methods; 

   
    public WSDL2Ws(CLArgParser cmdLineArgs) throws WrapperFault {
        try {
            Parser wsdlParser = new Parser();
            //get the commandline arguments
            String wsdlfile = cmdLineArgs.getArgument(0);
            wsdlParser.run(wsdlfile);

            symbolTable = wsdlParser.getSymbolTable();
           
            //get the target namespace
      targetNameSpaceOfWSDL = symbolTable.getDefinition().getTargetNamespace();
        } catch (Exception e) {
            e.printStackTrace();
View Full Code Here

  private ArrayList methods; 

   
    public WSDL2Ws(CLArgParser cmdLineArgs) throws WrapperFault {
        try {
            Parser wsdlParser = new Parser();
            //get the commandline arguments
            String wsdlfile = cmdLineArgs.getArgument(0);
            wsdlParser.run(wsdlfile);

            symbolTable = wsdlParser.getSymbolTable();
           
            //get the target namespace
      targetNameSpaceOfWSDL = symbolTable.getDefinition().getTargetNamespace();
        } catch (Exception e) {
            e.printStackTrace();
View Full Code Here

TOP

Related Classes of org.apache.axis.wsdl.gen.Parser

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.