Exemplo n.º 1
0
 /**
  * Unregisters the service with specified serviceKey using the specified
  * Node, as defined in the config file Note, if registration fails, no
  * exception is thrown
  *
  * @param businessKey
  * @param node
  */
 public void unRegisterBusiness(String businessKey, org.apache.juddi.apiv3.node node)
 {
     log.info("UnRegistering the business " + businessKey);
     try
     {
         String authToken = getAuthToken(node.securityUrl);
         delete_business deleteBusiness = new delete_business();
         deleteBusiness.authInfo = (authToken);
         deleteBusiness.businessKey = new string[1];
         deleteBusiness.businessKey[0] = (businessKey);
         using (UDDI_Publication_SoapBinding pub = getUDDINode().getTransport().getUDDIPublishService(node.publishUrl))
         {
             pub.delete_business(deleteBusiness);
         }
     }
     catch (Exception e)
     {
         log.error("Unable to register service " + businessKey
                 + " ." + e.Message, e);
     }
 }
Exemplo n.º 2
0
 /// <remarks/>
 public void delete_businessAsync(delete_business delete_business1, object userState)
 {
     if ((this.delete_businessOperationCompleted == null))
     {
         this.delete_businessOperationCompleted = new System.Threading.SendOrPostCallback(this.Ondelete_businessOperationCompleted);
     }
     this.InvokeAsync("delete_business", new object[] {
             delete_business1}, this.delete_businessOperationCompleted, userState);
 }
Exemplo n.º 3
0
 /// <remarks/>
 public System.IAsyncResult Begindelete_business(delete_business delete_business1, System.AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("delete_business", new object[] {
             delete_business1}, callback, asyncState);
 }
Exemplo n.º 4
0
 /// <remarks/>
 public void delete_businessAsync(delete_business delete_business1)
 {
     this.delete_businessAsync(delete_business1, null);
 }