Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0
-
None
-
win XP + sun 1.5 SDK
Description
This was working fine for scout 0.5, but not with the latest trunk. If a businessEntity contains more than one discoveryURLs, it will be constructed as this:
<urn:discoveryURLs>
<urn:discoveryURL useType="businessEntityExt">http://localhost:8080/page2.html
</urn:discoveryURL>
</urn:discoveryURLs>
<urn:discoveryURLs>
<urn:discoveryURL useType="businessEntityExt">http://localhost:8080/page1.html
</urn:discoveryURL>
</urn:discoveryURLs>
This will cause prob in juddi when abstractservice doPost is called and one of the discoveryURLs won't get processed and will be lost. The fix is to call biz.addNewDiscoveryURLs() only once per iteration (result below) so that only same as scout 0.5.
<urn:discoveryURLs>
<urn:discoveryURL useType="businessEntityExt">http://localhost:8080/page2.html
</urn:discoveryURL>
<urn:discoveryURL useType="businessEntityExt">http://localhost:8080/page1.html
</urn:discoveryURL>
</urn:discoveryURLs>