How to Deal with <s:sequence><s:any/></s:sequ

Hi Experts,

I am trying to Consume a WSDL that has the following tags in one of the elements xDoc:
<s:sequence>
<s:any/>
</s:sequence>

the Snapshot of the WSDL is:

<s:element minOccurs=“0” maxOccurs=“1” name=“xDoc”>
<s:complexType mixed=“true”>
<s:sequence>
<s:any/>
</s:sequence>

and consuming the WSDL in SOAP has the following Structure:

     <web:xDoc>

     <!--You may enter ANY elements at this point-->
      
     </web:xDoc>

I have 25 columns to be sent under xDoc and when i try to execute, i am getting the following Error:

the number of columns for nested table is <0>, while the input nested table has <25> columns. Ensure that the number of columns is identical.

Please share your suggestions to deal with this kind of scenario.

Regards,
Jayant


Jay_mKumar :india: (BOB member since 2016-03-24)

you can replace the any with the schema of the message that you are sending or receiving


manoj_d (BOB member since 2009-01-02)

Hi Manoj,

Thanks, but the issue is the Webservice is expecting XML structure in the xDoc schema element.

Ex:

.........

i did as per your suggestion but the webservice is not accepting the added elements
what I tried to do is, i changed the datatype to String in the WSDL and concatenated the data





in a Varchar column and mapped to the Webservice call,
but now i am getting the following Famous Error:

“There is no response from the Webservice” :hb:

I tried to copy the data generated in the concatenated column in debug mode and pasted in SOAPUI, it works fine.

Please let me know how to resolve this scenario

Thanks,
Jay


Jay_mKumar :india: (BOB member since 2016-03-24)

I don’t think concatenating data in a single varchar column will work, you need to modify the WSDL and replace the any with schema of input that you want to send

is it possible for you to share the WSDL ? and input and output that you are trying to send to the webservice ? you can attach the XML (input and output) that you are using in Soap UI


manoj_d (BOB member since 2009-01-02)