Borodina Valery created CAMEL-15901:
---------------------------------------
Summary: Not correctly reading wsdl (Does it exist in service
WSDL?)
Key: CAMEL-15901
URL: https://issues.apache.org/jira/browse/CAMEL-15901
Project: Camel
Issue Type: Bug
Components: camel-cxf
Environment: karaf 4.2.9
camel 3.4.4
java 11
jdk 11.0.9.fx-librca
Reporter: Borodina Valery
My app work on java 8, but don't on java 11. I try increase version java -> 11.
I loading my test-project when I get exception:
[https://github.com/Holly-12/cxfjava11]
When bundle installed in karaf and have status Active I send soap message and
get exception:
Message part \{http://lama.ru/}packet was not recognized. (Does it exist in
service WSDL?)
I get wsdl(http://localhost:8181/cxf/lama?wsdl) and see:
{code:java}
<wsdl:definitions xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://lama.ru/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:ns1="http://schemas.xmlsoap.org/soap/http"
name="SoapProxyService"
targetNamespace="http://lama.ru/">
<wsdl:types>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http://www.lama.ru/test/"
elementFormDefault="qualified"
targetNamespace="http://www.lama.ru/test/" version="1.0">
<xs:element name="packet" type="tns:packetType"/>
<xs:element name="response" type="xs:string"/>
<xs:complexType name="packetType">
<xs:sequence>
<xs:element name="content" type="xs:anyType"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
</wsdl:types>
<wsdl:portType name="SoapProxy"></wsdl:portType>
<wsdl:binding name="SoapProxyServiceSoapBinding" type="tns:SoapProxy">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
</wsdl:binding>
<wsdl:service name="SoapProxyService">
<wsdl:port binding="tns:SoapProxyServiceSoapBinding"
name="SoapProxyPort">
<soap:address location="http://localhost:8181/cxf/lama"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
{code}
I see what wsdl don't have operation. But when I run app without karaf and
camel only with cxf app work without exception.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)