i tried it and i think the only way is send a soap written hard code.
I'm confused what the question here is. Is the question how to write a java SOAP client?
in that example is sent a soap hard code. For you have a soap you need a connection between webservices A and B, then the soap is automatic generated and sent, at least i think how it is...
In that case, example said in another topic, the soap is created inside code.
My doubt is if the jbr-provider esb at 8765 port accept only a soap manually inside a request ?
<jbr-provider name="JBR-Http" protocol="http" host="localhost">
<jbr-bus busid="Http-1" port="8765" /> </jbr-provider>
in this example jbr get a request with a soap message written hard code.
WS1 -----soap------->WS2 : normal connection between webservices
WS1-----soap------>ESB-------->WS2(or another java class, action pipeline....) : what i would like do. But in this case for my WSa to send a soap automatically, it needs other WS at the other end
i discovery the name "contract" in the forum, where i have http://localhost:8080/contract/ and it open my mind showing me
- Endpoint: http://localhost:8765
- Contract: http://localhost:8080/contract/contract.jsp?serviceCat=MyService&serviceName=MyServiceProducer&protocol=http
so i made a soapclient without to call wsdl, just connecting localhost:8765 where esb redirect to contract(at least i think).
in this case my soapclient create a soap automatically, no hard code.