On Apr 12, 2013, at 11:16 AM, Aaron Stromas <[email protected]> wrote:
> Thank you. Just out of curiosity, is it possible to inject values into
> annotations? If so, how? Sorry for the off-topic question.
Not that I'm aware of, no.
However, you could putt some "dummy" value in there and then use a catalog file
in /META-INF/jax-ws-catalog.xml to rewrite things.
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="system">
<rewriteSystem systemIdStartString="/my/dummy/location/"
rewritePrefix="classpath:/schemas/wsdl"/>
</catalog>
Dan
>
> -a
>
>
> On 12 April 2013 10:50, Daniel Kulp <[email protected]> wrote:
>
>>
>> On Apr 11, 2013, at 5:54 PM, Aaron Stromas <[email protected]> wrote:
>>
>>> Greetings,
>>>
>>> I'm struggling with deploying my Web service in Weblogic. The problem is
>>> the @WebService annotation attribute wsdlLocation. I'm deploying the
>>> application as a .ear file and I was told that I should create a wsdl
>>> directory in the META-INF directory and place my WSDL there. When that is
>>> done I should set the wdsdlLocation attribute to the name the file, i.e,
>> if
>>> my WSDL file is mywebservice.wsdl, the annotations should be like this:
>>>
>>> @Webservice(serviceName="...", ..., wsdlLocation="myservice.wsdl")
>>>
>>> But when I attempt to start the application from the Weblogic console it
>>> informs me that the WSDL file is not found and the location it uses is
>>>
>>>
>>> [user_projects]/<domain>/myservice.wsdl.
>>>
>>> How can I force Weblogic to use the wsdl packaged in the .ear?
>>> Thanks in advance,
>>
>> Usually you would use a location like "/META-INF/myservice.wsdl" or it
>> would go in with the rest of the classes and you could use a location like
>> "classpath:/com/foo/blah/myservice.wsdl".
>>
>>
>>
>> --
>> Daniel Kulp
>> [email protected] - http://dankulp.com/blog
>> Talend Community Coder - http://coders.talend.com
>>
>>
>
>
> --
> Aaron Stromas
> Mobile: +1 240 271 6458
--
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com