WSDLPull using complex type inputs

I am trying to call a web service method using wsdlpull, and it's pretty simple until I get one service method that takes a parameter, which is an array of complextypes types, in which case it takes 1 parameter, which is an unlimited number of types containing 2 member - an array of name / value pairs.

<s:complexType name="SendDetails">
  <s:sequence>
    <s:element minOccurs="0" maxOccurs="unbounded" name="Detail" type="tns:Detail"/>
  </s:sequence>
</s:complexType>

<s:complexType name="Detail">
  <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="Name" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="Value" type="s:string"/>
  </s:sequence>
</s:complexType>

and I don’t know how to do this as parameters for wsdlpull.

Does anyone have example code or snippet to run me before rewriting with another tool?

+4
source share
1 answer

, WsdlInvoker (?). setValue setInputValue, , , validate, :

const XSDType * pType = sParser_->getType(typeId);
if (pType && !pType->isSimple()){
   return 0;
}

, , , , , .

, , gSOAP2 Microsoft Windows Web Services API - .

+1

Source: https://habr.com/ru/post/1584070/


All Articles