12.07.2015 Views

Using SOAP and Web Services with Ensemble - InterSystems ...

Using SOAP and Web Services with Ensemble - InterSystems ...

Using SOAP and Web Services with Ensemble - InterSystems ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2. Optionally set properties to control the behavior of your instance.Common Properties of %<strong>SOAP</strong>.WSDL.Reader<strong>Using</strong> the <strong>SOAP</strong> Client WizardPropertyCompileFlagsMakePersistentMakeSerialOutputTypeAttributeMakeBusinessOperationPurposeSpecifies the flags to use when compiling thegenerated classes.The initial expression is "dk"; use$System.OBJ.ShowFlags() to get information on theavailable flags.If this property is 1, the proxy client is a persistentobject; otherwise, it is a registered object. The initialexpression is 0.If this property is 1 <strong>and</strong> if MakePersistent is 1, the proxyclient is a serial class. The initial expression is 0.Controls how the WSDL reader will set theOUTPUTTYPEATTRIBUTE parameter in the proxyclient that it generates; which controls the use of thexsi:type attribute in the <strong>SOAP</strong> messages. See <strong>Using</strong><strong>SOAP</strong> <strong>and</strong> <strong>Web</strong> <strong>Services</strong> <strong>with</strong> Caché in the Cachédocumentation set.Specifies whether to generate an <strong>Ensemble</strong> businessoperation <strong>and</strong> related request <strong>and</strong> response objects.The ADAPTER setting for this business operation isEnsLib.<strong>SOAP</strong>.OutboundAdapter. This option works onlyif you are working <strong>with</strong>in an <strong>Ensemble</strong>-enablednamespace.For other properties, see the class documentation for %<strong>SOAP</strong>.WSDL.Reader.3. Invoke the Process method, providing the following arguments:• The first argument must be the URL of the WSDL of the <strong>Web</strong> service or the name of theWSDL file (including its complete path). Depending on the configuration of the <strong>Web</strong> service,it may be necessary to append a string that provides a suitable username <strong>and</strong> password; seethe examples.• The optional second argument is the name of the package in which the reader should placethe generated classes. If you do not specify a package, Caché uses the service name as thepackage name.<strong>Using</strong> <strong>SOAP</strong> <strong>and</strong> <strong>Web</strong> <strong>Services</strong> <strong>with</strong> <strong>Ensemble</strong> 31

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!