[
http://issues.apache.org/jira/browse/AXIS2-864?page=comments#action_12421022 ]
Deepal Jayasinghe commented on AXIS2-864:
-----------------------------------------
Michele;
I implement a handler as follows to invoke a service in async manner , and I
got the reply. So I was unable to regenerate the problem , if you can please
help me to regenerate the issue
public class MyHandler extends AbstractHandler {
public void invoke(MessageContext msgContext) throws AxisFault {
if (msgContext.getAxisService() != null &&
msgContext.getAxisService().getName().equals("EchoService")) {
ServiceClient sc = new ServiceClient(null, null);
Options opts = new Options();
opts.setTo(new
EndpointReference("http://127.0.0.1:8000/axis2/services/EchoS"));
opts.setAction("urn:echo");
opts.setUseSeparateListener(true);
sc.setOptions(opts);
OMElement element = sc.sendReceive(createEnvelope());
System.out.println(element);
System.out.println("done");
}
}
public static OMElement createEnvelope() {
OMFactory fac = OMAbstractFactory.getOMFactory();
OMNamespace omNs = fac.createOMNamespace("http://org/xsd", "ns1");
OMElement method = fac.createOMElement("echo", omNs);
OMElement value = fac.createOMElement("myValue", omNs);
method.addChild(value);
return method;
}
}
> ServiceClient running inside a handler fails to receive response
> ----------------------------------------------------------------
>
> Key: AXIS2-864
> URL: http://issues.apache.org/jira/browse/AXIS2-864
> Project: Apache Axis 2.0 (Axis2)
> Type: Bug
> Components: client-api
> Versions: 1.0
> Environment: Windows XP SP2, Java JDK 1.5.0_03, Axis2 snapshot July 3rd
> Reporter: Michele Mazzucco
> Assignee: Deepal Jayasinghe
>
> I've got a ServiceClient embedded into a handler. It submits a request to a
> service running into another server. The request is successfully delivered
> (and the service executes correctly), however the result is never received
> because the result is sent to
> http://null:8080/axis2/services/annonService5978327/annonOutInOp, while the
> handler runs on port different from 8080 (and non null address).
> Before the ServiceClient sends the message, I do not set any ReplyTo value
> (but this not should be the cause since in "normal" conditions it works).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]