« Return to Thread: Another Dynamic Partner Link Question

Another Dynamic Partner Link Question

by Marcus Milanez :: Rate this Message:

Reply to Author | View in Thread

Hello everyone,

I'm trying to develop a simple BPEL process which can invoke web services dynamically. To simulate the scenario, I've created an axis web service and published it in two different servers, in the very same address. The server IPs are different, but the web services are identical. I've also created a very simple BPEL proccess to invoke one of the published services, and it worked the way it should.

What I would like to do now is dynamically change the target server address, using Dynamic Partner Links, but I keep on getting 'unable to resolve the service endpoint dynamically' all the time.

Is it possible to solve the described situation? Below is the code snippet where I'm trying to change the partner link target address:

 <assign name="AssignPartnerLink">

            <copy>

                    <from>

                        <literal>

                            <sref:service-ref>

                                <wsa:EndpointReference>
                                        <!-- IP address of the secnond server -->
                                        <wsa:Address>

                                            http://10.152.21.38:5080/portal2/componentes/Teste.jws

                                        </wsa:Address>

                                        <wsa:ServiceName PortName="Teste">

                                            TesteService

                                        </wsa:ServiceName>

                                </wsa:EndpointReference>

                            </sref:service-ref>

                        </literal>

                     </from>

                     <to partnerLink="PartnerLinkServico"/>

                </copy>

        </assign>      


Also, attached to this message is my full project including the AXIS web service, which is quite simple. Can anybody please help me with that? I think I'm stuck in that for 3 days now...

Thank you all in advance for your attention!

project-bpel.zipAxisWSTeste.zip

 « Return to Thread: Another Dynamic Partner Link Question