axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "McCullough, Ryan" <rmccullo...@rightnow.com>
Subject RE: Accessing header in response
Date Tue, 20 May 2008 21:19:09 GMT
I forgot to mention I am using Axis C++ 1.6b (not version 2).

 

From: McCullough, Ryan 
Sent: Tuesday, May 20, 2008 3:18 PM
To: Apache AXIS C User List
Subject: Accessing header in response

 

How can I get header information from a response?

 

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"

               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

               xmlns:xsd="http://www.w3.org/2001/XMLSchema">

  <soap:Header><ResponseHeader
xmlns="urn:obj.api.rightnow.com"><Version>8.8.0.47</Version></ResponseHeader
></soap:Header>

     <soap:Body>

      <exec_rv xmlns="urn:obj.api.rightnow.com"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

        <fatal_err_rv>

            <called_fcn></called_fcn>

            <data></data>

            <location>

                <api_loc_item>

                    <fcn>check_ns</fcn>

                    <file>pair/xml_parser.c</file>

                    <line>579</line>

                </api_loc_item>

            </location>

            <msg>Error processing element 'ns2:SessionHeader'; 'ns2' is an
invalid namespace prefix</msg>

            <type>1</type>

            <xml_fcn_id xsi:nil="true" />

        </fatal_err_rv>

    </exec_rv>

  </soap:Body>

</soap:Envelope>

 

I want to retrieve 8.8.0.47 from <Version>8.8.0.47</Version>.

 

-Ryan

 

Ryan McCullough | RightNow Technologies | Integration Tools Engineer

406-556-3162 office | Bozeman, MT | rmccullough@rightnow.com |
http://www.rightnow.com <http://www.rightnow.com/> 

 


Mime
View raw message