// invokeService.addAttribute("name", arg1)
QName partnerLinkTypeQName = link.getPartnerLinkTypeQName();
Iterator<org.xmlpull.infoset.XmlElement> plIterator = partnerLinkTypes.iterator();
while (plIterator.hasNext()) {
org.xmlpull.infoset.XmlElement plType = plIterator.next();
XmlAttribute plTypeName = plType.attribute(NAME);
if (plTypeName.getValue().equals(partnerLinkTypeQName.getLocalPart())) {
// found the correct partnerlink type
// now find the porttype
XmlAttribute plPortType = plType.element("role").attribute("portType");
String portTypeQnameString = plPortType.getValue();
String[] portTypeSegs = portTypeQnameString.split(":");
Iterator<org.xmlpull.infoset.XmlNamespace> namespaceIterator = wsdlXml.namespaces().iterator();
QName portTypeQname = null;
// find the qname of the porttype
while (namespaceIterator.hasNext()) {