calling a web services method via java stand-alone client application

Hello,

I'm confused at invoking wsdl(web_services.cfc?wsdl) from java stand-alone client application.

Coding Program, JBuilderX and i've installed Web Services Developer pack.

I have one web service wsdl file which has a simple method returns one String.

I'm already import the wsdl file to the JBuilderX project and program is put these files in to the project folder.
Files:
- Web_Service.java
- Web_servicesCfcSoapBindingStub.java
- Web_servicesService.java
- Web_servicesServiceLocator.java
- Web_servicesServiceTestCase.java


And after these processes, i don't know how to call the method in that wsdl file...


I searched the google and the groups. But i can't find anything that helps.

So, how can i get the String? or call the method?


Thank you,







gelgitdevAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

girionisCommented:
0
TimYatesCommented:
You should be able to do: (from http://forum.java.sun.com/thread.jspa?forumID=331&messageID=2809692&threadID=563855)

Call call=new Call();
SOAPMappingRegistry smr = call.getSOAPMappingRegistry();
call.setSOAPMappingRegistry(smr);
call.setMethodName("the method name that you want to ivoke");
call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);
call.setTargetObjectURI(target where the soap is implemented);
Vector params = new Vector();
params.addElement(new Parameter("parameter to be passed", type of parameter,null);

call.setParams(params);
Response resp = call.invoke(url to be invoked, target object uri);

Assuming it's a SOAP service...
0
gelgitdevAuthor Commented:
I solved the problem.
Here is the solution. (for JBuilderX packaging)

Web_servicesService ws = new Web_servicesServiceLocator();
Web_services port = ws.getWeb_servicesCfc();
String s = port.getThisShit2("hebe"); //gotcha!



Thank you,
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

girionisCommented:
Nice to hear you got it solved :)

If you feel you have been helped please accept an answer/split the points otherwise ask a question to Community Support (http://www.experts-exchange.com/Community_Support/) for zero points to PAQ this question and refund the points back to you.
0
girionisCommented:
Fine by me.
0
TimYatesCommented:
me too
0
moduloCommented:
PAQ-ing the question and refunding 500  points

Thanks girionis & TimYates !

modulo

Community Support Moderator
Experts Exchange
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.