How do I send HTTP Properties without having the quotes around the actual value?

Date:31 March 2009
Product/Release:LANSA Integrator
Abstract:How do I send HTTP Properties without having the quotes around the actual value?
Submitted By:LANSA Technical Support

Description:

By default all HTTP properties sent with HTTP requests have quotes around the values.

There may be instances where it is required to send the HTTP Properties without being enclosed by quotes. But, by default, quotes are used, as per:

SOAPAction: "http://mywebsite/MyWebService/nnnnnnnnnnnnnnnnn"

The problem is that if the recipient's or partner's server programs are not designed to accept the quotes, then the request/response will be rejected.

Solution:

For instance, you may be using the ACTION keyword to include the SOAPAction in the HTTP properties which incorporates the quotes.

The ACTION keyword is a quick way to include the SOAPAction HTTP property.

To avoid the inclusion of quotes in the value passed, use the HTTPService SET command to set the HTTP properties.

  1. Create a working list with #NAME and #VALUE Columns.
    #WRKLST NAME VALUE
  2. Add the different properties and their values to the list.
    #NAME = SOAPAction
    #VALUE = http://............
    ADD_ENTRY #WRKLST
    #NAME = X-xxxx
    #VALUE = yyyy
    ADD_ENTRY #WRKLST
  3. Use the SET Command with the working List to specify the properties.
    SET PROPERTY(*LIST) SERVICE_LIST(NAME,VALUE) #WRKLST