-
1. Re: @WebServiceRef and create
karypid Nov 3, 2009 9:01 AM (in response to karypid)BTW, the name of the topic was supposed to be either:
@WebServiceRef and "createdFromAPI"
or@WebServiceRef and <jaxws:client>
I don't remember which one I used but I seems to have caused a problem in the forum software . Sorry about that. -
2. Re: @WebServiceRef and
jim.ma Nov 3, 2009 10:20 AM (in response to karypid)Modify to following set store configuration to see if it works :
<wsrm-mgr:store>
<ref="RMTxStore" />
</wsrm-mgr:store>
Jim -
3. Re: @WebServiceRef and
karypid Nov 3, 2009 1:08 PM (in response to karypid)"jim.ma" wrote:
Modify to following set store configuration to see if it works :
<wsrm-mgr:store>
<ref="RMTxStore" />
</wsrm-mgr:store>
Jim
It's not that. In fact, I introduced this error while copy-pasting the code from my source to the forum post. The store is specified correctly, as you indicate. It just doesn't get used. Any ideas why that could be? -
4. Re: @WebServiceRef and
karypid Nov 3, 2009 1:32 PM (in response to karypid)Let me put it this way: if I copy my jbossws-cxf.xml into my web-application's source folder and create a web service client manually, the RMStore works just fine. So this code works:
public class DebugServlet extends HttpServlet { private static final String WSDL_ADDRESS = "http://localhost:8180/jboss-Ecxf.wsrm.recipient/AsyncMessagingService?wsdl"; Bus bus; AsyncMessaging am; int counter; @Override public void init(ServletConfig config) throws ServletException { super.init(config); SpringBusFactory busFactory = new SpringBusFactory(); // NOTE: the file is an identical copy of my WEB-INF/jbossws-cxf.xml URL cxfConfig = getClass().getClassLoader().getResource("jbossws-cxf.xml"); bus = busFactory.createBus(cxfConfig); BusFactory.setDefaultBus(bus); AsyncMessagingService ams = new AsyncMessagingService(); am = ams.getAsyncMessagingImplPort(); // ... am.xxx() calls work fine, but the Derby database is NOT created
Whereas this code works, but does NOT create a database:public class DebugServlet extends HttpServlet { private static final String WSDL_ADDRESS = "http://localhost:8180/jboss-Ecxf.wsrm.recipient/AsyncMessagingService?wsdl"; // Let JBoss inject the client stub @WebServiceRef(value = cmr.messaging.AsyncMessagingService.class, wsdlLocation = WSDL_ADDRESS) AsyncMessaging am; @Override public void init(ServletConfig config) throws ServletException { super.init(config); // ... am.xxx() calls work and Derby database is NOT created
So, any ideas? -
5. Re: @WebServiceRef and
karypid Nov 3, 2009 1:34 PM (in response to karypid)Copy-paste typo once again: the last comment in the first code fragment should read:
// ... am.xxx() calls work fine, AND the Derby database is created -
6. Re: @WebServiceRef and
jim.ma Nov 3, 2009 9:32 PM (in response to karypid)From the another look , the address value is not correct :
<jaxws:client id="AsyncMessagingClient"
name="{http://my.wsdl.tns/}AsyncMessagingImplPort" createdFromAPI="true"
serviceClass="my.wsconsume.generated.clientstub.AsyncMessagingService"
address="http://localhost:8080/the-service-impl-war-on-my-machine/AsyncMessagingService?wsdl">
Is it a copy paste error too ? -
7. Re: @WebServiceRef and
karypid Nov 4, 2009 2:25 AM (in response to karypid)Unfortunately yes. Look the XML file is fine, like I said if I load it manually and construct the CXF bus myself, everything works fine.
The problem is that when having JBoss inject the client stub, the configuration is ignored. The client works and I can call the service successfully, it's just that no "wsrmdb" is created (i.e. the configuration is ignored). There is no error thrown, nothing; JBoss simply ignores the configuration... -
8. Re: @WebServiceRef and
jim.ma Nov 4, 2009 9:13 PM (in response to karypid)Can you please fill a jira with a test case for it ? https://jira.jboss.org/jira/browse/JBWS. We will look at if we can reproduce your error.
-
9. Re: @WebServiceRef and
karypid Nov 6, 2009 4:02 AM (in response to karypid)Hello Jim,
I've put as much information as I could along with a test project in https://jira.jboss.org/jira/browse/JBWS-2822
I am at your disposal for more information. -
10. Re: @WebServiceRef and
jim.ma Nov 6, 2009 5:54 AM (in response to karypid)Great thanks ! I will give you update when I find something .
Jim -
11. Re: @WebServiceRef and
asoldano Nov 20, 2009 10:23 AM (in response to karypid)For the records, I've fixed https://jira.jboss.org/jira/browse/JBWS-2822 .