Example #1
0
  public void updateDefinition(BindingTuple tuple) throws Exception {
    setBindingName(tuple.binding.getQName());

    if (getConfig().isSetDefinitionCache()) getConfig().unsetDefinitionCache();

    // update name
    if (getSettings().getBoolean(WsdlSettings.NAME_WITH_BINDING))
      setName(tuple.binding.getQName().getLocalPart());

    // update context
    wsdlContext = tuple.context;
    wsdlContext.setInterface(this);
    if (soapMessageBuilder != null) soapMessageBuilder.setWsdlContext(wsdlContext);
  }
Example #2
0
  /**
   * Used by importer so we dont need to reload the context after importing..
   *
   * @param wsdlContext
   */
  public void setWsdlContext(WsdlContext wsdlContext) {
    this.wsdlContext = wsdlContext;
    this.wsdlContext.setInterface(this);

    if (soapMessageBuilder != null) soapMessageBuilder.setWsdlContext(wsdlContext);
  }