开发者

How to create Axis Web Service Client for a local WSDL file?

开发者 https://www.devze.com 2022-12-20 17:45 出处:网络
i have local WSDL file. i tried to create JAX-WS Web service client which is available by default in Netbeans. But there are problems in accessing the service. So i tried to create Axis Web Service cl

i have local WSDL file. i tried to create JAX-WS Web service client which is available by default in Netbeans. But there are problems in accessing the service. So i tried to create Axis Web Service client by installing the plugin.

But i don't find any way to import the WSDL and access the servi开发者_Python百科ces available like JAX- WS Style.

I have looked at Create Axis Service from WSDL option but when i import the WSDL i don't find any method available

How can i import and access the WSDL in Netbeans using Axis?

EDIT:

The problem is not in accessing, i was successful in invoking the services but in few services i wasn't able to find one method that is part of the service. However when i tried the same in C# environment i was able to find all the method. So that's the reason i was moving to Axis


You can also try creating the service through soapUI. Moreover if you are in an early phase of deciding which web service framework to use, you can also consider CXF instead of Axis.

EDIT: In soapUI from the tools menu you can create artifacts for JAX-WS, Axis, CXF etc.


I Agree with Pascal comment here, moving to another stack might not solve your problems. Also I suggest not creating the web service client with Netbeans wizard but using the jax-ws wsimport commands (part of any java SDK). You can use this ant task:

<target name="wsimport" depends="" description="create client code">
    <exec executable="C:\Program Files\Java\jdk1.6.0_16\bin\wsimport">
        <arg line="-d ${basedir}/bin -keep -p com.ttt.client.ws -s ${basedir}/src  wsdl/wsdlfile.wsdl -b wsdl/wsdlfile.xsd"/>
    </exec> 
</target>

Or just run the command from a shell/cmd.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号