I am trying to send an xml file to webserver using wget command in unix as below
wget --post-file xyz.xml http://
i am getting 400 bad request error,please help me
I am trying to send an xml file to webserver using wget command in unix as below
wget --post-file xyz.xml http://
i am getting 400 bad request error,please help me
This is an example of POST to a Webservice to register an IP in an internal Microsoft DNS.
wget --post-file=myxml.xml --header="Content-Type: text/xml; charset=utf-8" --header="SOAPAction: \"http://tempuri.org/IServiziXXX/AddRecordPassLocal\"" http://servizixxx.mydomain.local:810/ServiziXXX.svc
And this is the file myxml.xml
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="http://tempuri.org/">
<SOAP-ENV:Body>
<ns1:AddRecordPassLocal><ns1:domain>stage.local</ns1:domain><ns1:recordName>my-server-name</ns1:recordName><ns1:ipDestination>192.168.1.1</ns1:ipDestination></ns1:AddRecordPassLocal>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>