private void addDocumentStyleInputMessageToMethodInfo(
Operation op,
MethodInfo minfo)
throws WrapperFault
{
Element element;
QName qname;
ParameterInfo pinfo;
Type type;
Iterator paramlist;
paramlist = op.getInput().getMessage().getParts().values().iterator();
Part part = (Part) paramlist.next();
QName minfoqname;
element = symbolTable.getElement(part.getElementName());
if (element == null)
{
// the part reference a type.
qname = symbolTable.getType(part.getTypeName()).getQName();
minfoqname = symbolTable.getType(part.getTypeName()).getQName();
}
else
{
qname = element.getRefType().getQName();
minfoqname = element.getQName();
}
minfo.setInputMessage(minfoqname);
if (qname != null)
{
type = this.typeMap.getType(qname);
boolean wrapped = wsdlWrappingStyle;
if (type == null)
{
throw new WrapperFault(
"unregistered type " + qname + " referred");
}
if (wrapped)
{
//get inner attributes and elements and add them as parameters
addInputElementsToMethodInfo(minfo, type);
addInputAttributesToMethodInfo(minfo, type);
}
else
{ // for non-wrapped style wsdl's
String elementName = (String) element.getQName().getLocalPart();
pinfo = new ParameterInfo(type, elementName);
pinfo.setElementName(type.getName());
if (type.getName().equals(CUtils.anyTypeQname))
{
pinfo.setAnyType(true);