'Sending SOAP Request to host using curl command getting exception as below. Here's my sample SOAP request im trying to send:
curl -v --request POST --header "Content-Type: text/xml;charset=UTF-8"
--data
'<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="">
soapenv:Header/ \
soapenv:Body
<ns:getCountryRequest> <ns:name>Poland</ns:name> </ns:getCountryRequest> \
</soapenv:Body> \
</soapenv:Envelope>'
Exception im facing:
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server</faultcode><faultstring>The Operation could not be found. The endpoint reference (EPR) for the Operation not found is: '<some url>' and the SOAPAction was ''</faultstring><detail><Exception>org.apache.axis2.AxisFault: The Operation could not be found. The endpoint reference (EPR) for the Operation not found is: '<some url>' and the SOAPAction was ''
at com.ibm.broker.axis2.Axis2Invoker.invokeAxis2(Axis2Invoker.java:3127)
at com.ibm.broker.axis2.TomcatNodeRegistrationUtil.invokeAxis2(TomcatNodeRegistrationUtil.java:664)
at com.ibm.broker.axis2.TomcatNodeRegistrationUtil.invokeAxis2(TomcatNodeRegistrationUtil.java:610)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
