Wrong parsing of a float from a SOAP receive location
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server > Wrong parsing of a float from a SOAP receive location




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Wrong parsing of a float from a SOAP receive location  
Hans Erik


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-29-04 07:48 AM

Hi,

I use a SOAP (adaper) receive loation in BizTalk 2004 to receive a XML docum
ent.
One of the fields in this document is of xs:float type. When I get a large n
umber in this field it seems like the SOAP adapter does a exponentiation of 
the number. The number sent in the document to the receive location is 70200
554912 and the number store
d in the tracking of the received document is 7.020056E+10.
When I use a file receive location and drop the exact same document to this 
location as sent with SOAP the number is received correctly in BizTalk.
I have also traced the SOAP message before it's received by BizTalk and the 
number is correct in the trace.

Is this a bug in the adapter, or can someone explain if there is a setting s
omewhere I have missed?

brgds
Hans Erik





[ Post a follow-up to this message ]



    RE: Wrong parsing of a float from a SOAP receive location  
Hans Erik


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-29-04 07:48 AM

I Found a solution to my problem:

I used the BizTalk Web Services Publishing Wizard to publish my schema as a 
webservice. This wizard make a Datatypes.cs which types all data in the docu
ment.
The xs:float was typed into System.Single a type that obviously likes to do 
a exponentiation of large numbers.

I tried to change this type to System.Double which moved the upper limit bef
ore exponentiation a little bit.
I ended up with typing these fields as string, since the only task for this 
web service is to send the received document into BizTalk and not perform an
y calculations.

brgds
Hans Erik

"Hans Erik" wrote:

> Hi,
>
> I use a SOAP (adaper) receive loation in BizTalk 2004 to receive a XML doc
ument.
> One of the fields in this document is of xs:float type. When I get a large number 
in this field it seems like the SOAP adapter does a exponentiation of the number. Th
e number sent in the document to the receive location is 70200554912 and the number 
sto
red in the tracking of the received document is 7.020056E+10.
> When I use a file receive location and drop the exact same document to thi
s location as sent with SOAP the number is received correctly in BizTalk.
> I have also traced the SOAP message before it's received by BizTalk and th
e number is correct in the trace.
>
> Is this a bug in the adapter, or can someone explain if there is a setting
 somewhere I have missed?
>
> brgds
> Hans Erik





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:31 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register