All the "MyService" parts are coming from the name of your portType.
<wsdl:portType name="MyService">
results in:
MyServiceLocator myLocator = new MyServiceLocator();
MyService myService = locator.getMyService();
myService.doSomething();
You do not manually create/use the Request and Response messages. This
is handled by axis itself.
Mick Knutson schrieb:
I have generated various classes from my wsdl2java, but can't seem to
understand how to use them, or maybe I am missing some items.
I thought I would have something like:
CONSUMER_DATA_REQType consumerDataRequestType = new
CONSUMER_DATA_REQType();
WsvcConsumerQueryLocator consumerQueryLocator = new
WsvcConsumerQueryLocator();
WsvcConsumerQuery wsvcConsumerQueryService =
consumerQueryLocator.getwsvcConsumerQueryService();
CONSUMER_DATA_RSPType consumerDateResponse =
wsvcConsumerQueryService.findConsumer(consumerDataRequestType);
but there is NOT a consumerQueryLocator.getwsvcConsumerQueryService();
generated.
And in the wsvcConsumerQueryService, there is not a way to call my
service, there is only a getwsvcConsumerQueryPort()
I am just unsure of how to piece these items together.
Can anyone help?
I can send you my WSDL and you can see for yourself.
BTW, I am using Maven to run wsdl2java each build.
Thanks in advance for your help on this matter.
Mick Knutson
Sr. Java/J2EE Consultant
BASE logic, inc.
(415) 648-1804 (S.F., CA)
http://www.BASELogic.com
HP Consulting Services (Walnut Creek, CA)