I've written a Python test utility that will POST an XML file to localhost to test my gSOAP web service. When the utility posts the message it seems to work well enough, but the response is an error. Looking through the TEST.LOG I see this line:
"Sending back fault struct for error code 3" ..but I do not know why this error is happening. The full log is copied below (up to the error line, anyway). Can anyone see anything helpful in there? I don't know if I have bad data, or a broken web service. Brian Herbert Withun ====LOGFILE==== Accept socket 304 at port 2070 from IP 127.0.0.1 Reinitializing context Free namespace stack Free any remaining temp blocks Free attribute storage Free pointer hashtable Free ID hashtable Reinitializing context Free namespace stack Free any remaining temp blocks Free attribute storage Free pointer hashtable Free ID hashtable Initializing for input Free namespace stack Free any remaining temp blocks Free attribute storage Free pointer hashtable Free ID hashtable C:\Documents and Settings\brian.withun\My Documents\MyCompany\Tools\SYS\Common\gsoap\stdsoap2.cpp(7008): malloc(128) = 0075446C Free ID hashtable Read 63511 bytes from socket 304 Waiting for HTTP request/response... HTTP status: POST /Publish HTTP/1.0 HTTP header: Host: 127.0.0.1:8080 HTTP header: User-Agent: python post HTTP header: Content-type: text/xml; charset="UTF-8" C:\Documents and Settings\brian.withun\My Documents\MyCompany\Tools\SYS\Common\gsoap\stdsoap2.cpp(5472): malloc(36) = 007A13FC HTTP header: Content-length: 63344 HTTP header: SOAPAction: "" C:\Documents and Settings\brian.withun\My Documents\MyCompany\Tools\SYS\Common\gsoap\stdsoap2.cpp(5472): malloc(12) = 007A143C Finished HTTP header parsing, status = 0 Keep alive connection = 0 Target endpoint='http://127.0.0.1:8080/Publish' XML PI <?xml version="1.0" encoding="utf-8"?> Switching to utf-8 encoding C:\Documents and Settings\brian.withun\My Documents\MyCompany\Tools\SYS\Common\gsoap\stdsoap2.cpp(8298): malloc(36) = 007A1464 Enlarging look-aside buffer to append data, old size=0, new size=256 C:\Documents and Settings\brian.withun\My Documents\MyCompany\Tools\SYS\Common\gsoap\stdsoap2.cpp(8115): malloc(256) = 007A0BD0 C:\Documents and Settings\brian.withun\My Documents\MyCompany\Tools\SYS\Common\gsoap\stdsoap2.cpp(8352): malloc(256) = 007A05EC C:\Documents and Settings\brian.withun\My Documents\MyCompany\Tools\SYS\Common\gsoap\stdsoap2.cpp(2636): malloc(26) = 007A19A0 Push namespace binding (level=0) 'SYSmfg' 'urn:client/pd/eese/SYS/Metadata/r3.3/v1.0' Push OK ('SYSmfg' matches 'SYSmfg' in namespace table) C:\Documents and Settings\brian.withun\My Documents\MyCompany\Tools\SYS\Common\gsoap\stdsoap2.cpp(8298): malloc(39) = 00756258 C:\Documents and Settings\brian.withun\My Documents\MyCompany\Tools\SYS\Common\gsoap\stdsoap2.cpp(8352): malloc(256) = 007A0708 C:\Documents and Settings\brian.withun\My Documents\MyCompany\Tools\SYS\Common\gsoap\stdsoap2.cpp(2636): malloc(71) = 007A0990 Push namespace binding (level=0) 'condition' 'urn:client/pd/eese/SYS/Conditions/r3.3/v1.0' Push NOT OK: no match found for 'urn:client/pd/eese/SYS/Conditions/r3.3/v1.0' in namespace mapping table (added to stack anyway) C:\Documents and Settings\brian.withun\My Documents\MyCompany\Tools\SYS\Common\gsoap\stdsoap2.cpp(8298): malloc(39) = 007A09F4 C:\Documents and Settings\brian.withun\My Documents\MyCompany\Tools\SYS\Common\gsoap\stdsoap2.cpp(8352): malloc(256) = 007A0874 C:\Documents and Settings\brian.withun\My Documents\MyCompany\Tools\SYS\Common\gsoap\stdsoap2.cpp(2636): malloc(29) = 007A1564 Push namespace binding (level=0) 'SYSglobal' 'urn:client/pd/eese/SYS/common/r3.3/v1.1' Push OK ('SYSglobal' matches 'SYSglobal' in namespace table) C:\Documents and Settings\brian.withun\My Documents\MyCompany\Tools\SYS\Common\gsoap\stdsoap2.cpp(8298): malloc(33) = 007A15A0 C:\Documents and Settings\brian.withun\My Documents\MyCompany\Tools\SYS\Common\gsoap\stdsoap2.cpp(8352): malloc(256) = 007A0A38 C:\Documents and Settings\brian.withun\My Documents\MyCompany\Tools\SYS\Common\gsoap\stdsoap2.cpp(2636): malloc(23) = 007A0CEC Push namespace binding (level=0) 'xsi' 'http://www.w3.org/2001/XMLSchema-instance' Push OK ('xsi' matches 'xsi' in namespace table) Sending back fault struct for error code 3 soap_instantiate_SOAP_ENV__Fault(-1, , )