Package org.apache.wsif

Examples of org.apache.wsif.WSIFPort


        {
            Object o = i.next();
            if ( o instanceof EJOEBinding )
            {
                // if so try to create Java dynamic port instance
                WSIFPort wp = new WSIFPort_EJOE( def, port, typeMap );
                Trc.exit( wp );
                return wp;
            }
        }
View Full Code Here


        service.mapType(
            new QName("http://wsiftypes.addressbook/", "Phone"),
            Class.forName("localjava.client.stub.addressbook.wsiftypes.Phone"));

        // get the port
        WSIFPort port = service.getPort();

        // add the first address
        addFirstAddress(port);

        // add the second address
View Full Code Here

        List exs = binding.getExtensibilityElements();
        for (Iterator i = exs.iterator(); i.hasNext();) {
            Object o = i.next();
            if (o instanceof JavaBinding) {
                // if so try to create Java dynamic port instance
                WSIFPort wp = new WSIFPort_Java(def, port, typeMap);
                Trc.exit(wp);
                return wp;
            }
        }
View Full Code Here

        for (Iterator i = exs.iterator(); i.hasNext();) {
            Object o = i.next();

            if (o instanceof JMSBinding) {
                // if so try to create Jms dynamic port instance
                WSIFPort wp = new WSIFPort_Jms(def, port, typeMap);
                Trc.exit(wp);
                return wp;
            }
        }
View Full Code Here

        List exs = binding.getExtensibilityElements();
        for (Iterator i = exs.iterator(); i.hasNext();) {
            Object o = i.next();
            if (o instanceof SOAPBinding) {
                // if so try to create ApacheSOAP dynamic port instance
                WSIFPort wp =
                    new WSIFPort_ApacheSOAP(
                        def,
                        service,
                        port,
                        typeMap,
View Full Code Here

    Trc.entry(this, definition, service, port, wsifdynamictypemap);

    Binding binding = port.getBinding();
    List list = binding.getExtensibilityElements();

    WSIFPort wp = null;
    for (Iterator i = list.iterator();(i.hasNext() && wp == null);) {
      Object o = i.next();
      if (o instanceof SOAPBinding) {
        wp = new WSIFPort_ApacheAxis(
            definition,
View Full Code Here

   */
  public PortTypeArray getPortTypes(String queryString) throws WSIFException {
    try {
      WSIFService portFactory = WSIFServiceFactory.newInstance().getService(serviceDefintion, importService, importPortType);

      WSIFPort port = portFactory.getPort();

      WSIFOperation operation = port.createOperation(GET_PORTTYPES_OPERATION);
      WSIFMessage inputMessage = operation.createInputMessage();
      WSIFMessage outputMessage = operation.createOutputMessage();
      inputMessage.setObjectPart(QUERY_STRING_PART, queryString);

      operation.executeRequestResponseOperation(inputMessage, outputMessage, null);

      PortTypeArray portTypeArray = (PortTypeArray) outputMessage.getObjectPart(RESULT_PART);

      port.close();
      return portTypeArray;
    } catch (Exception e) {
      if (e instanceof WSIFException)
        throw (WSIFException) e;
      else
View Full Code Here

   * @throws <code>WSIFException<code>
   */
  public ImportDefinition getDefinition(PortTypeSelection portTypeSelection) throws WSIFException {
    try {
      WSIFService portFactory = WSIFServiceFactory.newInstance().getService(serviceDefintion, importService, importPortType);
      WSIFPort port = portFactory.getPort();

      WSIFOperation operation = port.createOperation(GET_DEFINITION_OPERATION);
      WSIFMessage inputMessage = operation.createInputMessage();
      WSIFMessage outputMessage = operation.createOutputMessage();

      inputMessage.setObjectPart(PORT_TYPE_SELECTION_PART, portTypeSelection);

      operation.executeRequestResponseOperation(inputMessage, outputMessage, null);

      ImportDefinition importDefinition = (ImportDefinition) outputMessage.getObjectPart(RESULT_PART);
      port.close();

      return importDefinition;
    } catch (Exception e) {
      if (e instanceof WSIFException)
        throw (WSIFException) e;
View Full Code Here

   */
  public byte[] getRawEISMetaData(String queryString) throws WSIFException {
    try {
      WSIFService portFactory = WSIFServiceFactory.newInstance().getService(serviceDefintion, importService, importPortType);

      WSIFPort port = portFactory.getPort();

      // getPortTypes
      WSIFOperation operation = port.createOperation(GET_RAW_EIS_METADATA_OPERATION);
      WSIFMessage inputMessage = operation.createInputMessage();
      WSIFMessage outputMessage = operation.createOutputMessage();
      inputMessage.setObjectPart(QUERY_STRING_PART, queryString);

      operation.executeRequestResponseOperation(inputMessage, outputMessage, null);

      byte[] byteArray = (byte[]) outputMessage.getObjectPart(RESULT_PART);

      port.close();
      return byteArray;
    } catch (Exception e) {
      if (e instanceof WSIFException)
        throw (WSIFException) e;
      else
View Full Code Here

        List exs = binding.getExtensibilityElements();
        for (Iterator i = exs.iterator(); i.hasNext();) {
            Object o = i.next();
            if (o instanceof EJBBinding) {
                // if so try to create EJB dynamic port instance
                WSIFPort wp = new WSIFPort_EJB(def, port, typeMap);
                Trc.exit(wp);
                return wp;
            }
        }
View Full Code Here

TOP

Related Classes of org.apache.wsif.WSIFPort

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.