trying to consume a webservice with dotnet, but all numbers in the result are converted to zero

R

Ross

I'm at a loss. I'm trying to consume a webservice using dotnet. The
result of the web service looks like this

<?xml version="1.0" encoding="UTF-8" ?>
- <SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <SOAP-ENV:Body>
- <ns1:pricingResponse
xmlns:ns1="http://CAPTAP/WebservWebService.wsdl"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
- <return xmlns:ns2="http://CAPSNAP/IWebserv.xsd"
xsi:type="ns2:pricingT">
<cost xsi:type="xsd:decimal">17.25</cost>
<tax xsi:type="xsd:decimal">27.29</tax>
<additCharges xsi:type="xsd:decimal">0</additCharges>
<basis xsi:type="xsd:string">CAPTAP</basis>
<sell xsi:type="xsd:decimal">366.35</sell>
<tourCode xsi:type="xsd:string">CAP</tourCode>
<value xsi:type="xsd:decimal">366.35</value>
<commission xsi:type="xsd:decimal">0</commission>
<discount xsi:type="xsd:decimal">0</discount>
</return>
</ns1:pricingResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

however when I access the values all of the numbers are converted to
0. I'm not including the wsdl because it is extremely long. I use
visual studio to create mapping automatically using the wsdl. it seems
the strings are left blank too. Any ideas?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top