Thank you very much. Your answer helped a lot.
Main Topics
Browse All TopicsI need to write a web service client applicaton in JAVA to call a web service developed in .Net.
I am trying to use Wsimport to creat a stub for the web service client classes.
This is what I have done:
- installed in a Windows 2008 server:
Apache HTTP server 2.213
JAVA SE Development Kit 6
JAVA SE Runtime Environment 6
I Saved the WSDL file as service.wsdl by using the web browser from http://mytest7575.net/hell
From the command line I type the command:
wsimport service.wsdl -d Hello2 -p HelloPkg
From wsimport, I get te error:
warning: Ignoring SOAP port "HelloClassSoap12": it uses non-standard SOAP 1.2 binding.
You must specify the "-extension" option to use this binding.
The stub files I get from wsimport, all contain a lot of NULL and non-ascii characters.
What am I doing wrong?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: ChristoferDutzPosted on 2009-09-29 at 03:17:26ID: 25447347
The reason for your error/warning is that the HelloClassSoap12 port definition refers to a binding that uses a non standard ("wsdl" namespace) binding. In your case it's the xmlsoap.or g/soap/htt p"/>
calbotte/r cx-ws-doc/ present.ht m
<soap12:binding transport="http://schemas.
If you specify the "-extension" parameter this error will go away.
The problem with your strange characters in your generated files is another issue. I Would guess that the encoding of the WSDL file is one that causes Problems when generating the classes. Another assumption would be that executing the wsimport from the commandline uses the default windows charset which might differ from the one configured in your Eclipse Workspace.
If you are not fixed to wsimport and just want a Java Client for your Webservice, mabe you should give wsdl2java a try.
http://users.skynet.be/pas