mibuso.com

Microsoft Business Solutions online community
It is currently Tue Sep 23, 2014 6:21 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Web services using codeunit & XMLPorts problem
PostPosted: Thu Aug 16, 2012 2:17 pm 
Offline

Joined: Wed Dec 21, 2011 9:38 am
Posts: 6
Country: Netherlands (nl)
Hi Guys!,

Instead of publishing a Page as a web service, we're trying out using XMLPorts in combination with a Codeunit. We used the step-by-step tutorial from this website: http://www.kauffmann.nl/blog/index.php/ ... ervices-3/

It al works fine and nicely, only we got a problem with datatypes. Hopefully you guys know the answer:

If I use the XMLport property Format/Evaluate = XML Format/Evaluate, I get the correct datatypes in my webservice for the fields set in the XMLPort:

example:

Items (table)
No. (fields) In webservice published as String
Description (fields) In webservice published as String
Amount (fields) In webservice published as Decimal

When I want to add an own variable to the XMLPort it always returns as a string!!:

Items (table)
No. (fields) In webservice published as String
Description (fields) In webservice published as String
Custom Amount (text) In webservice published as String

Is there a sollution for this problem? Thanks! :)


Top
 Profile E-mail  
 
 Post subject: Re: Web services using codeunit & XMLPorts problem
PostPosted: Thu Aug 16, 2012 7:00 pm 
Offline
MVP Microsoft Dynamics NAV
NAV TechDays 2014 attendee

Joined: Mon Apr 04, 2005 3:49 pm
Posts: 243
Location: Sauðárkrókur
Country: Iceland (is)
Hi

Currently there is no way to change the data type of custom fields in a XML port.
Just be sure that you have MinOccurs and MaxOccurs property set.

_________________
________________________________
Gunnar Gestsson
Microsoft Certified IT Professional
Dynamics NAV MVP
http://www.dynamics.is


Top
 Profile E-mail WWW  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: GreatScott000 and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: