Skip to content

pbRequestBare - cClientWebService

Determines if the web service's soap request uses a bare style for parameters

Type: Property
Access: Read/Write
Data Type: Boolean
Parameters: None

Syntax

Property Boolean pbRequestBare
Access Type Syntax
Read Access: Get pbRequestBare to BooleanVariable
Write Access: Set pbRequestBare to BooleanVariable/Value

Description

Document style web-services usually use a "wrapped" style when creating a soap response or request. Some services (e.g., .net) allow you to define a bare style where a wrapper element is not included in the soap body. When the DataFlex Client Service Generator encounters such a service it will set the pbResponseBare and pbRequestBare properties to true. This allows the client class to properly serialize and deserialize the data. These request and response properties are usually the same, but it is possible to set these styles individually.

Since the bare vs. wrapped style is determined by the web-service, you should never need to change this.

This property only applies to document style web services. RPC styles always use a wrapped style.

The Web Service Client Generator determines if a style is bare or wrapped by looking at the service's WSDL. If the name attribute within the part element section (which is in the message element section) has a value of "parameters" the document is wrapped (pbResponseBare / pbRequestBare are false). If the name is not "parameters", it is bare. You should note that most part names are set to "parameters" and therefore most services use a wrapped style.