Skip to Content
avatar image
Former Member

Message Mapping Question

Hi,

The Response of a WebService is this string:

<StockQuotes><Stock><Symbol>MSFT</Symbol><Last>28.63</Last>

<Date>8/13/2007</Date> <Name>MICROSOFT CP</Name></Stock></StockQuotes>

This is delivered as an xml:string type.

How do I map this to this structure:

MT_StockQuote_Response

- Symbol

- LastQuoteValue

- Date

- Name

TIA.

Regards.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Aug 16, 2007 at 12:04 PM

    When I imported the WSDL of the WebService, I can only see a single element in the message structure, a xml:string. (The WS response is a string which can be parsed as an XML)

    But in my response mapping, I need to amp this string to the structure I mentioned above. I dont think this is possible via Graphical Mapping, is it?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      make sure u r importing the correct wsdl... u have to import one of the 3 wsdls which constitute the zip file of the wsdl

      Vaibhav

  • avatar image
    Former Member
    Aug 16, 2007 at 11:59 AM

    karthik,

    you can map this one to one directly

    MT_StockQuote_Response

    - Symbol --->Symbol

    - LastQuoteValue--->LastQuoteValue

    - Date--->Date

    - Name--->Name

    but this come only once even though source may come mutiple times . to work as it as source you need to change ur target strucutre

    MT_StockQuote_Response

    StockQuotes--->StockQuotes

    Stock--->Stock

    - Symbol --->Symbol

    - LastQuoteValue--->LastQuoteValue

    - Date--->Date

    - Name--->Name

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 16, 2007 at 12:01 PM

    When u have imported the wsdl as an external definition, in the 'messages' tab u will see the messages imported from wsdl. When u select those messages as sender message type in message mapping then graphical mapping can be done easily.

    Vaibhav

    Add comment
    10|10000 characters needed characters exceeded