Forum Discussion
JimL
17 years agoContributor
Hi,
When you say that there is no difference between the two WSDLs, where are you looking at/getting the WSDLs from?
With WebLogic, if you have a webservice, with policy, etc. annotations, and you go to the WSDL URL (http://yourhost/your_webservice_uri?WSDL, you'll get a 'dynamic' WSDL, which incorporates things like policy files, etc. that get pulled in by things like the "@policy" annotation.
A WSDL that you get generated using, for example, by using Workshop won't have that policy stuff in the WSDL.
So, to answer Ole's question, you'd need to build your webservice with the @RolesAllowed at the class level, deploy it, then point your browser to the ?WSDL URL, to get 1 WSDL.
Then, you'd need to modify your webservice code to put the @RolesAllowed at the operation/method level, rebuild the EAR, re-deploy it, then point your browser to the ?WSDL URL again, to get the 2nd WSDL.
Those are the two WSDLs that he's looking for, I think.
BTW, when you try to use SOAPUI, I think (not sure) that you'd need to import the appropriate WSDL.
Jim
When you say that there is no difference between the two WSDLs, where are you looking at/getting the WSDLs from?
With WebLogic, if you have a webservice, with policy, etc. annotations, and you go to the WSDL URL (http://yourhost/your_webservice_uri?WSDL, you'll get a 'dynamic' WSDL, which incorporates things like policy files, etc. that get pulled in by things like the "@policy" annotation.
A WSDL that you get generated using, for example, by using Workshop won't have that policy stuff in the WSDL.
So, to answer Ole's question, you'd need to build your webservice with the @RolesAllowed at the class level, deploy it, then point your browser to the ?WSDL URL, to get 1 WSDL.
Then, you'd need to modify your webservice code to put the @RolesAllowed at the operation/method level, rebuild the EAR, re-deploy it, then point your browser to the ?WSDL URL again, to get the 2nd WSDL.
Those are the two WSDLs that he's looking for, I think.
BTW, when you try to use SOAPUI, I think (not sure) that you'd need to import the appropriate WSDL.
Jim