Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error in WebServices Consumption - There are multiple root elements

Former Member
0 Likes
311

hi,

I am working on consuming webservice which has a WSDL to get the RouteDetails with a structure like:

<Source>

<HouseNumber>1</HouseNumber>

<Street>XYZ</Street>

<City>Hyderabad</City>

<Country>India</Country>

<PostalCode>500018</PostalCode>

</Source>

<Destination>

<HouseNumber>2</HouseNumber>

<Street>X1Y1Z1</Street>

<City>Bangalore</City>

<Country>India</Country>

<PostalCode>500067</PostalCode>

</Destination>

When I am calling the method RouteDetails of the proxy I created, I am getting the error 'There are multiple root elements in line 1 column 178 and the column is indicating <HouseNumber> in <Destination> node.

Please let me know how to overcome this.

Thanks for the help

Githa

hi,

I am working on consuming webservice which has a WSDL to get the RouteDetails with a structure like:

<Source>

<HouseNumber>1</HouseNumber>

<Street>XYZ</Street>

<City>Hyderabad</City>

<Country>India</Country>

<PostalCode>500018</PostalCode>

</Source>

<Destination>

<HouseNumber>2</HouseNumber>

<Street>X1Y1Z1</Street>

<City>Bangalore</City>

<Country>India</Country>

<PostalCode>500067</PostalCode>

</Destination>

When I am calling the method RouteDetails of the proxy I created, I am getting the error 'There are multiple root elements in line 1 column 178 and the column is indicating <HouseNumber> in <Destination> node.

Please let me know how to overcome this.

Thanks for the help

Githa

1 REPLY 1
Read only

Former Member
0 Likes
277

Its now resolved. Thanks,

Githa