Package org.apache.axis.transport.http

Examples of org.apache.axis.transport.http.HTTPTransport


        }

      args = opts.getRemainingArgs();
      if ( args != null ) action = args[0];

      ServiceClient client = new ServiceClient(new HTTPTransport());
      client.set(HTTPTransport.URL, url);
      client.set(HTTPTransport.ACTION, action);

      Message        reqMsg      = new Message( msg );
      Message        resMsg     = null ;
View Full Code Here


public class v3 implements vInterface {
  public void register(String registryURL, Service s) throws Exception {
    try {
      ServiceClient call = new ServiceClient
            (new HTTPTransport(registryURL, "http://www.soapinterop.org/Register"));
      RPCElement body = new RPCElement( "http://www.soapinterop.org/Registry",
                                        "Register",
                                        new RPCParam[] {
                                          new RPCParam("ServiceName",
                                                       s.getServiceName()),
View Full Code Here

  }

  public void unregister(String registryURL, String name) throws Exception {
    try {
      ServiceClient call = new ServiceClient
            (new HTTPTransport(registryURL, "http://www.soapinterop.org/Unregister"));
      RPCElement body = new RPCElement( "http://www.soapinterop.org/Registry",
                                        "Unregister",
                                        new RPCParam[] {
                                          new RPCParam("ServiceName",
                                                       name) } );
View Full Code Here

    }
  }

  public Boolean ping(String serverURL) throws Exception {
    try {
      ServiceClient call = new ServiceClient(new HTTPTransport());
      call.set(HTTPTransport.URL, serverURL);
      call.set(HTTPTransport.ACTION, "http://www.soapinterop.org/Ping");
      call.invoke( "http://www.soapinterop.org/Bid", "Ping", null );
      return( new Boolean(true) );
    }
View Full Code Here

  {
    try {
      ServiceDescription sd = new ServiceDescription("lookup", true );
      sd.addOutputParam("RequestForQuoteResult",
                        SOAPTypeMappingRegistry.XSD_DOUBLE);
      ServiceClient call = new ServiceClient(new HTTPTransport());
      call.set(HTTPTransport.URL, registryURL);
      call.set(HTTPTransport.ACTION, "http://www.soapinterop.org/LookupAsString");
      call.setServiceDescription(sd);
      RPCElement body = new RPCElement( "http://www.soapinterop.org/Registry",
                                        "LookupAsString",
View Full Code Here

      sd.addOutputParam("Result",
                        SOAPTypeMappingRegistry.XSD_DOUBLE);
      sd.addOutputParam("return",
                        SOAPTypeMappingRegistry.XSD_DOUBLE);
      ServiceClient call =
            new ServiceClient(new HTTPTransport
                                  (serverURL, "http://www.soapinterop.org/RequestForQuote"));
      call.setServiceDescription( sd );
      RPCElement body = new RPCElement( "http://www.soapinterop.org/Bid",
                                        "RequestForQuote",
                                        new RPCParam[] {
View Full Code Here

      sd.addOutputParam("Result",
                        SOAPTypeMappingRegistry.XSD_STRING);
      sd.addOutputParam("return",
                        SOAPTypeMappingRegistry.XSD_STRING);
      ServiceClient call =
            new ServiceClient(new HTTPTransport
                                  (serverURL, "http://www.soapinterop.org/SimpleBuy"));
      RPCElement  body = new RPCElement( "http://www.soapinterop.org/Bid",
                                         "SimpleBuy",
                                         new RPCParam[] {
                                           new RPCParam("Address",
View Full Code Here

                        SOAPTypeMappingRegistry.XSD_STRING);
      sd.addOutputParam("Result",
                        SOAPTypeMappingRegistry.XSD_STRING);
      sd.addOutputParam("return",
                        SOAPTypeMappingRegistry.XSD_STRING);
      ServiceClient call = new ServiceClient(new HTTPTransport());
      call.set(HTTPTransport.URL, serverURL);
      call.set(HTTPTransport.ACTION, "http://www.soapinterop.org/Buy");


      // register the PurchaseOrder class
View Full Code Here

        System.exit(1);
      }

      String  symbol = args[0] ;
      ServiceClient call = new ServiceClient
            (new HTTPTransport(opts.getURL(), "urn:cominfo"));

      call.set( Transport.USER, opts.getUser() );
      call.set( Transport.PASSWORD, opts.getPassword() );
      String res = (String) call.invoke(
        "urn:cominfo", "getInfo",
View Full Code Here

  public Transport getTransport() throws WSIFException {
    Trc.entry(this);
    if (transport == null) {
      String s = soapBinding.getTransportURI();
      if (HTTP_TRANSPORT_URI.equals(s)) {
        transport = new HTTPTransport();
      } else if (JMS_TRANSPORT_URI.equals(s)) {
        WSIFJMSDestination jmsDestination =
          new WSIFJMSDestination(
            WSIFJMSFinder.newFinder(jmsAddress, port.getName()),
            jmsAddress.getJmsProvDestName(),
View Full Code Here

TOP

Related Classes of org.apache.axis.transport.http.HTTPTransport

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.