hi,
i have curl command to POST a soap request to web service. I have a file (query.xml) which has all the soap message attached to it I just don't seem to be able to properly post it.
curl command
curl -s -H "Content-Type: text/soap+xml;charset=UTF-8" -H "SOAPAction:" -d @query.xml http://10.130.9.79:7782/services/CBSInterfaceBusinessMgrService
query.xml
<q2:QueryBasicInfoRequestMsg
xmlns:q0="http://www.huawei.com/bme/cbsinterface/cbs/businessmgr"
xmlns:q1="http://www.huawei.com/bme/cbsinterface/common"
xmlns:q2="http://www.huawei.com/bme/cbsinterface/cbs/businessmgrmsg">
<parameter name="enableREST">true</parameter>
<RequestHeader>
<q1:CommandId>QueryBasicInfo
</q1:CommandId>
<q1:Version>1
</q1:Version>
<q1:TransactionId/>
<q1:SequenceId>1
</q1:SequenceId>
<q1:RequestType>Event
</q1:RequestType>
<q1:SerialNo>03020000003
</q1:SerialNo>
</RequestHeader>
<QueryBasicInfoRequest>
<q0:SubscriberNo>9150000014</q0:SubscriberNo> <q0:QueryType>3</q0:QueryType> </QueryBasicInfoRequest> </q2:QueryBasicInfoRequestMsg>
error coming is
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header>
<wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/none
</wsa:Address>
</wsa:ReplyTo><wsa:MessageID>urn:uuid:AAC81E84BC63EF7AA81443502795856131
</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/soap/fault
</wsa:Action>
</soapenv:Header>
<soapenv:Body>
<soapenv:Fault>
<faultcode></faultcode><faultstring>com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '-' (code 45) in prolog; expected '<'
at [row,col {unknown-source}]: [1,22]</faultstring><detail /></soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>