list = sBody.getEncodingStyles();
if ( list != null && list.size() > 0 )
this.setEncodingStyle( (String) list.get(0) );
String ns = sBody.getNamespaceURI();
if (ns != null && !ns.equals(""))
setOperationName( new QName( ns, opName ) );
break ;
}
}
}
// Get the parameters
////////////////////////////////////////////////////////////////////
List paramOrder = op.getParameterOrdering();
Input input = op.getInput();
javax.wsdl.Message message = null ;
List parts = null ;
this.removeAllParameters();
if ( input != null ) message = input.getMessage();
if ( message != null ) parts = message.getOrderedParts( paramOrder );
if ( parts != null ) {
for ( int i = 0 ; i < parts.size() ; i++ ) {
Part part = (Part) parts.get(i);
if ( part == null ) continue ;
String name = part.getName();
javax.wsdl.QName type = part.getTypeName();
if ( type == null ) {
type = part.getElementName();
if ( type != null )
type = new javax.wsdl.QName("java","org.w3c.dom.Element");
else
throw new JAXRPCException(
JavaUtils.getMessage("typeNotSet00", name) );
}
QName qname = new QName(type.getNamespaceURI(),
type.getLocalPart());
ParameterMode mode = ParameterMode.IN;
this.addParameter( name, qname, mode );
}
}
// Get the return type
////////////////////////////////////////////////////////////////////
Output output = op.getOutput();
message = null ;
if ( output != null ) message = output.getMessage();
if ( message != null ) parts = message.getOrderedParts(null);
this.setReturnType( null ); //Make sure we're restarting from fresh.
// if (null != paramTypes) // attachments may have no parameters.
if (operation != null && operation.getNumParams() > 0) // attachments may have no parameters.
this.setReturnType( XMLType.AXIS_VOID );
if ( parts != null ) {
for( int i = 0 ;i < parts.size() ; i++ ) {
Part part = (Part) parts.get( i );
if (paramOrder != null && paramOrder.contains(part.getName()))
continue ;
javax.wsdl.QName type = part.getTypeName();
if ( type == null ) {
type = part.getElementName();
if ( type != null )
type = new javax.wsdl.QName("java","org.w3c.dom.Element");
else
throw new JAXRPCException(
JavaUtils.getMessage("typeNotSet00", "<return>") );
}
QName qname = new QName(type.getNamespaceURI(),
type.getLocalPart());
this.setReturnType( qname );
break ;
}
}