VirtualBox

Changeset 31117 in vbox for trunk/src/VBox/Main/webservice


Ignore:
Timestamp:
Jul 26, 2010 2:49:24 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
64079
Message:

Python WS: generate code compatible with newer ZSI

Location:
trunk/src/VBox/Main/webservice
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/webservice/Makefile.kmk

    r31022 r31117  
    156156VBOXWEB_IDL_SRC_ORIG          := $(VBOX_XIDL_FILE)
    157157VBOXWEB_IDL_SRC               := $(VBOXWEB_OUT_DIR)/VirtualBox.xidl
     158VBOXWEB_WSDL                   = $(VBOX_PATH_SDK)/bindings/webservice/vboxweb.wsdl
     159VBOXWEBSERVICE_WSDL            = $(VBOX_PATH_SDK)/bindings/webservice/vboxwebService.wsdl
    158160
    159161VBOXWEB_TYPEMAP               := $(VBOXWEB_OUT_DIR)/typemap.dat
     
    286288 vboxwebsrv_ORDERDEPS = $(VBOXWEB_OUT_DIR)/gsoap_copy_all_ts
    287289 endif # !VBOX_ONLY_SDK
    288 
    289 VBOXWEB_WSDL                   = $(VBOX_PATH_SDK)/bindings/webservice/vboxweb.wsdl
    290 VBOXWEBSERVICE_WSDL            = $(VBOX_PATH_SDK)/bindings/webservice/vboxwebService.wsdl
    291290
    292291ifdef VBOX_WITH_JWS
  • trunk/src/VBox/Main/webservice/websrv-python.xsl

    r29835 r31117  
    465465from VirtualBox_services import *
    466466
     467try:
     468  from VirtualBox_client import *
     469except:
     470  pass
     471
    467472class ManagedManager:
    468473  def __init__(self):
     
    855860  def getPort(self):
    856861      if self.port is None:
    857           self.port = vboxServiceLocator().getvboxPortType(self.url)
     862          try:
     863             self.port = vboxServiceLocator().getvboxPortType(self.url)
     864          except:
     865             self.port = vboxServiceLocator().getvboxServicePort(self.url)
    858866      return self.port
    859867
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette