0
votes

I want to use HTTP operation based connector in mule version 3.5.2 for calling a rest service as having a requirement that instead of payload of mule message need to specify some property as request to HTTP connector which can be acheived by specifying source attribute.

Added maven dependency for mule http

<dependency>
            <groupId>org.mule.transports</groupId>
            <artifactId>mule-transport-http</artifactId>
            <version>3.6.0</version>
            <scope>provided</scope>
        </dependency>

and in flow.xml file included xml namespace

xmlns:httpn="http://www.mulesoft.org/schema/mule/httpn"  and 
xsi:schemaLocation="....
http://www.mulesoft.org/schema/mule/httpn http://www.mulesoft.org/schema/mule/httpn/3.6/mule-httpn.xsd..."

Is it possible to use operation based connector in mule 3.5.2? Are there some other steps required apart from maven dependency and namespace in flow.xml as even after including namespace the flow is not able to include httpn namespace.If HTTP operation based connector is not possible to use what can i do to HTTP outbound endpoint connector so that http post request is mapped from a mule message property rather than payload and similar for response that response is returned to mule message property.

1

1 Answers

0
votes

You are confusing the HTTP transport and the HTTP module.

The HTTP module Maven dependency is actually:

<dependency>
    <groupId>org.mule.modules</groupId>
    <artifactId>mule-module-http</artifactId>
    <version>3.6.0</version>
    <scope>provided</scope>
</dependency>