Package com.sun.xml.ws.api.model.wsdl

Examples of com.sun.xml.ws.api.model.wsdl.WSDLPort


   */
  public void process() {
    WSEndpoint<?>     endPoint     = this.codec.getEndpoint();
    JAXBContextImpl   context     = (JAXBContextImpl)endPoint.getSEIModel().getJAXBContext();
   
    WSDLPort port = endPoint.getPort();
    if (!operationDocuments.containsKey(port.getBinding().getName())) {
      BufferedReader ins = new BufferedReader(new InputStreamReader(
      MethodFormProvider.class.getResourceAsStream("methodForm.htm")));
      StringBuffer content = new StringBuffer();
      try{
        String line = ins.readLine();
        while(line != null){
          content.append(line + "\n");
          line = ins.readLine();
         
        }
      }catch(Throwable th){}
      Map<String, String> contents = new HashMap<String, String>();
     
      SEIModel seiModel = endPoint.getSEIModel();
      for (WSDLBoundOperation operation : seiModel.getPort().getBinding().getBindingOperations()) {
        String requestJSON = JSONHttpMetadataPublisher.getJSONAsString(operation.getInParts(), context, this.codec );
        contents.put(operation.getOperation().getName().getLocalPart(),
            content.toString().replaceAll("#INPUT_JSON#", String.format("{\"%s\":%s}",operation.getName().getLocalPart(),
                requestJSON))
            .replaceAll("#METHOD_NAME#", operation.getName().getLocalPart()));
      }
      operationDocuments.put(port.getBinding().getName(), contents);
    }
  }
View Full Code Here


        super(next);

  props.put(PipeConstants.SECURITY_PIPE,this);

        WSDLPort wsdlModel = (WSDLPort)props.get(PipeConstants.WSDL_MODEL);
        if (wsdlModel != null) {
            props.put(PipeConstants.WSDL_SERVICE,
                wsdlModel.getOwner().getName());
        }
  this.helper = new PipeHelper(PipeConstants.SOAP_LAYER,props,null);

    }
View Full Code Here

                    PacketMessageInfo pmi = (PacketMessageInfo) messageInfo;
                    Packet p = (Packet) pmi.getRequestPacket();
                    if (p != null) {
                        Message m = p.getMessage();
                        if (m != null) {
                            WSDLPort port =
                                (WSDLPort) messageInfo.getMap().get("WSDL_MODEL");
                            if (port != null) {
                                WSDLBoundOperation w = m.getOperation(port);
                                if (w != null) {
                                    QName n = w.getName();
View Full Code Here

      binding = e.getMessageSecurityBinding();
  } else {
      ServiceReferenceDescriptor s = (ServiceReferenceDescriptor)
    properties.get("SERVICE_REF");
      if (s != null) {
    WSDLPort p = (WSDLPort) properties.get("WSDL_MODEL");
    QName portName = null;
    if (p != null) {
        portName = p.getName();
    }
    if (portName != null) {
        ServiceRefPortInfo i = s.getPortInfoByPort(portName);
        if (i != null) {
      binding = i.getMessageSecurityBinding();
View Full Code Here

            }
  }
    }

    public Object getModelName() {
   WSDLPort wsdlModel = (WSDLPort) getProperty(PipeConstants.WSDL_MODEL);
   return (wsdlModel == null ? "unknown" : wsdlModel.getName());
    }
View Full Code Here

   
    public boolean isTwoWay(boolean twoWayIsDefault, Packet request) {
   boolean twoWay = twoWayIsDefault;
   Message m = request.getMessage();
   if (m != null) {
      WSDLPort wsdlModel =
    (WSDLPort) getProperty(PipeConstants.WSDL_MODEL);
      if (wsdlModel != null) {
    twoWay = (m.isOneWay(wsdlModel) ? false : true);
      }
  }
View Full Code Here

   
    public ClientSecurityTube(Map props, Tube next) {
       
        super(next);
  props.put(PipeConstants.SECURITY_PIPE,this);
        WSDLPort wsdlModel = (WSDLPort)props.get(PipeConstants.WSDL_MODEL);
        if (wsdlModel != null) {
            props.put(PipeConstants.WSDL_SERVICE,
                wsdlModel.getOwner().getName());
        }
  this.helper = new PipeHelper(PipeConstants.SOAP_LAYER,props,null);

    }
View Full Code Here

        super(next);

  props.put(PipeConstants.SECURITY_PIPE,this);

        WSDLPort wsdlModel = (WSDLPort)props.get(PipeConstants.WSDL_MODEL);
        if (wsdlModel != null) {
            props.put(PipeConstants.WSDL_SERVICE,
                wsdlModel.getOwner().getName());
        }
  this.helper = new PipeHelper(PipeConstants.SOAP_LAYER,props,null);

    }
View Full Code Here

    private static final String DEFAULT_WEBSERVICES_PROVIDER=
            "com.sun.xml.wss.provider.wsit.WSITAuthConfigProvider";
   
     public MessageSecurityBindingDescriptor getBinding(ServiceReferenceDescriptor svcRef, Map properties) {
        MessageSecurityBindingDescriptor binding = null;
        WSDLPort p = (WSDLPort) properties.get("WSDL_MODEL");
        QName portName = null;
        if (p != null) {
            portName = p.getName();
        }
        if (portName != null) {
            ServiceRefPortInfo i = svcRef.getPortInfoByPort(portName);
            if (i != null) {
                binding = i.getMessageSecurityBinding();
View Full Code Here

            PacketMessageInfo pmi = (PacketMessageInfo) messageInfo;
            Packet p = (Packet) pmi.getRequestPacket();
            if (p != null) {
                Message m = p.getMessage();
                if (m != null) {
                    WSDLPort port =
                            (WSDLPort) messageInfo.getMap().get("WSDL_MODEL");
                    if (port != null) {
                        WSDLBoundOperation w = m.getOperation(port);
                        if (w != null) {
                            QName n = w.getName();
View Full Code Here

TOP

Related Classes of com.sun.xml.ws.api.model.wsdl.WSDLPort

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.