Hi ,
I am Implemented rest adapter using GET call as below
=GET("REST","-TV -METHOD post -URL
http://rest-dev-price.com/v3.0/price/token -HEADERS Authorization=Basic am9obkBleGFtcGxlLmNvbTphYmMxMjM= Content-Type=text/plain")
i also need to pass the body "grant_type=client_credentials" and Basic Auth in header header section, but the adapter trace shows a error while i run the map
<24508-7780-01/25/22 22:33:33>: [connect]
<24508-7780-01/25/22 22:33:33>: | Caught exception: com.hcl.hip.adapters.m4base.MBaseException
Specified value :Authorization=Basic am9obkBleGFtcGxlLmNvbTphYmMxMjM= Content-Type=text/plain is not in correct property format: key1=value1 key2=value2 key3=value3.
com.hcl.hip.adapters.m4base.MBaseException: Specified value :Authorization=Basic am9obkBleGFtcGxlLmNvbTphYmMxMjM= Content-Type=text/plain is not in correct property format: key1=value1 key2=value2 key3=value3.
at com.hcl.hip.adapters.m4rest.Utilities.getTableProperties(Utilities.java:136)
at com.hcl.hip.adapters.m4rest.MConnectionImpl.setMembers(MConnectionImpl.java:53)
at com.hcl.hip.adapters.m4rest.MConnectionImpl.connect(MConnectionImpl.java:128)
at com.hcl.hip.tools.adapterdriver.MConnectionImpl.connect(MConnectionImpl.java:59)
Note :- The space between Basic and encode string is causing the issue and tried to escape with a back slash , but that did not help.
Please let me know how this can be fixed.
------------------------------
Narendra Chimakurthi
------------------------------
#DataExchange#IBMSterlingTransformationExtender