axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lefrancois, Carl" <Carl.Lefranc...@axa-canada.com>
Subject failing to parse SwA reply
Date Fri, 23 Apr 2010 20:32:19 GMT
Hello list,

Having trouble reading a reply containing a "SOAP with attachments"
attachment.  It's probably something obvious but not to me!  The client
is not expecting some non-xml content in the reply and is sending back
an error code from this block in guththila_next():

    /* Actual XML parsing logic */
    do
    {
        loop = 0;
        c = guththila_next_char(m, 0, env);
        if (m->status == S_1)
        {
            while (isspace(c))
            {
                c = guththila_next_char(m, 0, env);
                if (c == -1)
                    return -1;
            }
            if ('<' == c)
            {
                m->status = S_2;
            }
            else
            {
**returning here       return -1;
            }
        }

Now the code is fine so can a knowing person tell me, is it some option
that needs to be enabled to parse out this text first, or is the
incoming stuff in an unexpected format?



The reply caught with TCPMon follows.  The unexpected text is:
--uuid:b93b7a94-9915-4bf2-aabc-68eb2b592418
Content-Type: text/xml

After skipping to the first <?xml just after, the rest of the parsing
worked fine so it must be close.


Regards,
Carl Lefrancois

--reply--

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Accept: text/xml, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Content-Type: multipart/related; type="text/xml";
boundary="uuid:b93b7a94-9915-4bf2-aabc-68eb2b592418"
Transfer-Encoding: chunked
Date: Fri, 23 Apr 2010 19:37:57 GMT

2de
--uuid:b93b7a94-9915-4bf2-aabc-68eb2b592418
Content-Type: text/xml

<?xml version='1.0' encoding='UTF-8'?><SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Bod
y><RetrieveAttachmentMessage
xmlns="http://www.axa.ca/RetrieveAttachmentMessage"><Parameters><UserDeb
ugMode xmlns="">false</UserDebugMode><SystemDebugMode
xmlns="">false</SystemDebugMode><SnapshotDebugMode
xmlns="">false</SnapshotDebugMode></Parameters><UserInfo
/><Status><Status
xmlns="">SUCCESS</Status></Status><Uri>F91481D33A42223BAB82701B5F7C51DB2
BBB539749753A64B26F08C6C8D04AB64D68D5F47F9F8A0DE86D15B4F4F0B249F64A7FE26
D79BA42EE1DAE83013E2EDF1E0F3CDE09A4782D</Uri></RetrieveAttachmentMessage
></SOAP-ENV:Body></SOAP-ENV:Envelope>
2000

--uuid:b93b7a94-9915-4bf2-aabc-68eb2b592418
Content-Id:null
Content-Type: application/zip
Content-Transfer-Encoding: binary

UEsDBBQAAgAIABp4SzrlJSJ1pzoBAONMAQAIAAAAdGVtcC5wZGbs/AV0JE2TAAa2RtKImZlG
zMzS
-snip-
  _____  

"Ce message est confidentiel, a l'usage exclusif du destinataire
ci-dessus et son contenu ne represente en aucun cas un engagement de la
part de AXA, sauf en cas de stipulation expresse et par ecrit de la part
de AXA. Toute publication, utilisation ou diffusion, meme partielle,
doit etre autorisee prealablement. Si vous n'etes pas destinataire de ce
message, merci d'en avertir immediatement l'expediteur."

"This e-mail message is confidential, for the exclusive use of the
addressee and its contents shall not constitute a commitment by AXA,
except as otherwise specifically provided in writing by AXA. Any
unauthorized disclosure, use or dissemination, either whole or partial,
is prohibited. If you are not the intended recipient of the message,
please notify the sender immediately."

---------------------------------------------------------------------
To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org
For additional commands, e-mail: c-user-help@axis.apache.org


Mime
View raw message