Hi,
Would you please append the xbean.xml for your proxy?
Since you have multiple endpoints (the port )in your wsdl, so you can specify the endpoint(which should be the port name in wsdl, not the QName) attribute for your proxy . Also, you should specify the "type" attribute correctly, which should be the client stub for the interface (portype in the wsdl) you want to send message to.

If you can append a small test case to illustrate how your wsdl, xbean and package look like, it would be easier for us to reproduce and figure out the problem

Best Regards
Freeman


Fullocto wrote:
Hi all

I keep working on my proxy, I have a new problem.
I have one external service with 3 porttypes (wsdl with 3 interfaces/3
endpoints).
To access it, I created three internal endpoints with CXF BC provider.
one service=myservice, interface=myinterface1, endpoint=myendpoint1
service=myservice, interface=myinterface2, endpoint=myendpoint2
service=myservice, interface=myinterface3, endpoint=myendpoint3

My proxy (and so do I btw) wants to send a message to service=myservice,
interface=myinterface2, endpoint=myendpoint2
but in fact it goes to service=myservice, interface=myinterface1,
endpoint=myendpoint1.

I checked in my JaxWsClientPoroxy, and in the BindingOperationInfo oi, I
have my service/endpoints that has a name for the endpoint (by the way it is
a Qname, but it is my enpdpointName + my namespace).
In the MessageExchange sent by the messagesenderInterceptor, i can see the
tables containing the endpoint (javax.xml.ws.wsdl.port = myendpoint2)
Then in the NMR I read the servicename, interfaceName... AND after the
"resolveAdress", i get a WRONG endpointName (endpoint1 for example). Then
the cxf provider reads the binding and doesn't find my operation
(interface2) amont the interface1 operations.

I tried to remove the "serviceName" from the proxy configuration and leave
only the interfaceName so the interfacename will be resolved (btw why not
adding a routing method with [servicename + interface] or just checking if
the interface is implemented by the endpoint chosen?), but xbean.xml and its
XSD doesn't allow to remove the service.
I don't know what to do (except removing the 2 other endpoints but I will
need them, and I can't change the WSDL).

---------------------------
How can I monitor some values during debug, for example checking if one
variable's value becomes "myinterface2"...? Or at least, when I look at the
variables of one class, how can I search by values? (I'll try to use google
to find it out too :D)

TY Brice

Reply via email to