cancel
Showing results for 
Search instead for 
Did you mean: 

Found character data inside an array element while deserializing

Former Member
0 Kudos

Hi Experts,

When I am trying to execute the webservice I am getting the following error

Found character data inside an array element while deserializing

Actual structure is as follows

<?xml version="1.0" encoding="ISO-8859-1"?>

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://10.1.2.21:8090/axis/services/InventoryManager" targetNamespace="http://10.1.2.21:8090/axis/services/InventoryManager">

<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/" />

<xsd:element xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns="" name="retrieveInventoryRequest" type="retrieveInventoryRequest" />

<xsd:complexType xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" name="ArrayOf_xsd_string">

<xsd:complexContent>

<xsd:restriction base="soapenc:Array">

<xsd:attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]" />

</xsd:restriction>

</xsd:complexContent>

</xsd:complexType>

<xsd:complexType xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" name="ArrayOf_tns1_SkuQuantity">

<xsd:complexContent>

<xsd:restriction base="soapenc:Array">

<xsd:attribute ref="soapenc:arrayType" wsdl:arrayType="tns1:SkuQuantity[]" />

</xsd:restriction>

</xsd:complexContent>

</xsd:complexType>

</xsd:schema>

I know XI doesnt support array types thats why I have created my own structure as follows

<?xml version="1.0" encoding="ISO-8859-1"?>

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<xsd:element name="retrieveInventory" type="InvArray" />

<xsd:complexType name="InvArray">

<xsd:sequence>

<xsd:element name="pOutletList" type="xsd:string" maxOccurs="unbounded" form="qualified" />

<xsd:element name="pSkuQuantityList" type="xsd:string" maxOccurs="unbounded" form="qualified" />

</xsd:sequence>

</xsd:complexType>

</xsd:schema>

This webservice takes input like

storenumber1;storenumner2....

item1,qty;item2,qty.

I am passing values like this to my webservice. But still I am getting the same probl

Accepted Solutions (0)

Answers (1)

Answers (1)

prateek
Active Contributor
0 Kudos

The problem doesn't seem to be related to the XI system. Have you done any configuration at receiver Webservice to convert the string data passed through XI into string array data? I think there is a mismatch in what XI sends and receiver expects.

Regards,

Prateek

Former Member
0 Kudos

Hi

How to convert String Data to Array in XI system to send it to webservice.

Please help us

Regards

Sowmya

prateek
Active Contributor
0 Kudos

This couldn't be directly handled at XI. Can't your webservice logic accomodate that?

Regards,

Prateek

Former Member
0 Kudos

No, there is no chance of changing webservice at receiver side

Regards

Sowmya