You can iterate on the request object so you can get all attributes and namespaces used in the request for manipulating specific attributes or filling them as well to create the service request.
You can iterate the response object as well, or you can also convert its elements to a map and then access the element needed by its name as you go through the xml tree.
WSInvoker invoker = new WSInvoker();
...
Attribute resp = invoker.invoke( op );
Map< String, Object > map = AttributeUtils.createFullMapFromType( (ComplexType)resp );
String value = (String)map.get( "primitiveField" );
System.out.println( value );
Map< String, Object > cp = (Map< String, Object >)map.get( "complextField1" );
value = (String)cp.get( "otherPrimitiveField" );
System.out.println( value );
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Parser API
Creates a new parser and parses a wsdl based web service.
Last edit: Rodrigo Salvo 2013-04-13
Invoker API
Creates a new invoker so you can call a web service from the parsed source.
Last edit: Rodrigo Salvo 2013-04-13
Getting Request Schema
You can iterate on the request object so you can get all attributes and namespaces used in the request for manipulating specific attributes or filling them as well to create the service request.
Dealing With Response
You can iterate the response object as well, or you can also convert its elements to a map and then access the element needed by its name as you go through the xml tree.