Package org.apache.axis.handlers.soap

Examples of org.apache.axis.handlers.soap.SOAPService


     * @return XXX
     * @throws ConfigurationException XXX
     */
    public SOAPService getService(QName qname) throws ConfigurationException
    {
      SOAPService service = deployment.getService(qname);
      if (service == null)
      {
        throw new ConfigurationException(Messages.getMessage("noService10",
          qname.toString()));
      }
View Full Code Here


        JavaServiceDesc serviceDesc = serviceInfo.getServiceDesc();

        targetGBean.setAttribute("pojoClassName", servletClassName);
        RPCProvider provider = new POJOProvider();

        SOAPService service = new SOAPService(null, provider, null);
        service.setServiceDescription(serviceDesc);
        service.setOption("className", servletClassName);

        HandlerInfoChainFactory handlerInfoChainFactory = new HandlerInfoChainFactory(serviceInfo.getHandlerInfos());
        service.setOption(org.apache.axis.Constants.ATTR_HANDLERINFOCHAIN, handlerInfoChainFactory);

        URI location;
        try {
            location = new URI(serviceDesc.getEndpointURL());
        } catch (URISyntaxException e) {
View Full Code Here

    * @throws AxisFault DOCUMENT_ME
    */
   public void generateWSDL( MessageContext msgContext )
   throws AxisFault
   {
      SOAPService service = msgContext.getService(  );
      LOG.debug(MSG.getMessage(Keys.RECEIVED_WSDL_REQUEST, service.getName()));
      service.generateWSDL( msgContext );
   }
View Full Code Here

   }

   private void mergeServiceOptions( MessageContext msgContext )
   {
      org.apache.axis.MessageContext axisMsgContext = (org.apache.axis.MessageContext) msgContext;
      SOAPService                    service  = axisMsgContext.getService(  );
      Hashtable                      options  = service.getOptions(  );
      Iterator                       iterator = options.keySet(  ).iterator(  );

      while ( iterator.hasNext(  ) )
      {
         String key = (String) iterator.next(  );
         setProperty( key,
                      service.getOption( key ) );
      }
   }
View Full Code Here

    public void exposeClass( String serviceName,
                   String[] methodNames,
                             String className )
        throws AxisFault, ClassNotFoundException
    {
      SOAPService service = new SOAPService( new IvoryProvider() );
       
        initializeService( service, serviceName,
                           methodNames, className );
           
        getLogger().debug( "Exposed class " + className +
View Full Code Here

    public void exposeService(String serviceName,
                              String[] methodNames,
                              String role)
        throws AxisFault, ClassNotFoundException
    {
        SOAPService service = new SOAPService( new IvoryAvalonProvider() );
       
        initializeService( service, serviceName, methodNames, role );
           
        getLogger().debug( "Exposed service " + role +
                           " as " + serviceName + "." );
View Full Code Here

        String doc = (String) endpoint.getProperties().get("documentation");

        EndpointURI uri = endpoint.getEndpointURI();
        String serviceName = flowConstruct.getName();

        SOAPService existing = this.connector.getAxis().getService(serviceName);
        if (existing != null)
        {
            soapService = existing;
            logger.debug("Using existing service for " + serviceName);
        }
        else
        {
            // Check if the style is message. If so, we need to create
            // a message oriented provider
            if (style != null && style.equalsIgnoreCase("message"))
            {
                logger.debug("Creating Message Provider");
                soapService = new SOAPService(new MuleMsgProvider(connector));
                // } else if (style != null && style.equalsIgnoreCase("document")) {
                // logger.debug("Creating Doc Provider");
                // service = new SOAPService(new MuleDocLitProvider(connector));
            }
            else
            {
                logger.debug("Creating RPC Provider");
                soapService = new SOAPService(new MuleRPCProvider(connector));
            }

            soapService.setEngine(connector.getAxis());
        }
View Full Code Here

        msgContext.setProperty(HTTPConstants.MC_HTTP_SERVLET, this);
        msgContext.setProperty(HTTPConstants.MC_HTTP_SERVLETLOCATION, endpointUri.getPath());
        // determine service name
        String serviceName = getServiceName(context, endpointUri);
        // Validate Service path against request path
        SOAPService service = msgContext.getAxisEngine().getConfig().getService(
            new QName(serviceName.substring(1)));

        // if using jms or vm we can skip this
        String scheme = endpointUri.getScheme();
        if (!("vm".equalsIgnoreCase(scheme)
                        || "jms".equalsIgnoreCase(scheme)
                        || "servlet".equalsIgnoreCase(scheme)))
        {
            // Component Name is set by Mule so if its null we can skip this check
            if (service.getOption(AxisConnector.SERVICE_PROPERTY_COMPONENT_NAME) != null)
            {
                String servicePath = (String)service.getOption("servicePath");
                if (StringUtils.isEmpty(endpointUri.getPath()))
                {
                    if (!("/" + endpointUri.getAddress()).startsWith(servicePath + serviceName))
                    {
                        throw new AxisFault("Failed to find service: " + "/" + endpointUri.getAddress());
View Full Code Here

                    // We have to perform a small hack here to rewrite servlet://
                    // endpoints with the
                    // real http:// address
                    for (Iterator iterator = servletServices.iterator(); iterator.hasNext();)
                    {
                        SOAPService service = (SOAPService) iterator.next();
                        ServletConnector servletConnector = (ServletConnector) new TransportFactory(muleContext).getConnectorByProtocol("servlet");
                        String url = servletConnector.getServletUrl();
                        if (url != null)
                        {
                            service.getServiceDescription().setEndpointURL(url + "/" + service.getName());
                        }
                        else
                        {
                            logger.error("The servletUrl property on the ServletConntector has not been set this means that wsdl generation for service '"
                                    + service.getName() + "' may be incorrect");
                        }
                    }
                    servletServices.clear();
                }
            }
View Full Code Here

     * @return XXX
     * @throws ConfigurationException XXX
     */
    public SOAPService getService(QName qname) throws ConfigurationException
    {
      SOAPService service = deployment.getService(qname);
      if (service == null)
      {
        throw new ConfigurationException(Messages.getMessage("noService10",
          qname.toString()));
      }
View Full Code Here

TOP

Related Classes of org.apache.axis.handlers.soap.SOAPService

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.