[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

question on how to parse out a response from service



   All,
   Hello we are trying to return the following string to the AS/400 and
   need to know how we would parse this out so we get values and tags as
   needed. I am new to this process and need a little help understanding
   how to handle this type of a return from a web service.
   We send this type of a request using  this command to request the
   response from the service:
   http_url_post_xml(%TRIM(PPCXADR)
                    : %addr(postData) + 2
                    : %len(postData)
                    : %paddr(PARSERTRNXML)
                    : *Null
                    : *NULL );
   This is the string we send to the server:

   <WSPInternalPayload>
   <Parameter name="ClientId" value="9999"/>
   <Parameter name="ClientAccountNumber" value="AXXX00099999999999"/>
   <Parameter name="ServiceMethod" value="DeleteeBillPaymentSchedule"/>
   <Parameter name="Host" value="mo" />
   </WSPInternalPayload>

   And we are able to connect and pass the request to the service and the
   service processes it fine but then the service returns the following
   string:

   <WSPInternalPayload>
   <Aggregate name="DeletePaymentStatus">
   <Parameter name="Status" value="999" />
   <Parameter name="Description" value="No eBill Payment Schedule found
   for ClientId 9999 TransactionType I ClientAccountNumber
   AXXX00099999999999" />
   </Aggregate>
   </WSPInternalPayload>

   When we look at the data coming back from the service it looks fine but
   when we try to parse it we don't see all the values it seems to only
   return bits and pieces. So how would you recommend we return and parse
   the data above to get the tags and the data correctly?
   Thanks,
   George A. Baldwin
   CGI Consultant
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------