Hi,

I have downloaded IS 5.0.0 and exposed admin services as per [1].
Then as per [2] by using RemoteUserStoreManagerService WSDL URL, I tried to
generate
JAX-WS client code using wsimport tool (located at $JDK/bin).

Then I got the following error.
Suhans-MacBook-Pro:bin suhanr$ wsimport -d
/WSO2/sup_dev/Feb_2015/XXXXXXXXXXX_NN/client/
http://localhost:9763/services/RemoteUserStoreManagerService?wsdl
parsing WSDL...
[ERROR] operation "updateCredential" has an invalid style
  line 721 of
http://localhost:9763/services/RemoteUserStoreManagerService?wsdl
[ERROR] operation "setUserClaimValue" has an invalid style
  line 725 of
http://localhost:9763/services/RemoteUserStoreManagerService?wsdl
[ERROR] operation "deleteUserClaimValues" has an invalid style
  line 734 of
http://localhost:9763/services/RemoteUserStoreManagerService?wsdl
[ERROR] operation "deleteUserClaimValue" has an invalid style
  line 738 of
http://localhost:9763/services/RemoteUserStoreManagerService?wsdl
[ERROR] operation "updateCredentialByAdmin" has an invalid style
  line 747 of
http://localhost:9763/services/RemoteUserStoreManagerService?wsdl
[ERROR] operation "deleteRole" has an invalid style
  line 781 of
http://localhost:9763/services/RemoteUserStoreManagerService?wsdl
[ERROR] operation "deleteUser" has an invalid style
  line 790 of
http://localhost:9763/services/RemoteUserStoreManagerService?wsdl
[ERROR] operation "updateRoleName" has an invalid style
  line 804 of
http://localhost:9763/services/RemoteUserStoreManagerService?wsdl
[ERROR] operation "updateRoleListOfUser" has an invalid style
  line 808 of
http://localhost:9763/services/RemoteUserStoreManagerService?wsdl

...

[ERROR] operation "updateUserListOfRole" has an invalid style
  line 1561 of
http://localhost:9763/services/RemoteUserStoreManagerService?wsdl
[ERROR] operation "setUserClaimValues" has an invalid style
  line 1570 of
http://localhost:9763/services/RemoteUserStoreManagerService?wsdl
[ERROR] operation "addUserClaimValue" has an invalid style
  line 1591 of
http://localhost:9763/services/RemoteUserStoreManagerService?wsdl
[ERROR] missing required property "style" of element "operation"
Failed to parse the WSDL.

As per the blogs [3], [4] we have to modify WSDL files such that to add
output message element
for void return type.

Users have come across this issue recently and we are issuing modified
WSDL files to generate JAX-WS clients via wsimport tool.

Is this workaround acceptable or we have to give a permanent solution?

[1] https://docs.wso2.com/display/IS500/Managing+Users+and+Roles+with+APIs
[2] http://www.mkyong.com/webservices/jax-ws/jax-ws-wsimport-tool-example/
[3] http://soasecurity.org/2015/01/26/jax-ws-client-for-wso2-admin-service/
[4]
http://ajithvblogs.blogspot.com/2015/02/jax-ws-client-for-authenticate-to-wso2.html

Thanks,
Suhan

-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to