<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Web Services</title><link>https://www.infopathdev.com:443/forums/48.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: InfoPath 2003 and Axis web service with Arrays</title><link>https://www.infopathdev.com:443/forums/thread/19519.aspx</link><pubDate>Wed, 02 May 2007 15:47:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19519</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19519.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=19519</wfw:commentRss><description>Hi cuzdatha and welcome to the forums!
&lt;br /&gt;&lt;br /&gt;
This is an interesting scenario. I have always wondered how Java and InfoPath could interact together.  I have done a lot of Java programming in my academic studies, but it does not seem to popular in the business world.
&lt;br /&gt;&lt;br /&gt;
The problem you are seeing with the attributes is because per the XML specification, attributes cannot be repeating.  The only way you could have multiple attributes, is if you gave them all a seperate name, like attr1, attr2, etc.  However, this will be hard to describe in the schema and will not be a very pretty data structure.  You should create a repeating structure underneath the node that you are wanting to put the attributes on and store your repeating data there.
&lt;br /&gt;&lt;br /&gt;
I hope this helps, please let us know how it turns out!</description></item><item><title>InfoPath 2003 and Axis web service with Arrays</title><link>https://www.infopathdev.com:443/forums/thread/17585.aspx</link><pubDate>Tue, 06 Mar 2007 16:48:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17585</guid><dc:creator>csudatha</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17585.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17585</wfw:commentRss><description>Hi ,&lt;br /&gt;InfoPath looks great in terms of usage and building a form quickly. how ever i am facing a problem while working on web service which returns 2 dimentional data.&lt;br /&gt; I am using InfoPath 2003 (as client) and Tomcat Axis 1.2 as web service provider.&lt;br /&gt;&lt;br /&gt;I have to return below data structure to the client.&lt;br /&gt;&lt;br /&gt;Part.num Part.Name Part.Rev Part.Attribute1 Part.Attribute2......n&lt;br /&gt;row1&lt;br /&gt;row2&lt;br /&gt;...&lt;br /&gt;etc&lt;br /&gt;&lt;br /&gt;I have created 2 beans in java.&lt;br /&gt;PartBean&lt;br /&gt;AttributeBean&lt;br /&gt;&lt;br /&gt;PartBean has fields like below&lt;br /&gt;   String number;&lt;br /&gt;   String name ;&lt;br /&gt;   String rev ;&lt;br /&gt;   AttributeBean[] attributes;&lt;br /&gt;&lt;br /&gt;AttributeBean has fields like&lt;br /&gt;  String name;&lt;br /&gt;  String value;&lt;br /&gt;  String attibuteType;&lt;br /&gt;...etc&lt;br /&gt;&lt;br /&gt;i have created a web service "executePartsSearch()" which returns PartBean[]&lt;br /&gt;&lt;br /&gt;In Design Mode info path has parsed the schema. &lt;br /&gt;the schema has an item (group element) at the point of attribute array and that item has childs of AttributeBean.&lt;br /&gt;&lt;br /&gt;when i execute the web services.&lt;br /&gt;InfoPath is throwing a Error Dialog with following message:&lt;br /&gt;&lt;br /&gt;"Element 'item' is unexpected according to content model of parent element '{urn:com.plm.wsx.ui.PartsObjectService}attributes'.&lt;br /&gt;Expecting: {urn:com.plm.wsx.ui.PartsObjectService}item."&lt;br /&gt;&lt;br /&gt;if i change the attribute[] to simple type of attribute it works fine.&lt;br /&gt;but this will not fulfill my need as i need the variable number of attributes for each partobject.&lt;br /&gt;&lt;br /&gt;also i need this bidirectional meaning i want to submit the form with same structure to do updates.&lt;br /&gt;&lt;br /&gt;do i need to do some custom coding to avoid the item error.&lt;br /&gt;&lt;br /&gt;please let me know how to come out of this problem.&lt;br /&gt;&lt;br /&gt;Below is sample of XML response:&lt;br /&gt;Envelope:&lt;br /&gt;  Body:&lt;br /&gt;    executePartsSearchResponse:&lt;br /&gt;      executePartsSearchReturn:&lt;br /&gt;        attributes:&lt;br /&gt;          item:&lt;br /&gt;            attributeName:&lt;br /&gt;            absoluteName:&lt;br /&gt;            dataType:&lt;br /&gt;            attributeValue: Attr Value 1&lt;br /&gt;            availableValue:&lt;br /&gt;            readOnly: false&lt;br /&gt;            name: Attr 1&lt;br /&gt;        partName: MPG Parent Part&lt;br /&gt;        partNumber: MPG1&lt;br /&gt;      executePartsSearchReturn:&lt;br /&gt;        attributes:&lt;br /&gt;          item:&lt;br /&gt;            attributeName:&lt;br /&gt;            absoluteName:&lt;br /&gt;            dataType:&lt;br /&gt;            attributeValue: Attr Value 1&lt;br /&gt;            availableValue:&lt;br /&gt;            readOnly: false&lt;br /&gt;            name: Attr 1&lt;br /&gt;        partName: MPG Parent Part&lt;br /&gt;        partNumber: MPG2&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Please let me know the workaround for this problem.   &lt;br /&gt;</description></item></channel></rss>