Re: printing SOAP response
On Sat, Sep 5, 2009 at 1:54 AM, Kevin Steves 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 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: http://www.trustedcomputinggroup.org/2006/IFMAP/1 > ">10.136.244.254 > 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: > > xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";> xmlns:ifmap="http://www.trustedcomputinggroup.org/2006/IFMAP/1";>10.136.244.254 xmlns:ifmap="http://www.trustedcomputinggroup.org/2006/IFMAP/1";>2093d57c226bc9e739fd24169a36 xmlns:ifmap="http://www.trustedcomputinggroup.org/2006/IFMAP/1";>10.136.244.254 xmlns:ifmap="http://www.trustedcomputinggroup.org/2006/IFMAP/1 > ">2093d57c226bc9e739fd24169a36 > -- http://wso2.org http://llvm.org http://www.minix3.org
Re: printing SOAP response
On Sat, Sep 05, 2009 at 01:35:19AM +0530, Rajika Kumarasiri wrote: : On Sat, Sep 5, 2009 at 1:20 AM, Kevin Steves 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: http://www.trustedcomputinggroup.org/2006/IFMAP/1";>10.136.244.254 SOAP response: http://schemas.xmlsoap.org/soap/envelope/";>http://www.trustedcomputinggroup.org/2006/IFMAP/1";>10.136.244.254http://www.trustedcomputinggroup.org/2006/IFMAP/1";>2093d57c226bc9e739fd24169a36http://www.trustedcomputinggroup.org/2006/IFMAP/1";>10.136.244.254http://www.trustedcomputinggroup.org/2006/IFMAP/1";>2093d57c226bc9e739fd24169a36
Re: printing SOAP response
On Sat, Sep 5, 2009 at 1:20 AM, Kevin Steves 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. -Rajika > I'm using the service client API. > tcpmon isn't an option because the service is https-only. > -- http://wso2.org http://llvm.org http://www.minix3.org
printing SOAP response
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. I'm using the service client API. tcpmon isn't an option because the service is https-only.