Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POST rest dsl should be used when it comes to complex Java Object #96

Open
ffang opened this issue Apr 3, 2020 · 0 comments
Open

POST rest dsl should be used when it comes to complex Java Object #96

ffang opened this issue Apr 3, 2020 · 0 comments
Labels

Comments

@ffang
Copy link

ffang commented Apr 3, 2020

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>
@ffang ffang added the bug label Apr 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant