Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to get XML schema info as String using Axis client API

AWPLMumbai Rosi
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. my idea is when i connect webservice using Axis client api.
i want to get XML info (Schema info as String).

if i get reply message as String i will copy String as XML file local path and parse it.

here is my client code:

GetDataService service = (GetDataService) new GetDataServiceLocator();
System.out.println("Get Data Service Soap Address = "+service.getGetDataServiceSoapAddress());
GetDataServiceSoap port = service.getGetDataServiceSoap();
GetDataResponseGetDataResult obj = (GetDataResponseGetDataResult)port.getData("2346754");
System.out.println("The Obj value is ="+obj);
//TypeDesc ff = obj.getTypeDesc();

//PrudentialData gha = PrudentialData
//PrudentialData ffgg = new PrudentialData();
//PrudentialDataProposals jj = ffgg.getProposals();
//PrudentialDataATSBUW gh = ffgg.getATSBUW();
//QName ff1 = ff.getXmlType();
//String giri = ff1.getNamespaceURI();
//System.out.println("The Obj value is ="+giri);

MessageElement [] obj2 = obj.get_any();

int g = obj2.length;
SeshaSayeeClient ses = new SeshaSayeeClient();
String[][] nameVal = new String[112][2];

for(int z=0;z < g;z++)
System.out.println("The returned value is ="+obj2[z].getAsString());
Element el = (MessageElement)obj2[z].getAsDOM();
Document e2 = obj2[z].getAsDocument();
[ March 11, 2006: Message edited by: AWPLMumbai Rosi ]
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic