IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Incoming XML Encoding Issue

    Posted Mon September 25, 2017 11:06 AM

    Hi wMusers,

    Thanx in advance.
    

    I am receiving a xml through HTTP POST methods. So I kept node as Input and while receiving xml from source. I am receiving blank message as it has encoding UTF-16. If I post using SOAP UI keeping encoding UTF-8 it is working fine. But source cant change their setting itseems. So could you please help me out how to receive xml message in webMethods with encoding UTF-16.

    Do I need to change any setting in IS or can I change my code to receive UTF-16 xml message.Please help me out.


    #webMethods-Architecture
    #webMethods
    #Integration-Server-and-ESB
    #webMethods-General


  • 2.  RE: Incoming XML Encoding Issue

    Posted Mon September 25, 2017 05:50 PM

    First check when they post if the content-type is populated with: text/xml

    Also, does the xml tag has proper encoding attribute populated?
    like this:

    <?xml version="1.0" encoding="UTF-8"?>...

    if they do, it should work.


    #Integration-Server-and-ESB
    #webMethods
    #webMethods-Architecture
    #webMethods-General


  • 3.  RE: Incoming XML Encoding Issue

    Posted Tue September 26, 2017 05:06 AM

    Hi,

    Thanx for the Quick reply.

    Our request is like

    <?xml version="1.0" encoding="utf-16"?> PP_TST a7dfde40-ca64-428c-a8d6-839f28118e32 c72d2136-acf3-4611-8eb7-c5b5302f31eb 7189b757-aa69-4501-81fd-8b8c6a06e998 ZZTEST Ok TestMessage

    But we are receiving only <?xml version="1.0" encoding="utf-16"?> We are not getting the remaining tags.

    If we are trying as UTF-8 it is working fine. But the source system is sending UTF-16. Does WM accept UTF-16 xml messages? If do, does i need to change any settings in admin page or in code?


    #webMethods-General
    #webMethods-Architecture
    #Integration-Server-and-ESB
    #webMethods