Infopath 2007 problem with NAV 2009 XMLPort

msoliman
Member Posts: 3
Hi;
In the process of investigating the new NAV 2009 web services feature. I have created a very simple XMLPort to export the Customers list with only the No., Name, Phone No. and Credit Limit fields. Then I created a Codeunit and one function to accept the XMLPort as VAR parameter. From the Web Serivces form, I select to Publish this codeunit and It did publish properly.
I opened Infopath 2007 and start a new Web Service Template. I provided Url address for my web service and then select the only available Method I created within the codeunit and when I press Next I got the following error.
/Schema/element[2][@name='GetMyCustomer2_Result']/Complex Type[1]/Sequence[1]/Element[1][@name='result']
Undeclared XSD type:'{urn.microsoft.Dynamics-nav/xmlports/mycustomer2}-MyCustomer' #-o ](*,)
Has anyone saw this error or know what it could be? I tried to edit the XML for the published Web service but really could not find anything unusal when I compare it to the XML generated for a published Customer Page.
Thanks;
In the process of investigating the new NAV 2009 web services feature. I have created a very simple XMLPort to export the Customers list with only the No., Name, Phone No. and Credit Limit fields. Then I created a Codeunit and one function to accept the XMLPort as VAR parameter. From the Web Serivces form, I select to Publish this codeunit and It did publish properly.
I opened Infopath 2007 and start a new Web Service Template. I provided Url address for my web service and then select the only available Method I created within the codeunit and when I press Next I got the following error.
/Schema/element[2][@name='GetMyCustomer2_Result']/Complex Type[1]/Sequence[1]/Element[1][@name='result']
Undeclared XSD type:'{urn.microsoft.Dynamics-nav/xmlports/mycustomer2}-MyCustomer' #-o ](*,)
Has anyone saw this error or know what it could be? I tried to edit the XML for the published Web service but really could not find anything unusal when I compare it to the XML generated for a published Customer Page.
Thanks;
0
Comments
-
There is another way how to do that - create page, add only the selected fields, publish the page as webservice, use it in InfoPath... much easier if there is another "why not to use that"... ;-)0
-
Hi kine;
many thanks for reply to my issue. But I have checked to publish the Customer page as a web service and consumed it wihtin Infopath 2007. I added the Query section and used ReadMultiple method and added few fields from the customer datafields into a Repeating table and used UpdateMultiple. So far so good until you try to change data on any row other than the first row and hit the submit button. even if Infopath suggest that changes were submitted successfully, it actually did not apply the changes from second row and up back into Navision. ONLY changes from the first row is applied back.
So, UpdateMultiple does not look successful with Infopath 2007. Any idea what possible I am doing wrong ? Thanks in advance for any comments. :roll:0 -
So this topic seems to be very old, but i´ve encountered also this problem.
To help all the other ones which also have this problem i´ve got bad news. This problem is well known by microsoft. Info Path can not handle references. More you will find in the KB article below:
http://support.microsoft.com/kb/8894940
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions