Hello all,

I have been running the DIME sample associated with gsoap 2.7. It seems to be 
OK except when running with the .xml files and the dimeserver.


I do: ./dimeserver < TEST1.xml

The XML file looks like:

_____________________________________________

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
 xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
 xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
 xmlns:xsd="http://www.w3.org/2001/XMLSchema";
 xmlns:ns="urn:dime">
 <SOAP-ENV:Body 
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
  <ns:putData>
   <data SOAP-ENC:arrayType="ns:Data[1]">
    <item>"image.jpg"</item>
   </data>
  </ns:putData>
 </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

______________________________________________


BUT 

I get the following as output - as you can see, it seems that the return code 
is successful but there is imeediately a soap_fault afterwards.

Why is this the case?

________________________________________________
scar samples/dime> ./dimeserver < TEST1.xml
Saving file /home/soapdev/TEMPFILES/IMAGES/dataSTyj3k
Status: 200 OK
Server: gSOAP/2.7
Content-Type: text/xml; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive

229
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:ns="urn:dime"><SOAP-ENV:Body 
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";><ns:putDataResponse><names
 xsi:type="SOAP-ENC:Array" 
SOAP-ENC:arrayType="xsd:string[1]"><item>dataSTyj3k</item></names></ns:putDataResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
0

Status: 500 Internal Server Error
Server: gSOAP/2.7
Content-Type: text/xml; charset=utf-8
Transfer-Encoding: chunked
Connection: close

23A
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:ns="urn:dime"><SOAP-ENV:Body><SOAP-ENV:Fault 
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";><faultcode>SOAP-ENV:Client</faultcode><faultstring>End
 of file or no input: Operation interrupted or timed 
out</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
0


________________________________________________
TIA 

Reply via email to