This week's giveaway is in the Java/Jakarta EE forum.
We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line!
See welcome thread
Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

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 ]
You save more money with a clothesline than dozens of light bulb purchases. Tiny ad:
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!