Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / April 2008

Tip: Looking for answers? Try searching our database.

XML Deserializing issue

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
VGE - 10 Apr 2008 20:56 GMT
We are consuming a web service and we receive the following response soap:

ResponseCode: 200 (OK)
X-SOAP-Server:NuSOAP/0.7.2 (1.6)
Keep-Alive:timeout=15, max=100
Connection:Keep-Alive
Content-Length:1540
Content-Type:text/xml; charset=ISO-8859-1
Date:Thu, 10 Apr 2008 01:29:51 GMT
Server:Apache
X-Powered-By:PHP/5.2.5

<?xml version="1.0" encoding="utf-16"?>
<SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
  <SOAP-ENV:Body>
    <getQuoteResponse xmlns="urn:pngwsdl">
      <quoteResponse>
        <pngRequestId>VGE0409200813976API674700055047</pngRequestId>
        <site>
          <street>2520 Whitehall Park Dr</street>
          <city>Charlotte</city>
          <state>NC</state>
          <zip>28273</zip>
          <npa>704</npa>
          <nxx>555</nxx>
        </site>
        <quotes>
          <item>
            <quoteId>VGETB00409200813977API021200129473</quoteId>
            <carrier>Broadwing</carrier>
            <term>12</term>
            <expirationDate>2008-05-09</expirationDate>
            <loopMRC>308</loopMRC>
            <loopNRC>0</loopNRC>
            <portMRC>358</portMRC>
            <portNRC>0</portNRC>
          </item>
          <item>
            <quoteId>VGETB00409200813983API023600182299</quoteId>
            <carrier>Broadwing</carrier>
            <term>36</term>
            <expirationDate>2008-05-09</expirationDate>
            <loopMRC>272</loopMRC>
            <loopNRC>0</loopNRC>
            <portMRC>287</portMRC>
            <portNRC>0</portNRC>
          </item>
          <item>
            <quoteId>VGETB00409200813982API022400121435</quoteId>
            <carrier>Broadwing</carrier>
            <term>24</term>
            <expirationDate>2008-05-09</expirationDate>
            <loopMRC>281</loopMRC>
            <loopNRC>0</loopNRC>
            <portMRC>310</portMRC>
            <portNRC>0</portNRC>
          </item>
        </quotes>
        <message>Verizon, Paetec, XO, Qwest failed to return valid
pricing or support the service type and bandwidth of this request.</message>
      </quoteResponse>
    </getQuoteResponse>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

However the object as created by the Framework contains all nulls and
has the following hierarchy:

getQuote
  Headers
  Body
    quoteResponse
      pngResultId = null
      site = null
      siteZ = null
      quotes = null
      message = null

If I manually deserialize the soap response it creates the object with
the above structure except with the appropriate data. How do I fix this
so that the object generated by the framework will populate correctly
with the data when the response is received?

I hope that explains the question.

Thanks,

Neville Kelly
VGE
Steven Cheng [MSFT] - 11 Apr 2008 05:18 GMT
Hi Neville ,

Regarding on this issue, I've seen your another cross thread in this group
and I've replied you there. Welcome to continue follow-up there.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>Message-ID: <47FE7104.2000403@community.nospam>
>Date: Thu, 10 Apr 2008 15:56:52 -0400
>From: VGE <msvge@community.nospam>
>User-Agent: Thunderbird 2.0.0.12 (Windows/20080213)
>MIME-Version: 1.0
>Subject: XML Deserializing issue

>We are consuming a web service and we receive the following response soap:
>
[quoted text clipped - 90 lines]
>Neville Kelly
>VGE

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.