Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

NuSOAP generates exclamation marks (!)

Help
S B
2012-02-10
2013-06-06
  • S B
    S B
    2012-02-10

    **Hi,

    NuSOAP had been working perfectly fine for us, but it seems to occasionally have trouble and outputs exclamation marks "!" in the middle of the SOAP request (or response).

    For instance, we prepared a SOAP request which when we output looks like this - note the odd ! mark in the last 4-5 lines.
    **
    POST /webservice.event HTTP/1.0
    Host: elm.example.com:80
    User-Agent: NuSOAP/0.9.5 (1.123)
    Content-Type: text/xml; charset=ISO-8859-1
    SOAPAction: ""
    Content-Length: 1797

    <?xml version="1.0" encoding="ISO-8859-1"?><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:Header><h:BasicAuth xmlns:h="http://soap-authentication.org/basic/2001/10" mustUnderstand="1">
    <Name>username</Name>
    <Password>password</Password>
    </h:BasicAuth></SOAP-ENV:Header><SOAP-ENV:Body><ns3321:request xmlns:ns3321="http://tempuri.org"><sessionId xsi:type="xsd:long">1287268134426</sessionId><nonChairList xsi:type="xsd:string">6771,6772,6620,6773,6621,6873,6874,6871,6872,6971,6870,6972,7060,6963,6964,6965,6869,6966,6868,7064,6967,6867,7063,6968,6866,7062,6865,7061,6864,7068,7066,7065,6882,6883,6884,6885,6982,6880,6981,6881,6977,7071,6974,7070,7073,6876,7072,6875,7075,7074,6979,7077,7079,7078,6891,6892,6951,6950,6890,6895,6896,6893,6894,7042,6945,6889,1843,6946,6888,7040,6947,6887,6886,6941,6942,6943,6944,7049,7048,7047,7046,6949,7044,7043,6962,6961,6960,7051,6958,6898,7050,6959,6897,6956,6899,6954,6955,6952,7059,7058,7054,7057,7056,7023,7024,7028,6928,6920,6921,6924,6923,6926,7039,6940,7036,6838,4745,6938,6931,6930,6937,6934,7003,7004,7002,6989,6846,6987,6986,6985,6994,6995,6909,6993,7089,6906,6905,7088,6907,6902,6901,7083,6904,7084,6903,7081,7016,7014,7015,7013,7010,6855,6856,6853,6859,6999,6857,6858,6919,68!
    63,6862,6917,6916,6860,7094,6913,6912,2548,6911,7009,6910,7092,7007,7096</nonChairList><chairList xsi:type="xsd:string">-1,6035</chairList><command xsi:type="xsd:string">setSession</command><adapter xsi:type="xsd:string">standardv2</adapter></ns3321:request></SOAP-ENV:Body></SOAP-ENV:Envelope>

    When we get a response from the service and pass it through NuSOAP, it again adds in exclamation marks:

    HTTP/1.1 200 OK
    Server: Apache-Coyote/1.1
    Set-Cookie: JSESSIONID=0C610FAFF63AF3AFFF48784FCDE8E3B7; Path=/
    Cache-Control: no-store, no-cache, must-revalidate
    Cache-Control: post-check=0, pre-check=0
    Pragma: no-cache
    Expires: Thu, 01 Jan 1970 00:00:00 GMT
    Content-Type: text/xml;charset=UTF-8
    Date: Wed, 08 Feb 2012 08:49:08 GMT
    Connection: close

    <?xml version='1.0' encoding='UTF-8'?><SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><SOAP:Body SOAP:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:m="http://www.w3.org/2001/XMLSchema.dtd"><m:requestResponse xmlns:m="http://www.soapware.org/"><SessionResponseCollection xmlns="http://sas.something.com/"><SessionResponse><sessionId xsi:type="xs:long">1287268134426</sessionId><sessionName xsi:type="xs:string">Plant-Based Performance Nutrition: How to unlock your mental and physical potential through food</sessionName><startTime xsi:type="xs:long">1329789600000</startTime><endTime xsi:type="xs:long">1329793200000</endTime><creatorId xsi:type="xs:string">6035</creatorId><boundaryTime xsi:type="xs:int">30</boundaryTime><accessType xsi:type="xs:long">2</accessType><recordings xsi:type="xs:boolean">false</recordings><chairNotes xsi:type="xs:stri!
    ng"></chairNotes><nonChairNotes xsi:type="xs:string"></nonChairNotes><chairList xsi:type="xs:string">-1,6035</chairList><nonChairList xsi:type="xs:string">6771,6772,6620,6773,6621,6873,6874,6871,6872,6971,6870,6972,7060,6963,6964,6965,6869,6966,6868,7064,6967,6867,7063,6968,6866,7062,6865,7061,6864,7068,7066,7065,6882,6883,6884,6885,6982,6880,6981,6881,6977,7071,6974,7070,7073,6876,7072,6875,7075,7074,6979,7077,7079,7078,6891,6892,6951,6950,6890,6895,6896,6893,6894,7042,6945,6889,1843,6946,6888,7040,6947,6887,6886,6941,6942,6943,6944,7049,7048,7047,7046,6949,7044,7043,6962,6961,6960,7051,6958,6898,7050,6959,6897,6956,6899,6954,6955,6952,7059,7058,7054,7057,7056,7023,7024,7028,6928,6920,6921,6924,6923,6926,7039,6940,7036,6838,4745,6938,6931,6930,6937,6934,7003,7004,7002,6989,6846,6987,6986,6985,6994,6995,6909,6993,7089,6906,6905,7088,6907,6902,6901,7083,6904,7084,6903,7081,7016,7014,7015,7013,7010,6855,6856,6853,6859,6999,6857,6858,6919,6863,6862,6917,6916,6860,7094,7096,691!
    3,6912,2548,6911,7009,6910,7092,7007</nonChairList><groupingLi!
    st xsi:t
    ype="xs:string">3669</groupingList><openChair xsi:type="xs:boolean">false</openChair><permissionsOn xsi:type="xs:boolean">true</permissionsOn><mustBeSupervised xsi:type="xs:boolean">true</mustBeSupervised><recordingModeType xsi:type="xs:long">1</recordingModeType><maxTalkers xsi:type="xs:int">6</maxTalkers><maxCameras xsi:type="xs:int">6</maxCameras><raiseHandOnEnter xsi:type="xs:boolean">false</raiseHandOnEnter><reserveSeats xsi:type="xs:int">0</reserveSeats><secureSignOn xsi:type="xs:boolean">false</secureSignOn><versionId xsi:type="xs:long">1001</versionId><allowInSessionInvites xsi:type="xs:boolean">false</allowInSessionInvites><hideParticipantNames xsi:type="xs:boolean">false</hideParticipantNames></SessionResponse></SessionResponseCollection></m:requestResponse></SOAP:Body></SOAP:Envelope>

    Why is this happening and how can I correct it? It is the latest version of NuSOAP that I'm using.