Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Override @WebServiceRef WSDL location from ejb-jar.xml?! - issues  RSS feed

 
Dejan Mratinkovic
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have posted similar problem on JBOss forum, but no responses so far.

JBoss 4.2.3 GA

Attempt to override @WebServiceRef WSDL location form ejb-jar.xml using tag <wsdl-file> fails.

When there is no @WebServiceRef set in code (Ejb 3 bean class), <service-ref> seems to be ignored (object I am attempting to inject remains NULL), but when there is @WebServiceRef in EJB bean class, errors in setting of <service-ref> are reported (when being invalid), so it seems it is not completely ignored (at least kind of validation works).

However, WSDL change introduced with <wsdl-file> is ignored.

Is this feature functional in mentioned version of JBOss? Is there workaround?

What is most common way to set WSDL location?

I guess hard coded WSDL address set in @WebServiceRef make sense only in development, but that no one using it in production.

Thanks.
 
Dejan Mratinkovic
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Although it is not exactly answer to my original question, omitting wsdlLocation from @WebServiceRef will force usage of <wsdl-file> from ejb-jar.xml.

Not exactly overriding (as there is nothing to override), but good enough.
 
docampo Ocampo
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have the same problem. I have a web service injection:

@WebServiceRef
private IWSUser wsUser;


Originally, it had the URL attribute (wsdlLocation="URL") but this URL canĀ“t be hardcoded once deployed.

According to: http://www.163jsp.com/help/javaee50api/javax/xml/ws/WebServiceRef.html#wsdlLocation%28%29:

"A URL pointing to the WSDL document for the web service. If not specified, the WSDL location specified by annotations on the resource type is used instead. "

I really need to know which is the file that holds this information.

Thank you in advance
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!