Note that there are some explanatory texts on larger screens.

plurals
  1. POWeb Service Receive Null Data iOS
    primarykey
    data
    text
    <p>I had a very strange situation in using web service</p> <p>Here is my Xcode Project File <a href="https://dl.dropbox.com/u/9507586/FubonTest.zip" rel="nofollow">https://dl.dropbox.com/u/9507586/FubonTest.zip</a></p> <p>I got the response back from the server as below.</p> <pre><code>2013-03-04 15:56:18.473 FubonTest[1059:f803] 1: connection: didReceiveResponse 2013-03-04 15:56:18.473 FubonTest[1059:f803] 2: connection: didReceiveData 2013-03-04 15:56:18.699 FubonTest[1059:f803] 2: connection: didReceiveData 2013-03-04 15:56:18.699 FubonTest[1059:f803] 3: Done. Received Bytes: 1789 2013-03-04 15:56:18.700 FubonTest[1059:f803] Return (null) </code></pre> <p>I did receive bytes, but the xml tag file is null. The server side people told me they use utf-8 encoding, but it just returned null. If I use ascii encoding, the returning data is not null, but it's not the xml tag file I expected.</p> <p>The correct returning xml tag files should be as below. The returning xml tag file is using eclipse(window version) web service function.</p> <pre><code>&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt; &lt;soapenv:Body&gt; &lt;ns1:RegistResponse xmlns:ns1="http://service.fubon.com" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"&gt; &lt;RegistReturn xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="soapenc:string"&gt;该用户未投保&lt;/RegistReturn&gt; &lt;/ns1:RegistResponse&gt; &lt;/soapenv:Body&gt; &lt;/soapenv:Envelope&gt; </code></pre> <p>Can someone help me to sort it out?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload