apache - Generating java classes from wsdl using namespaces and multiple packages -
i'm using apache cfx wsdl2java tool convert wsdl java classes. general set-up works fine, i'm having problem command:
-p [ wsdl-namespace= ] packagename
the documentation says:
specifies zero, or more, bundle names utilize generated code. optionally specifies wsdl namespace bundle name mapping.
however, works single bundle me. first command below works, sec , 3rd 1 doesn't. did mess syntax?
1) -p namespace1=com.name.webservices http://url-to-my-wsdl.com
2) -p namespace1=com.name.webservices com.name.common http://url-to-my-wsdl.com
3) -p namespace1=com.name.webservices namespaceforcommonobjects=com.name.common http://url-to-my-wsdl.com
in sec example, i'm trying set namespace1 bundle webservices, , rest bundle common.
in 3rd illustration i'm trying set namespace1 bundle webservices, , namespaceforcommonbojects bundle common.
i maintain getting exception in console saying: "unexpacted argument" , url wsld, except in illustration 1, works fine not hve output desire...).
you need add together -p switch before each namespace bundle mapping.
-p namespace1=com.name.webservices -p namespaceforcommonobjects=com.name.common http://url-to-my-wsdl.com
java apache web-services wsdl
No comments:
Post a Comment