hello Evanthika,
we finally found the solution : we've upgraded our apache http server to
the 2.2 (previously 2.0) version and it works now!
best regards
Evanthika Amarasiri a écrit :
Hi Oliver,
I tried out your scenario and it works fine for me. This is the
configuration which I have created. Can you please check your
configuration against mine and see?
As you can see I have *Proxy1* which directs my request to *Proxy2*
and then from Proxy2 the actual service is called. Is this what you
were trying to do?
/[Client -> Proxy1(EPR points to Proxy2) -> Proxy2(EPR points to
actual service) -> Service]/
<syn:definitions xmlns:syn="http://ws.apache.org/ns/synapse">
<syn:proxy name="*Proxy2*">
<syn:target>
<syn:inSequence>
<syn:log level="full" separator=","/>
<syn:send>
<syn:endpoint>
<syn:address
uri="*http://localhost:9000/soap/<service_name>*"/>
</syn:endpoint>
</syn:send>
</syn:inSequence>
<syn:outSequence>
<syn:log level="full" separator=","/>
<syn:send/>
</syn:outSequence>
</syn:target>
</syn:proxy>
<syn:proxy name="*Proxy1*" transports="http">
<syn:target>
<syn:endpoint>
<syn:address uri="*http://localhost:8280/soap/Proxy2*"/>
</syn:endpoint>
</syn:target>
</syn:proxy>
</syn:definitions>
Thanks,
Evanthika
Olivier Ziller wrote:
hello,
i've a webservice called ws1.
i've successfully defined a proxy p1 for ws1 in a synapse server
called s1
now i want to use a second synapse server s2 that will expose a new
proxy p2 wich will pass all request to p1 on s1.
we want to have :
client -> s2/p2 -> s1/p1 -> ws1
but when i try to do this, i get the following error :
<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault>
<faultcode>411</faultcode>
<faultstring>Length Required</faultstring>
<detail>Unexpected response received :
com.ctc.wstx.exc.WstxUnexpectedCharException:
Unexpected character '"' (code 34) in DOCTYPE
declaration; expected a space between
public and system identifiers at [row,col
{unknown-source}]: [1,50]</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
if i do a direct call from s2/p2 to ws1 it works (client -> s2/p2 ->
ws1)
any idea?
best regards