Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 965441
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T01:59:55+00:00 2026-05-16T01:59:55+00:00

I need to create a mule service that will POST data to a web

  • 0

I need to create a mule service that will POST data to a web service that expects name/value pairs (not xml), then process the XML response from that service. I cannot find a good example on how to prep the payload for an http POST.

Can someone provide some insight or examples?

What I have so far is (I don’t know if ‘PathToTransformerClass’ is needed):

    <service name="myService">
        <inbound>
            <vm:inbound-endpoint path="myService.request" synchronous="true">
                <custom-transformer class="PathToTransformerClass" />
            </vm:inbound-endpoint>
        </inbound>
        <outbound>
            <pass-through-router>
                <http:outbound-endpoint address="URIofWebServiceToPostTo" method="POST" synchronous="true">
                    <response-transformers>
                        <custom-transformer class="PathToClassToProcessTheResponse" />
                    </response-transformers>
                </http:outbound-endpoint>
            </pass-through-router>
        </outbound>
    </service>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T01:59:56+00:00Added an answer on May 16, 2026 at 1:59 am

    The following might be helpful: http://comments.gmane.org/gmane.comp.java.mule.user/29342

    I can’t find any examples either, but it looks like the built-in HTTP transformers are

    http-response-to-object-transformer A
    transformer that converts an HTTP
    response to a Mule Message. The
    payload may be a String, stream, or
    byte array.

    http-response-to-string-transformer
    Converts an HTTP response payload
    into a string. The headers of the
    response will be preserved on the
    message.

    object-to-http-request-transformer
    This transformer will create a valid
    HTTP request using the current message
    and any HTTP headers set on the
    current message.

    message-to-http-response-transformer
    This transformer will create a valid
    HTTP response using the current
    message and any HTTP headers set on
    the current message.

    object-to-http-request-transformer might be your best bet; perhaps you can create a map of key-value pairs and then convert that into URL encoded form? Not sure but hopefully this gives you some things to Google.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I create service and I need create class MyErrors (not exception) My web method
Need to create a custom DNS name server using C which will check against
I need to create a script that will log into an authenticated page and
I need to create a program that will communicate with other programs on the
I need create a stored proc that will return a list of a code,
I need create clone repository. but I do not know where can I get
I need to create a WP site which will have multiple subjects. Each subject
I to need create a programmatic equivalent using delphi language... or could someone post
I need create three random links to other posts, in my post view function.
this is my first post here. I need create a feed like facebook with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.