• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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

 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
You can't have everything. Where would you put it?
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic