Hi,
We have got a problem with the Camunda soap-connector.
We are trying to call a soap service through Camunda http-soap-connector (Configuration made by Camunda Modeler). The service itself can be called without any problem using e.g. SoapUI or cURL or directly from Spring code as well, setting the same parameters.
Here is our cURL syntax, which works:
curl -X POST
https://www.company.com/soap/authorize
-H 'content-type: text/xml'
-d '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:auth="urn://company/soap/auth">
<soapenv:Header/>
<soapenv:Body>
<auth:Authorize>
<auth:Name>username</auth:Name>
<auth:Password>password</auth:Password>
</auth:Authorize>
</soapenv:Body>
</soapenv:Envelope>'
In Camunda Modeler we use the following input parameters for http-soap-connector:
-
url (Type: Text): https://www.company.com/soap/authorize
-
payload (Type: Script, Script Format: freemarker, ftl under resources):
<soapenv:Envelope xmlns:soapenv=“http://schemas.xmlsoap.org/soap/envelope/” xmlns:auth=“urn://company/soap/auth”>
soapenv:Header/
soapenv:Body
auth:Authorize
auth:Nameusername</auth:Name>
auth:Passwordpassword</auth:Password>
</auth:Authorize>
</soapenv:Body>
</soapenv:Envelope> -
headers (Type: Map): Content-Type : text/xml
As a result we receive code 302 from the service (as far as we understood it means redirection). This happens because of the wrong input parameters of the call. We think the redirection comes from the service provider, when the call is not correctly parametrized.
Our question:
Is there any other parameter which should be set in Camunda Modeler?
Additional information:
The Camunda soap-connector works perfectly in our environment e.g for the service http://webservices.oorsprong.org/websamples.countryinfo/CountryInfoService.wso
We use Camunda Spring Boot Starter (v. 2.2.0), the Library camunda-connect-connectors-all is set as a dependency.
Thanks for any ideas or advice on this matter!