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

Discussion in 'ASP .Net Web Services' started by Ross, Jul 15, 2003.

  1. Ross

    Ross Guest

    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?
     
    Ross, Jul 15, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Charles A. Lackman
    Replies:
    1
    Views:
    1,402
    smith
    Dec 8, 2004
  2. Lakshmi Sreekanth

    i = 10; result = ++i - --i; How result become ZERO

    Lakshmi Sreekanth, Sep 21, 2010, in forum: C Programming
    Replies:
    52
    Views:
    1,204
    Nick Keighley
    Sep 23, 2010
  3. Paul Hermans

    Consume php webservice in dotnet environment

    Paul Hermans, Jun 10, 2004, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    247
    Paul Hermans
    Jun 10, 2004
  4. Paul Hermans

    Consume php webservice in dotnet

    Paul Hermans, Jun 10, 2004, in forum: ASP .Net Web Services
    Replies:
    1
    Views:
    123
    Dino Chiesa [Microsoft]
    Jun 10, 2004
  5. dgleeson422111

    consume local web service -ok consume remote service - Not OK

    dgleeson422111, Jan 26, 2010, in forum: ASP .Net Web Services
    Replies:
    2
    Views:
    1,631
    dgleeson422111
    Jan 31, 2010
Loading...

Share This Page