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


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.

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,

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.

You should be able to do: (from

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

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

Assuming it's a SOAP service...
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,
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.

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 ( for zero points to PAQ this question and refund the points back to you.
Fine by me.
me too
PAQ-ing the question and refunding 500  points

Thanks girionis & TimYates !


Community Support Moderator
Experts Exchange

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

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.