Examples of AxisServer


Examples of org.apache.axis.server.AxisServer

    }

    public void testNoXsiTypes()
       throws Exception
    {
        MessageContext msgContext = new MessageContext(new AxisServer());
        ServiceDescription sd = new ServiceDescription("testXsiType", true);

        // Don't serialize xsi:type attributes
        sd.setSendTypeAttr(false);
View Full Code Here

Examples of org.apache.axis.server.AxisServer

        "</soap:Envelope>\n";

    public void testBodyNamespace() throws Exception {

       // setup
       AxisEngine engine = new AxisServer();
       engine.init();
       HandlerRegistry hr = engine.getHandlerRegistry();
       HandlerRegistry sr = engine.getServiceRegistry();
      
       // register the service with the engine
       Handler RPCDispatcher = hr.find("RPCDispatcher");
       SOAPService target = new SOAPService(RPCDispatcher);
       sr.add(namespace, target);
View Full Code Here

Examples of org.apache.axis.server.AxisServer



       // setup

       AxisEngine engine = new AxisServer();

       engine.init();

       MessageContext msgContext = new MessageContext(engine);

       Message message = new Message(request);
View Full Code Here

Examples of org.apache.axis.server.AxisServer

    public TestString(String name) {
        super(name);
    }

    private void runtest(String value, String expected) throws Exception {
        MessageContext msgContext = new MessageContext(new AxisServer());
        SOAPEnvelope msg = new SOAPEnvelope();
        RPCParam input = new RPCParam("urn:myNamespace", "testParam", value);
       
        RPCElement body = new RPCElement("urn:myNamespace", "method1", new Object[]{ input });
        msg.addBodyElement(body);
View Full Code Here

Examples of org.apache.axis.server.AxisServer

        AxisEngine engine;
        if ( args[0].equals("client") )
            engine = new AxisClient(new FileProvider("client-config.xml"));
        else
            engine = new AxisServer(new FileProvider("server-config.xml"));
        engine.init();
        MessageContext msgContext = new MessageContext(engine);

        try {
            for ( i = 1 ; i < args.length ; i++ ) {
View Full Code Here

Examples of org.apache.axis.server.AxisServer

    public TestSer(String name) {
        super(name);
    }

    public void testData() throws Exception {
        MessageContext msgContext = new MessageContext(new AxisServer());
        SOAPEnvelope msg = new SOAPEnvelope();
        RPCParam arg1 = new RPCParam("urn:myNamespace", "testParam", "this is a string");
       
        Data data = new Data();
        data.stringMember = "String member";
View Full Code Here

Examples of org.apache.axis.server.AxisServer

  }

  public void init()
  {
    ServiceClient.initialize();
    AxisServer server = new AxisServer();
    HandlerRegistry hr = (HandlerRegistry) server.getHandlerRegistry();
    Handler disp = hr.find("RPCDispatcher");   
    SOAPService service = new SOAPService(disp);
    service.addOption("className", "test.encoding.TestArrayListConversions");
    service.addOption("methodName", "*");
   
    server.deployService(SERVICE_NAME, service);
   
    client = new ServiceClient(new LocalTransport(server));
  }
View Full Code Here

Examples of org.apache.axis.server.AxisServer

public class TestSer
{
    public static final String myNS = "urn:myNS";
   
    public static void main(String args[]) {
        MessageContext msgContext = new MessageContext(new AxisServer());
        SOAPEnvelope msg = new SOAPEnvelope();
        RPCParam arg1 = new RPCParam("urn:myNamespace", "testParam", "this is a string");
        QName dataQName = new QName("typeNS", "Data");

        ServiceDescription service = new ServiceDescription("testService", true);
View Full Code Here

Examples of org.apache.axis.server.AxisServer

  boolean  pleaseStop = false ;
  boolean  halted     = false ;

  public void run() {
    String tmp = "" ;
    AxisServer  server = new AxisServer();
    server.init();

    while( !pleaseStop ) {
      try {
        Thread.sleep( 100 );
        File file = new File( "xml" + nextNum + ".req" );
        if ( !file.exists() ) continue ;
         
          // avoid race condition where file comes to exist but we were halted -- RobJ
          if (pleaseStop) continue;

        Thread.sleep( 100 );   // let the other side finish writing
        FileInputStream fis = new FileInputStream( file );

        int thisNum = nextNum++; // increment early to avoid infinite loops
       
        Message msg = new Message( fis );
        msg.getAsBytes();

        fis.close();
        file.delete();

        MessageContext  msgContext = new MessageContext(server);
        msgContext.setRequestMessage( msg );

        try {
            server.invoke( msgContext );
            msg = msgContext.getResponseMessage();
        } catch (AxisFault af) {
            msg = new Message(af);
            msg.setMessageContext(msgContext);
        } catch (Exception e) {
View Full Code Here

Examples of org.apache.axis.server.AxisServer

            // (so the config files can't get snooped by a browser)
            FileProvider provider =
                    new FileProvider(getServletContext().getRealPath("/WEB-INF"),
                                     "server-config.xml");

            getServletContext().setAttribute("AxisEngine", new AxisServer(provider));
        }
        return (AxisServer)getServletContext().getAttribute("AxisEngine");
    }
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.