Open ffang opened 4 years ago
With this WSDL , the wsdl2rest will generate camel-context.xml like
<get id="id-01f5d714-8b84-4af4-9358-e608a345ccbb" uri="/request/{arg0}" type="com/wdata.ibm.WeatherRequest" outType="com/wdata.ibm.WeatherResponse" > <to uri="direct:weatherRequest"/> </get>
However, the type WeatherRequest isn't primitive JAVA object and can't be the arg in uri, we should generate POST instead in this case like
<post id="id-140a15b5-e0f0-498b-9592-9efd399f17bf" uri="/request/" type="com.ibm.wdata.WeatherRequest" outType="com.ibm.wdata.WeatherResponse" consumes="application/json" > <to uri="direct:weatherRequest"/> </post>
With this WSDL , the wsdl2rest will generate camel-context.xml like
However, the type WeatherRequest isn't primitive JAVA object and can't be the arg in uri, we should generate POST instead in this case like