aspose file tools*
The moose likes Web Services and the fly likes how to get XML schema info as String using Axis client API Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "how to get XML schema info as String using Axis client API" Watch "how to get XML schema info as String using Axis client API" New topic
Author

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

AWPLMumbai Rosi
Greenhorn

Joined: Mar 09, 2006
Posts: 2
1. my idea is when i connect dot.net webservice using Axis client api.
i want to get XML info (Schema info as String).

idea:
=====
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to get XML schema info as String using Axis client API