Examples of Wsdl


Examples of org.reficio.ws.builder.core.Wsdl

    }

    public SoapServer initServer() {
        validate();
        URL wsdlUrl = getWsdlUrl(testClass);
        Wsdl parser = Wsdl.parse(wsdlUrl);
        SoapBuilder builder = getBuilder(parser);
        server = construct();
        AutoResponder responder = getAutoResponder(builder);
        registerService(server, responder);
View Full Code Here

Examples of org.reficio.ws.builder.core.Wsdl

                .httpPort(9090)
                .build();
        server.start();

        URL wsdlUrl = ResourceUtils.getResourceWithAbsolutePackagePath("/", "wsdl/stockquote-service.wsdl");
        Wsdl parser = Wsdl.parse(wsdlUrl);
        SoapBuilder builder = parser.binding().localPart("StockQuoteSoapBinding").find();
        AutoResponder responder = new AutoResponder(builder);

        server.registerRequestResponder("/service", responder);
        server.stop();
    }
View Full Code Here

Examples of org.reficio.ws.builder.core.Wsdl

                .httpPort(9090)
                .build();
        server.start();

        URL wsdlUrl = ResourceUtils.getResourceWithAbsolutePackagePath("/", "wsdl/stockquote-service.wsdl");
        Wsdl parser = Wsdl.parse(wsdlUrl);
        final SoapBuilder builder = parser.binding().localPart("StockQuoteSoapBinding").find();

        AbstractResponder customResponder = new AbstractResponder(builder) {
            @Override
            public Source respond(SoapOperation invokedOperation, SoapMessage message) {
                try {
View Full Code Here

Examples of org.reficio.ws.builder.core.Wsdl

        server.stop();
    }

    public static AutoResponder getAutoResponderForTestService() throws WSDLException {
        SoapContext context = SoapContext.builder().exampleContent(false).build();
        Wsdl parser = Wsdl.parse(wsdlUrl);
        builder = parser.binding().name(bindingName).find();

        AutoResponder responder = new AutoResponder(builder, context);
        return responder;
    }
View Full Code Here

Examples of org.reficio.ws.builder.core.Wsdl

        String url = String.format("http://localhost:%d%s", port, contextPath);
        SoapClient client = SoapClient.builder()
                .endpointUri(url)
                .build();

        Wsdl parser = Wsdl.parse(wsdlUrl);
        SoapBuilder soapBuilder = parser.binding().name(bindingName).find();

        // get the operation to invoked -> assumption our operation is the first operation in the WSDL's
        SoapOperation operation = soapBuilder.operation().name("GetLastTradePrice").find();

        // construct the request
View Full Code Here

Examples of org.woped.editor.controller.wsdl.Wsdl

  public void defineContentOfOperationComboBox(String pathToWsdlFile, String roleName) {
    ArrayList<Operation> operations;
    if (wsdlFileRepresentation == null){
      try {
        wsdlFileRepresentation = new Wsdl().readDataFromWSDL(pathToWsdlFile);
      }
      catch (Exception e) {
        e.printStackTrace();
        showErrorPopup(
            Messages.getString("Transition.Properties.BPEL.ErrorWhileReadingWsdlFileTitle"),
View Full Code Here

Examples of org.woped.editor.controller.wsdl.Wsdl

    ArrayList<Operation> operations;


    if (wsdlFileRepresentation == null){
      try {
        wsdlFileRepresentation = new Wsdl().readDataFromWSDL(pathToWsdlFile);
      }
      catch (Exception e) {
        e.printStackTrace();
        showErrorPopup(
            Messages.getString("Transition.Properties.BPEL.ErrorWhileReadingWsdlFileTitle"),
View Full Code Here

Examples of org.woped.editor.controller.wsdl.Wsdl

  public BPELadditionalPanel(TransitionPropertyEditor t_editor,
      TransitionModel transition) {
    this.t_editor = t_editor;
    this.transition = transition;
    this.modelElementContainer = t_editor.getEditor().getModelProcessor().getElementContainer();
    wsdl = new Wsdl();
  }
View Full Code Here

Examples of org.woped.editor.controller.wsdl.Wsdl

  public void defineContentOfOperationComboBox(String pathToWsdlFile, String roleName) {
      ArrayList<Operation> operations;
      if (wsdlFileRepresentation == null){
        try {
          wsdlFileRepresentation = new Wsdl().readDataFromWSDL(pathToWsdlFile);
        }
        catch (Exception e) {
          e.printStackTrace();
          showErrorPopup(
              Messages.getString("Transition.Properties.BPEL.ErrorWhileReadingWsdlFileTitle"),
View Full Code Here

Examples of org.wso2.carbon.governance.api.wsdls.dataobjects.Wsdl

    }

    public void testAddWsdlWithEndpoints() throws Exception {
        WsdlManager wsdlManager = new WsdlManager(registry);

        Wsdl wsdl = wsdlManager.newWsdl("http://svn.wso2.org/repos/wso2/trunk/carbon/components/governance/org.wso2.carbon.governance.api/src/test/resources/test-resources/wsdl/BizService.wsdl");
        wsdlManager.addWsdl(wsdl);

        Endpoint[] endpoints = wsdl.getAttachedEndpoints();
        assertEquals(1, endpoints.length);

        assertEquals("http://localhost:8080/axis2/services/BizService", endpoints[0].getUrl());
        assertEquals(1, endpoints[0].getAttributeKeys().length);
        assertEquals("true", endpoints[0].getAttribute(CommonConstants.SOAP11_ENDPOINT_ATTRIBUTE));

        // now we are trying to remove the endpoint
        EndpointManager endpointManager = new EndpointManager(registry);

        try {
            endpointManager.removeEndpoint(endpoints[0].getId());
            assertTrue(false);
        } catch (Exception e) {
            assertTrue(true);
        }
        GovernanceArtifact[] artifacts = wsdl.getDependents();
        // delete the wsdl
        wsdlManager.removeWsdl(wsdl.getId());

        ServiceManager serviceManager = new ServiceManager(registry);

        for (GovernanceArtifact artifact: artifacts) {
            if (artifact instanceof Service) {
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.