[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: UCS2
Hi Scott,
On further investigation, my "garbled" return tags were simply a symptom of the remote server not understanding the SOAP message: after writing the server's response in full to an IFS file, I saw I was getting an "Unmarshalling error" - not something I've seen before. After some thought, I have multiplied by 2 the length parm to the HTTP_POST_XML - now using %len(SOAP)*2 as the third parm, and everything is as expected.
The callback procedure always was working fine, sorry for the confusion, I was working late last night!
Regards,
Darrell
Darrell Kavanagh
UK IT
John Wiley & Sons Ltd
+44(0)1243 843389
mobile +44(0)7521 370037
home +44(0)23 92 297524
-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Scott Klement
Sent: 06 December 2012 05:35
To: HTTPAPI and FTPAPI Projects
Subject: Re: UCS2
Hi Darrell,
I'm going to need to troubleshoot that... I can't think why you'd get
"garbled" data in your start procedure? Can you please provide more
details, I'll need to know enough about how you've coded your program that I can attempt to reproduce the problem.
-SK
On 12/5/2012 6:54 PM, Kavanagh, Darrell - Bognor wrote:
> Hello All,
>
> Hopefully a quick question: I'm trying to convert an RPG web service
> client program to use UCS2 as it will be running on different systems
> with different job CCSIDs. So far, I've changed the data type of the
> SOAP variable to "C", set the CCSIDs with http_setCCSIDs(1208:
> 13488);, and changed SOAP='......'; to
> SOAP=%UCS2('................');
>
> But the input to my element start procedure defined in http_post_xml() is now garbled. What other changes should I make?
>
> I'm using HTTPAPI v1.23.
>
> Thanks,
> Darrell
>
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------
John Wiley & Sons Limited is a private limited company registered in England with registered number 641132.
Registered office address: The Atrium, Southern Gate, Chichester, West Sussex, United Kingdom. PO19 8SQ.
------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------