[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Struggling with WebServices
We have successfully used http_url_post_stmf to interface with a
credit card provider to request an approval and get one back.
On a different project, we need to accept web service requests when
someone wants to file a document with us electronically. We use the
CGIDEV2 library and the module QtmhRdStin to handle incoming requests
for our internet public search system and modified it to handle the
incoming web service and write it to a string file. All that is
working fine.
Here is the problem:
To reply to the request, we create XML strings and use QtmhWrStout to
respond to the requestor. We are being told by the requestor that the
XML is arriving in a "jumbled" format as follows:
HTTP/1.1 200 OK
Date: Fri, 25 Apr 2008 21:19:33 GMT
Server: Apache
<soap12: Envelope
xmlns: xsi="http://www.w3.org/2001/XMLSchema-instance",
xsd="http://www.w3.org/2001/XMLSchema",
soap12="http://www.w3.org/2003/05/soap-envelope">
Content-Type: text/xml content-length:14522<?xml version="1.0"
encoding="utf-8"?>; charset=ISO-8859-1
Content-length: 756
Connection: close
<soap12:Header>....(the rest of the XML is OK).
The problem seems to be that the Content-Type: text/xml
content-length:14522 is mixed in with the XML but it isn't when we
create the string going out.
I guess my first question is whether we should be using QtmhWrStout to
write the XML and if not, then what should we use? If it is
acceptable to use it, any clues as to why it is rearranging the data?
Thanks for any help on this. We have been struggling with it for over
two months now.
Cliff Brown
BROWNtech, inc
(508) 543-0211
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------