Examples of WSIFMessage


Examples of org.apache.wsif.WSIFMessage

     * Gets the context information for this WSIFPort.
     * @return context
     */
    public WSIFMessage getContext() throws WSIFException {
        Trc.entry(this);
      WSIFMessage contextCopy;
      if (this.context == null) {
        // really this should call getContext on the WSIFService but
        // theres no reference to that so WSIFService must call setContext
        // on any WSIFPorts it creates.
        contextCopy = new WSIFDefaultMessage();
View Full Code Here

Examples of org.apache.wsif.WSIFMessage

      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)
View Full Code Here

Examples of org.apache.wsif.WSIFMessage

    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)
View Full Code Here

Examples of org.apache.wsif.WSIFMessage

      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)
View Full Code Here

Examples of org.apache.wsif.WSIFMessage

     * Gets the context information for this WSIFService.
     * @return context
     */
    public WSIFMessage getContext() throws WSIFException {
        Trc.entry(this);
      WSIFMessage contextCopy;
      if (this.context == null) {
        contextCopy = new WSIFDefaultMessage();
      } else {
        try {
          contextCopy = (WSIFMessage) this.context.clone();
View Full Code Here

Examples of org.apache.wsif.WSIFMessage

      WSIFPort port = service.getPort(portName);

      WSIFOperation operation = port.createOperation("SingleTag");

      WSIFMessage inMsg = operation.createInputMessage();
      WSIFMessage outMsg = operation.createOutputMessage();
      WSIFMessage faultMsg = operation.createFaultMessage();

            SingleTag_Type stt = new SingleTag_Type();
      inMsg.setObjectPart("SingleTag", stt);

      boolean ok =
View Full Code Here

Examples of org.apache.wsif.WSIFMessage

      WSIFPort port = service.getPort(portName);

      WSIFOperation operation = port.createOperation("SimpleDocument");

      WSIFMessage inMsg = operation.createInputMessage();
      WSIFMessage outMsg = operation.createOutputMessage();
      WSIFMessage faultMsg = operation.createFaultMessage();

            SimpleDocument_Type sdt = new SimpleDocument_Type();
            sdt.setValue("petra");
      inMsg.setObjectPart("SimpleDocument", sdt);
View Full Code Here

Examples of org.apache.wsif.WSIFMessage

      WSIFPort port = service.getPort(portName);

      WSIFOperation operation = port.createOperation("ComplexDocument");

      WSIFMessage inMsg = operation.createInputMessage();
      WSIFMessage outMsg = operation.createOutputMessage();
      WSIFMessage faultMsg = operation.createFaultMessage();

            ComplexDocument_Type cdt = makeComplexDocument();
            checkComplexDocument(cdt);

      inMsg.setObjectPart("ComplexDocument", cdt);
View Full Code Here

Examples of org.apache.wsif.WSIFMessage

                   "http://soapinterop.org/",
                   "SingleTag"),
               SingleTag_Type.class );

            // force to use a 'wrapped' type operation
            WSIFMessage context = service.getContext();
            context.setObjectPart(WSIFConstants.CONTEXT_OPERATION_STYLE, WSIFConstants.CONTEXT_OPERATION_STYLE_WRAPPED);
            service.setContext(context);

            Doc_TestPortType stub = (Doc_TestPortType) service.getStub(portName, Doc_TestPortType.class);

            SingleTag_Type stet = new SingleTag_Type();
View Full Code Here

Examples of org.apache.wsif.WSIFMessage

                   "http://soapinterop.org/",
                   "SimpleDocument"),
               SimpleDocument_Type.class );

            // force to use a 'wrapped' type operation
            WSIFMessage context = service.getContext();
            context.setObjectPart(WSIFConstants.CONTEXT_OPERATION_STYLE, WSIFConstants.CONTEXT_OPERATION_STYLE_WRAPPED);
            service.setContext(context);

            Doc_TestPortType stub = (Doc_TestPortType) service.getStub(portName, Doc_TestPortType.class);

            SimpleDocument_Type sdt = new SimpleDocument_Type();
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.