Hello,
I am looking for a solution to call a web service in command line to send a transmission.
I tried with "curl" or "wget" but I have systematically such response:
---response end---
500 Internal Server Error
Registered socket 4 for persistent reuse.
Skipping 277 bytes of body: [<?xml version='1.0' encoding='UTF-8'?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><env:Fault><faultcode>env:Server</faultcode><faultstring>Unknown exception, internal system processing error.</faultstring></env:Fault></env:Body></env:Envelope>] done.
2015-09-22 11:56:05 ERROR 500: Internal Server Error.
Command I used is for example:
wget --debug --no-check-certificate --post-file=loc.xml \
--header="Content-Type: text/xml;charset=UTF-8" \
--header="SOAPAction: \"process\"" \
-O response.xml $ENDPOINT
ENDPOINT corresponds to :
https://XXXXXXXX:7002/GC3Services/IntXmlService/call
XXXXXXXX=>App server Name
I have also tried to add credentials to header but the result is the same, I added something like:
--header="UserName: DOMAIN.XXX" \
--header= "Password: YYY" \
or
--user=DOMAIN.XXX --password=YYY \
Any help will be appreciated.
Thank you.
Kind regards.
I am looking for a solution to call a web service in command line to send a transmission.
I tried with "curl" or "wget" but I have systematically such response:
---response end---
500 Internal Server Error
Registered socket 4 for persistent reuse.
Skipping 277 bytes of body: [<?xml version='1.0' encoding='UTF-8'?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><env:Fault><faultcode>env:Server</faultcode><faultstring>Unknown exception, internal system processing error.</faultstring></env:Fault></env:Body></env:Envelope>] done.
2015-09-22 11:56:05 ERROR 500: Internal Server Error.
Command I used is for example:
wget --debug --no-check-certificate --post-file=loc.xml \
--header="Content-Type: text/xml;charset=UTF-8" \
--header="SOAPAction: \"process\"" \
-O response.xml $ENDPOINT
ENDPOINT corresponds to :
https://XXXXXXXX:7002/GC3Services/IntXmlService/call
XXXXXXXX=>App server Name
I have also tried to add credentials to header but the result is the same, I added something like:
--header="UserName: DOMAIN.XXX" \
--header= "Password: YYY" \
or
--user=DOMAIN.XXX --password=YYY \
Any help will be appreciated.
Thank you.
Kind regards.