I am new to WSo2 and am trying to do and-to-end run for my backend SOAP service i have. I have setup a SOAP service in WSo2 . I am trying to write a java client to invoke my WSo2-API which calls my SOAP service.
Swagger is giving results and so is curl on command prompt.
My Java client is however giving me error ---- org.wso2.client.api.ApiException: Content type "text/xml" is not supported
I couldn't find any help on web. Can u please have a look and help?
This is a limitation in the swagger library we use to generate the sdk.
As a workaround you can explicitly handle the text/xml content type in the generated JAVA client.
I am new to WSo2 and am trying to do and-to-end run for my backend SOAP service i have. I have setup a SOAP service in WSo2 . I am trying to write a java client to invoke my WSo2-API which calls my SOAP service. Swagger is giving results and so is curl on command prompt. My Java client is however giving me error ---- org.wso2.client.api.ApiException: Content type "text/xml" is not supported I couldn't find any help on web. Can u please have a look and help?
C:>curl -k -X POST "https://XXXXXXXXX:8243/mycountries/v1.0.0/" -H "accept: text/xml" -H "Content-Type: text/xml" -H "Authorization: Bearer 9f33ca31-af0e-3d7f-b741-7e589e45b8fc" -d "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:tri=\"http://www.etisoftware.com/triad/\"> </soapenv:Body></soapenv:Envelope>"