Examples of SEIModel


Examples of com.sun.xml.internal.ws.api.model.SEIModel

     * Creates a new pipeline for the given port name.
     */
    private Tube createPipeline(PortInfo portInfo, WSBinding binding) {
        //Check all required WSDL extensions are understood
        checkAllWSDLExtensionsUnderstood(portInfo,binding);
        SEIModel seiModel = null;
        if(portInfo instanceof SEIPortInfo) {
            seiModel = ((SEIPortInfo)portInfo).model;
        }
        BindingID bindingId = portInfo.bindingId;

View Full Code Here

Examples of com.sun.xml.internal.ws.api.model.SEIModel

     * Creates a new pipeline for the given port name.
     */
    private Tube createPipeline(WSPortInfo portInfo, WSBinding binding) {
        //Check all required WSDL extensions are understood
        checkAllWSDLExtensionsUnderstood(portInfo,binding);
        SEIModel seiModel = null;
        if(portInfo instanceof SEIPortInfo) {
            seiModel = ((SEIPortInfo)portInfo).model;
        }
        BindingID bindingId = portInfo.getBindingId();

View Full Code Here

Examples of com.sun.xml.ws.api.model.SEIModel

    for(BoundEndpoint endPointObj : modules.getBoundEndpoints()){
      if(endPointObj.getEndpoint().getBinding().getBindingID() == JSONBindingID.JSON_BINDING){
        Map<String,Object>   portJSONMap   = new TreeMap<String, Object>();
        service.put(endPointObj.getEndpoint().getPortName().getLocalPart(), portJSONMap);
       
        SEIModel   seiModel     = endPointObj.getEndpoint().getSEIModel();
        for (WSDLBoundOperation operation : seiModel.getPort().getBinding().getBindingOperations()) {
          Map<String,Object>    operationMap = new TreeMap<String, Object>();
          portJSONMap.put(operation.getName().getLocalPart(), operationMap );
         
          // TODO key should be a input message part name, Why here operation name?
          operationMap.put(operation.getOperation().getName().getLocalPart(),
View Full Code Here

Examples of com.sun.xml.ws.api.model.SEIModel

  /**
   * @param packet
   * @return
   */
  public SEIModel getSEIModel(@NotNull final Packet packet){
    SEIModel seiModel;
    if(this.endpoint != null){
      seiModel  = this.endpoint.getSEIModel();
    }else if(packet.proxy != null && packet.proxy instanceof SEIStub){
      seiModel  = ((SEIStub) packet.proxy).seiModel;
    }else{
View Full Code Here

Examples of com.sun.xml.ws.api.model.SEIModel

  @SuppressWarnings("unchecked")
  public Message handleMessage(Packet packet,String payloadName) throws Exception{
    Map<String, Object> invocationProperties = packet.invocationProperties;
    boolean OUT_BOUND = invocationProperties.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY) != null &&
              (Boolean)invocationProperties.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY);
    SEIModel       seiModel   = this.codec.getSEIModel(packet);
    JAXBContextImpl   context   = (JAXBContextImpl)seiModel.getJAXBContext();
    Style style = seiModel.getPort().getBinding().getStyle();
    if(!OUT_BOUND){
      // Request message
      // TODO when operation <input><json:body contains different namespace than port level name space bellow call fails to identify operation.
      WSDLBoundOperation operation   = seiModel.getPort().getBinding().getOperation(seiModel.getTargetNamespace(),payloadName);
      if(operation == null || !packet.invocationProperties.containsKey(JSONCodec.JSON_MAP_KEY)){
        throw new RuntimeException("Operation %s input parameter(s) not found or invalid.");
      }
      JavaMethod       javaMethod   = seiModel.getJavaMethod(operation.getName());
      if(javaMethod == null && javaMethodAccessor != null){
        javaMethod = (JavaMethod) javaMethodAccessor.invoke(seiModel, operation.getName());
      }else{
        // TODO iterate all method and find
      }
View Full Code Here

Examples of com.sun.xml.ws.api.model.SEIModel

      templateMain    = templateMain.replaceAll("#SERIVICE_NAME#", endPoint.getServiceName().getLocalPart());

      StringBuffer   methods = new StringBuffer();
       
          int count = 0;
      SEIModel seiModel = endPoint.getSEIModel();
      for (WSDLBoundOperation operation : seiModel.getPort().getBinding().getBindingOperations()) {
        String methodTemplate = templates.getProperty(
            "template.default.method", "");
        methodTemplate = methodTemplate.replaceAll("#METHOD_NAME#",
            operation.getName().getLocalPart());
        methodTemplate = methodTemplate.replaceAll("#TR_CLASS#",
View Full Code Here

Examples of com.sun.xml.ws.api.model.SEIModel

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

Examples of com.sun.xml.ws.api.model.SEIModel

        return null;
    }

    private SEIPortInfo createSEIPortInfo(QName portName, Class portInterface, WebServiceFeatureList features) {
        WSDLPort wsdlPort = getPortModel(wsdlService, portName);
        SEIModel model = buildRuntimeModel(serviceName, portName, portInterface, wsdlPort, features);
   
        return new SEIPortInfo(this, portInterface, (SOAPSEIModel) model, wsdlPort);
    }
View Full Code Here

Examples of com.sun.xml.ws.api.model.SEIModel

     * Creates a new pipeline for the given port name.
     */
    private Tube createPipeline(WSPortInfo portInfo, WSBinding binding) {
        //Check all required WSDL extensions are understood
        checkAllWSDLExtensionsUnderstood(portInfo,binding);
        SEIModel seiModel = null;
        if(portInfo instanceof SEIPortInfo) {
            seiModel = ((SEIPortInfo)portInfo).model;
        }
        BindingID bindingId = portInfo.getBindingId();

View Full Code Here

Examples of com.sun.xml.ws.api.model.SEIModel

        return null;
    }

    private SEIPortInfo createSEIPortInfo(QName portName, Class portInterface, WebServiceFeatureList features) {
        WSDLPort wsdlPort = getPortModel(wsdlService, portName);
        SEIModel model = buildRuntimeModel(serviceName, portName, portInterface, wsdlPort, features);
   
        return new SEIPortInfo(this, portInterface, (SOAPSEIModel) model, wsdlPort);
    }
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.