asankha,

I was able to get this working with 0.91.  Thank you for pointing me in the
right direction.

I found that in order for my original caller to recieve a SOAP response that
I had to perform a transformation on the response recieved from the POX
service to re-insert it in a SOAP envelope before it was returned.  Was this
the right approach, or should I have done something else to ensure the
response to the original client was SOAP?  Here are the relevant sections of
my configuration

    <definitions>

        <set-property name="POX-to-SOAP-transform"
key="transform/POX-to-SOAP.xslt"/>

       <endpoint name="OrderStatusUpdateServiceForm"
                 force="pox"
                 address="http://localhost:8500/griffin/MyFormService.cfm"; />

        <sequence name="OrderStatusUpdateService-OutSequence">
                <xslt key="POX-to-SOAP-transform">
                        <property name="live" value="false"/>
                </xslt>
                <send/>
        </sequence>

        <sequence name="OrderStatusUpdateService-InSequence">
         <send>
            <endpoint ref="OrderStatusUpdateServiceForm"/>
         </send>
        </sequence>


    </definitions>

    <proxies>

        <proxy name="OSU">
                <wsdl key="OrderStatusUpdateService.wsdl"/>
            <target inSequence="OrderStatusUpdateService-InSequence"
outSequence="OrderStatusUpdateService-OutSequence"/>
        </proxy>

</proxies>

  <!-- The most simple Synapse configuration -->
  <rules>
        <log level="none"/>
        <send/>
  </rules>

Regards,
Michael

-----Original Message-----
From: Asankha C. Perera [mailto:[EMAIL PROTECTED]
Sent: Friday, February 23, 2007 11:38 AM
To: [email protected]
Subject: Re: SOAP in HTTP Form Post Out


Hi Michael

What you need is a SOAP Proxy service, directing to a REST endpoint, and
this is possible with Synapse. You could create a proxy service as usual
to accept the messages, and then send them through a sequence if you
require any transformation. Then the trick is to use an endpoint where
force="pox" is turned on.

If I can remember correctly, this switch was not marked in the 0.91
release documentation, but you could view the latest synapse config
language from the new synapse home page link that fetches it right from
the SVN trunk. The link is
http://svn.apache.org/viewvc/webservices/synapse/trunk/java/src/site/resourc
es/Synapse_Configuration_Language.html?content-type=text%2Fhtml&view=co
<http://svn.apache.org/viewvc/webservices/synapse/trunk/java/src/site/resour
ces/Synapse_Configuration_Language.html?content-type=text%2Fhtml&view=co>

Let me know if you get this working with 0.91, else you could get a
build of Synapse off the SVN trunk and it will definitely work. I am
thinking of doing a 0.92 release next week before we start working on
some of the changes proposed by Paul on the dev list, and I could get
this into that release.

asankha

Michael Griffin wrote:
> Does anyone know if I can use to Synapse to proxy an incoming SOAP request
> to HTTP form Post?  If so, how might I do this?
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to