Package com.eviware.soapui.impl.wsdl

Examples of com.eviware.soapui.impl.wsdl.WsdlOperation$WsdlFaultPart


    WsdlTestCase testCase = getTestCase();
    if( testCase == null || testCase.getTestSuite() == null )
      return null;

    Project project = testCase.getTestSuite().getProject();
    WsdlOperation operation = null;
    for( int c = 0; c < project.getInterfaceCount(); c++ )
    {
      if( project.getInterfaceAt( c ).getName().equals( requestStepConfig.getInterface() ) )
      {
        WsdlInterface iface = ( WsdlInterface )project.getInterfaceAt( c );
View Full Code Here


  public void setOperation( WsdlOperation operation )
  {
    if( wsdlOperation == operation )
      return;

    WsdlOperation oldOperation = wsdlOperation;
    wsdlOperation = operation;
    requestStepConfig.setInterface( operation.getInterface().getName() );
    requestStepConfig.setOperation( operation.getName() );

    if( oldOperation != null )
      oldOperation.removePropertyChangeListener( this );

    wsdlOperation.addPropertyChangeListener( this );

    initTestRequest( this.getConfig(), false );
    testRequest.setOperation( wsdlOperation );
View Full Code Here

          {

            @Override
            public boolean update()
            {
              WsdlOperation wsdlOperation = ( WsdlOperation )getSelectedOperation();
              if( wsdlOperation == null )
                return false;

              setOperation( wsdlOperation );
              initTestRequest( getConfig(), false );
View Full Code Here

            // preprocess only if neccessary
            if (isMtomEnabled() || isInlineFilesEnabled() || getAttachmentCount() > 0) {
                try {
                    mp = new MimeMultipart();

                    WsdlOperation wsdlOperation = ((WsdlOperation) operation);
                    MessageXmlObject requestXmlObject = createMessageXmlObject(responseContent, wsdlOperation);
                    MessageXmlPart[] requestParts = requestXmlObject.getMessageParts();
                    for (MessageXmlPart requestPart : requestParts) {
                        if (prepareMessagePart(mp, contentIds, requestPart)) {
                            isXOP = true;
View Full Code Here

        if (content == null) {
            log.warn("Missing request content in context, skipping ws-addressing");
        } else {
            ExtendedHttpMethod httpMethod = (ExtendedHttpMethod) context
                    .getProperty(BaseHttpRequestTransport.HTTP_METHOD);
            WsdlOperation operation = ((WsdlRequest) wsdlRequest).getOperation();
            // TODO check UsingAddressing for particular endpoint when running a
            // request
            // ((WsdlRequest)wsdlRequest).getEndpoint();
            SoapVersion soapVersion = operation.getInterface().getSoapVersion();
            String identifier = ((WsdlRequest) wsdlRequest).getWsrmConfig().getSequenceIdentifier();
            long msgNumber = ((WsdlRequest) wsdlRequest).getWsrmConfig().getLastMessageId();

            content = new WsrmUtils(content, soapVersion).createNewWSReliableMessagingRequest(
                    (WsdlRequest) wsdlRequest, identifier, msgNumber, wsdlRequest.getEndpoint());
View Full Code Here


    public WsdlMockOperationDesktopPanel(WsdlMockOperation mockOperation) {
        super(mockOperation);

        WsdlOperation operation = getModelItem().getOperation();
        if (operation != null) {
            currentInterface = operation.getInterface();
            currentInterface.addInterfaceListener(interfaceListener);
        }

        mockOperation.getMockService().getProject().addProjectListener(projectListener);
    }
View Full Code Here

        operationCombo.setPreferredSize(new Dimension(150, 20));
        operationCombo.addItemListener(new OperationComboListener());

        toolbar.addLabeledFixed("Operation", operationCombo);

        WsdlOperation operation = getModelItem().getOperation();
        interfaceCombo.setSelectedItem(operation == null ? null : operation.getInterface().getName());
        operationCombo.setSelectedItem(operation == null ? null : operation.getName());

        toolbar.addGlue();
        toolbar.addFixed(createActionButton(new ShowOnlineHelpAction(HelpUrls.MOCKOPERATION_HELP_URL), true));

        return toolbar;
View Full Code Here

    private final class OperationComboListener implements ItemListener {
        public void itemStateChanged(ItemEvent e) {
            WsdlInterface iface = (WsdlInterface) getModelItem().getMockService().getProject()
                    .getInterfaceByName(interfaceCombo.getSelectedItem().toString());
            WsdlOperation operation = iface.getOperationByName(operationCombo.getSelectedItem().toString());
            getModelItem().setOperation(operation);
        }
View Full Code Here

        if (content == null) {
            log.warn("Missing request content in context, skipping ws-addressing");
        } else {
            ExtendedHttpMethod httpMethod = (ExtendedHttpMethod) context
                    .getProperty(BaseHttpRequestTransport.HTTP_METHOD);
            WsdlOperation operation = ((WsdlRequest) wsdlRequest).getOperation();
            // TODO check UsingAddressing for particular endpoint when running a
            // request
            // ((WsdlRequest)wsdlRequest).getEndpoint();
            SoapVersion soapVersion = operation.getInterface().getSoapVersion();
            content = new WsaUtils(content, soapVersion, operation, context).addWSAddressingRequest(
                    (WsdlRequest) wsdlRequest, httpMethod);
            if (content != null) {
                context.setProperty(BaseHttpRequestTransport.REQUEST_CONTENT, content);
            }
View Full Code Here

        try {
            if (createRequests && result != null) {
                for (WsdlInterface iface : result) {
                    for (int c = 0; c < iface.getOperationCount(); c++) {
                        WsdlOperation operation = iface.getOperationAt(c);
                        WsdlRequest request = operation.addNewRequest("Request 1");
                        try {
                            String requestContent = operation.createRequest(project.getSettings().getBoolean(
                                    WsdlSettings.XML_GENERATION_ALWAYS_INCLUDE_OPTIONAL_ELEMENTS));
                            request.setRequestContent(requestContent);
                        } catch (Exception e) {
                            SoapUI.logError(e);
                        }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.wsdl.WsdlOperation$WsdlFaultPart

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.