First of all thank you so much for the reply. I am glad sir.
I figured out what causing the issue why the extra spaces are appending while passing as parameters in the below API.
rc = http_url_post_xml('http://HELLOWORLD.COM/testService.svc'
: %addr(SOAP) + 2
: %len(SOAP)
: *NULL
: %paddr(Incoming)
: *NULL
: HTTP_TIMEOUT
: HAGENT
: CONTT
: SACTN);
I am passing the values as below.
HAGENT= 'http-api/1.23'
CONTT = 'text/xml'
SACTN = 'SubmitMessage'
But when the above API gets processed and when the call happens to service program HTTPAPIR4 there is a call to another API http_url_post_raw happening, there I see the parameters have the values like below.
wwRC = http_url_post_raw( peURL
: pePostData
: pePostDataLen
: 9
: %paddr(ParseXML)
: peTimeout
: peUserAgent
: peContentType
: peSOAPAction ) ;
peUserAgent = ' http-api/1.23'
peContentType = ' text/xml'
peSOAPAction = ' SubmitMessage'
And when I proceed with this API its calling another API http_persist_post and here I noticed another API called getSA for get ridding of the additional space.
if %parms>=10
and %addr(peUserAgent)<>*null
eval p_UserAgent = %addr(wwUA)
eval wwUserAgent = getSA(peUserAgent)
else
eval p_UserAgent = *NULL
endif
But in my PROD I don’t see getSA line of code and then I realized there is difference between my DEV and PROD service pgm versions.
I am now downloading the latest SAV file from your website and restoring the same in PROD and I hope this will resolve the issue.
Hello Ramesh,
Sorry, I'm not understanding what you are doing. These sound like HTTP headers, but you refer to them as "parameter values"... but, I don't understand why you would want to use HTTP headers in your application.
Can you please show the relevant code where you are calling HTTPAPI and providing these values so that we can understand?
Also, please explain why this extra space matters to you. Does it cause an error? if so, what is that error?
Thanks
-SK
On 5/16/18 11:34 PM, Ramesh Mannepalli wrote:
Guys - I am trying to call biztalk service from 400 and passing the parameter values in the fields Agent,Content, Action as below.
'http-api/1.23''text/xml''SubmitMessage'
but while processing HTTPAPIR4 service program I noticed and additional space is getting added to the above values like below which causing error, Can any one encounter this issue, Please let me know how to resolve this issue.
' http-api/1.23'' text/xml'' SubmitMessage'
Regards,Ramesh M.
--
_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi
-- _______________________________________________ Ftpapi mailing list Ftpapi@xxxxxxxxxxxxxxxxxxxxxx http://scottklement.com/mailman/listinfo/ftpapi