axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajika Kumarasiri <rajika.kumaras...@gmail.com>
Subject Re: printing SOAP response
Date Sat, 05 Sep 2009 04:06:53 GMT
On Sat, Sep 5, 2009 at 1:54 AM, Kevin Steves <stevesk@pobox.com> wrote:

> On Sat, Sep 05, 2009 at 01:35:19AM +0530, Rajika Kumarasiri wrote:
> : On Sat, Sep 5, 2009 at 1:20 AM, Kevin Steves <stevesk@pobox.com> wrote:
> : hi Kevin,
> : Try  axis2_char_t * axiom_node_to_string(axiom_node_t *, axis2_env_t *);
> :
> : Is there a way to print the SOAP response message in a client (as a
> : > string) for debugging purposes?  I've been digging through the
> : > archives and didn't find anything.
> :
> : The samples distribute with the source should help.
>
> thanks, I've looked at those, and was already using
> axiom_node_to_string().  however I'm not seeing an expected element in
> the response and I'm not sure why, so I wanted to see the SOAP message
> in the client to confirm it's what I think it is.
>
> given the SOAP response message below, I only see publisher-id when
> I convert the return node to a string.
>
> output from axiom_node_to_string():
>
> Received OM: <ifmap:publisher-id xmlns:ifmap="
> http://www.trustedcomputinggroup.org/2006/IFMAP/1
> ">10.136.244.254</ifmap:publisher-id>
>

This is the correct behaviour. It'll only show the payload.  May be you need
to try
axiom_soap_envelope_t *AXIS2_CALL
    axis2_svc_client_get_last_response_soap_envelope(
        const axis2_svc_client_t * svc_client,
        const axutil_env_t * env)

in client API?

-Rajika

>
> SOAP response:
>
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ifmap:publisher-id
> xmlns:ifmap="http://www.trustedcomputinggroup.org/2006/IFMAP/1">10.136.244.254</ifmap:publisher-id><ifmap:session-id
> xmlns:ifmap="http://www.trustedcomputinggroup.org/2006/IFMAP/1">2093d57c226b0000c9e739fd24169a36</ifmap:session-id></soap:Header><soap:Body><ifmap:publisher-id
> xmlns:ifmap="http://www.trustedcomputinggroup.org/2006/IFMAP/1">10.136.244.254</ifmap:publisher-id><ifmap:session-id
> xmlns:ifmap="http://www.trustedcomputinggroup.org/2006/IFMAP/1
> ">2093d57c226b0000c9e739fd24169a36</ifmap:session-id></soap:Body></soap:Envelope>
>



-- 
http://wso2.org
http://llvm.org
http://www.minix3.org

Mime
View raw message