For reference.

Solution for supporting only SOAP 1.1 requests using Apache Synapse. This is
a sample configuration file which will work with Synapse nightly build or
1.1.

<definitions xmlns="http://ws.apache.org/ns/synapse";>
    <in>
        <switch source="get-property('MESSAGE_FORMAT')">
        <case regex="soap11">
            <send>
                <endpoint>
                    <address uri="
http://localhost:9001/soap/SimpleStockQuoteService"/>
                </endpoint>
            </send>
        </case>
        <case regex="soap12">
            <makefault>
                <code value="tns:Receiver" xmlns:tns="
http://www.w3.org/2003/05/soap-envelope"/>
                <reason value="SOAP 1.2 not accepted"/>
                </makefault>
            <property name="RESPONSE" value="true"/>
            <send/>
            <drop />
        </case>
        <default>
            <drop />
        </default>
     </switch>
    </in>
    <out>
        <send />
    </out>
</definitions>


Upul

On 10/2/07, Erwin Reinhoud <[EMAIL PROTECTED]> wrote:
>
> Thanks for that info. I'll track the issue and voted for it. Hope it will
> be implemented soon. Otherwise i still can look at the synapse solution.
>
> Kind regards,
> Erwin
>
>
>
> -----Oorspronkelijk bericht-----
> Van: Nadir Amra [mailto:[EMAIL PROTECTED]
> Verzonden: dinsdag 2 oktober 2007 16:13
> Aan: [email protected]
> CC: [email protected]
> Onderwerp: Re: Generate service that exclusively supports soap1.1
> requests
>
>
> There are several open JIRA's related to this, primary one is:
> http://issues.apache.org/jira/browse/AXIS2-3114
>
> Nadir K. Amra
>
>
> "Upul Godage" <[EMAIL PROTECTED]> wrote on 10/02/2007 02:59:07 AM:
>
> > Hi,
> >
> > I think you can use Apache Synapse for this, using in front of the
> > web service. (http://ws.apache.org/synapse/)  Check the SOAP-1.2-
> > namespaced Envelope using 'filter' mediator (works like an if
> > condition using xpath) and in the sequence using 'makefault'
> > mediator to send fault. Or otherway check for SOAP-1.1-namespaced
> > Envelope, if yes then send further otherwise 'makefault'.
> >
> > Upul
> >
>
> > On 10/2/07, Erwin Reinhoud < [EMAIL PROTECTED]> wrote:
> > Hello All,
> >
> > I already posted this before but saw no reply. I hope somebody can
> > at least tell me if my expectations are correct, which are that if i
> > only have the soap1.1 binding in the WSDL than all soap1.2 requests
> > would get a soapfault.
> >
> > So would it be possible to have a service that exclusively supports
> > soap1.1 requests by only having ther soap1.1 binding in wsdl? Is
> > there an other configurable way to only support 1.1?  In earlier
> > versions of axis2 there were always 2 bindings (soap1.1 and soap1.2)
> > so both calls were supported.
> >
> >
> > Thanks in advance.
> >
> > Kind regards,
> > Erwin
> >
> > ---------------------------------------------------------------------
> > 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]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to