[
https://issues.apache.org/jira/browse/AXIS2-3003?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
tommy reopened AXIS2-3003:
--------------------------
public static void main(java.lang.String args[]) {
try {
StockQuoteServiceStockQuoteServiceHttpportStub stub =
new StockQuoteServiceStockQuoteServiceHttpportStub(
"http://localhost:6080/axis2/services/StockQuoteService");
stub._getServiceClient().engageModule("addressing");
stub._getServiceClient().getOptions().setUseSeparateListener(true);
getPrice(stub);
update(stub);
} catch (Exception e) {
e.printStackTrace();
System.err.println("\n\n\n");
}
}
/* fire and forget */
public static void update(
StockQuoteServiceStockQuoteServiceHttpportStub stub) {
try {
StockQuoteServiceStockQuoteServiceHttpportStub.Update
req = new StockQuoteServiceStockQuoteServiceHttpportStub.Update();
StockQuoteServiceStockQuoteServiceHttpportCallbackHandler callback = new
StockQuoteServiceStockQuoteServiceHttpportCallbackHandler() {
};
req.setSymbol("ABC");
req.setPrice(42.35);
stub.startupdate(req, callback);
System.err.println("done");
} catch (Exception e) {
e.printStackTrace();
System.err.println("\n\n\n");
}
}
/* two way call/receive */
public static void getPrice(
StockQuoteServiceStockQuoteServiceHttpportStub stub) {
try {
StockQuoteServiceStockQuoteServiceHttpportStub.GetPrice
req = new StockQuoteServiceStockQuoteServiceHttpportStub.GetPrice();
StockQuoteServiceStockQuoteServiceHttpportCallbackHandler callback = new
StockQuoteServiceStockQuoteServiceHttpportCallbackHandler() {
public void
receiveResultgetPrice(StockQuoteServiceStockQuoteServiceHttpportStub.GetPriceResponse
result) {
System.out.println(result.get_return());
}
};
req.setSymbol("ABC");
stub.startgetPrice(req, callback);
} catch (Exception e) {
e.printStackTrace();
System.err.println("\n\n\n");
}
}
I tried Axis2 1.3 RC, but it didn't work! The problem is still there, it seems
like nothing changed, but 'stub._getServiceClient().engageModule(new
QName("addressing"));' was changed to
'stub._getServiceClient().engageModule("addressing");';
> Unable to engage addressing at client side, want to know the specific
> location of addressing.mar in the project
> ---------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-3003
> URL: https://issues.apache.org/jira/browse/AXIS2-3003
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: Addressing
> Affects Versions: 1.2
> Environment: winxp, axis2
> Reporter: tommy
>
> I got the same problem with "Unable to engage module : addressing ", I've
> added the line 'stub._getServiceClient().engageModule(new
> QName("addressing"));' in my client codes. Could anyone be kind to tell where
> I should place addressing-1.2.mar in my class-path. I copyed it everywhere it
> could be, but the program still cannot recognize the .mar file in my project.
> Ask for help, thanks in advance.
> [ Show ยป ] tommy - [22/Jul/07 11:28 PM ] I got the same problem with "Unable
> to engage module : addressing ", I've added the line
> 'stub._getServiceClient().engageModule(new QName("addressing"));' in my
> client codes. Could anyone be kind to tell where I should place
> addressing-1.2.mar in my class-path. I copyed it everywhere it could be, but
> the program still cannot recognize the .mar file in my project. Ask for help,
> thanks in advance.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]