Examples of WSIFPort


Examples of com.volantis.wsif.WSIFPort

                                                     def.getTargetNamespace(),
                                                     operation.getPortType());

        WSIFServiceFactory factory = WSIFServiceFactory.newInstance();
        WSIFService wsifService = factory.getService(def, service, portType);
        WSIFPort wsifPort = wsifService.getPort();

        String operationName = operation.getOperationName();
        javax.wsdl.Operation wsdlOperation =
                retrieveWSDLOperation(operationName, portType);

        // Get the Input and Output objects to create the WSIFOperation and
        // messages.
        Input wsdlInput = wsdlOperation.getInput();
        String inputName = (wsdlInput.getName() == null) ? null :
                wsdlInput.getName();
        Output wsdlOutput = wsdlOperation.getOutput();
        String outputName = (wsdlOutput.getName() == null) ? null :
                wsdlOutput.getName();

        WSIFOperation wsifOperation =
                wsifPort.createOperation(operationName, inputName, outputName);
        WSIFMessage input = wsifOperation.createInputMessage();
        WSIFMessage output = wsifOperation.createOutputMessage();
        WSIFMessage fault = wsifOperation.createFaultMessage();

        initializeInputParts(wsdlInput.getMessage(), message, input);
View Full Code Here

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

Examples of org.apache.wsif.WSIFPort

        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

Examples of org.apache.wsif.WSIFPort

        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

Examples of org.apache.wsif.WSIFPort

        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

Examples of org.apache.wsif.WSIFPort

        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

Examples of org.apache.wsif.WSIFPort

    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

Examples of org.apache.wsif.WSIFPort

   */
  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

Examples of org.apache.wsif.WSIFPort

   * @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

Examples of org.apache.wsif.WSIFPort

   */
  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
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.