Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search Coderanch
Advance search
Google search
Register / Login
Raffi McGregor
Greenhorn
+ Follow
2
Posts
1
Threads
0
Cows
since Apr 19, 2010
Merit badge:
grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
Ranch Hand Scavenger Hunt
Number Posts (2/100)
Number Threads Started (1/100)
Number Cows Received (0/5)
Number Likes Received (0/10)
Number Likes Granted (0/20)
Set bumper stickers in profile (0/3)
Report a post to the moderators (0/1)
Edit a wiki page (0/1)
Create a post with an image (0/2)
Greenhorn Scavenger Hunt
First Post
Number Posts (2/10)
Number Threads Started (1/10)
Number Likes Received (0/3)
Number Likes Granted (0/3)
Set bumper stickers in profile (0/1)
Set signature in profile
Search for a post/thread (0/3)
Set a watch on a thread
Save thread as a bookmark
Create a post with an image (0/1)
Recent posts by Raffi McGregor
How to print SOAP response as XML in AXIS 1...
Hi Srini,
thanks, I found that code yesterday.
I also figured out how to do it using handlers on the client:
Put this file in your client's JVM working directory
<deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"> <globalConfiguration> <requestFlow/> <responseFlow> <handler type="java:com.ofi.efm.events.poc.ws.SOAPResponseHandler"/> </responseFlow> </globalConfiguration> <transport name="http" pivot="java:org.apache.axis.transport.http.HTTPSender"/> </deployment>
SOAPResponseHandler.java
public class SOAPResponseHandler extends BasicHandler { public void invoke(MessageContext msgContext) throws AxisFault { try { String response = msgContext.getResponseMessage().getSOAPPartAsString(); System.out.println(response); } catch (Exception e) { // capture and wrap any exception. throw new AxisFault( "Failed!"); } } }
show more
13 years ago
Web Services
How to print SOAP response as XML in AXIS 1...
I am using Axis (not Axis 2) in a web service client. Everything works fine in the code below but I am trying to get the response as an XML string. The
service
class does not provide a method to get the SOAP response part as a XML string.
//locate service FundEditorServiceImplServiceLocator locator = new FundEditorServiceImplServiceLocator(); FundEditorService service = locator.getFundEditorServiceImplPort(); //invoke service FundInfo response = service.getFundInfo(fundInfoSpec); //want to get response as XML here!!
Thank you
show more
13 years ago
Web Services