[JBossWS] - Possible to use a JSR 109 Client with a custom soap address
by sappenin
Is it possible to use a JSR 109 client with a locally packaged wsdl file (i.e., META-INF/Service.wsdl), yet override the soap:address that the ServiceFactory uses?
I basically want to call a web-service at a URL that I specify at runtime.
In the JbossWS user guide, it appears that I can do this using an unconfigured DII client (http://labs.jboss.com/portal/jbossws/user-guide/en/html_single/index.html...) . But I'd like to do this with a JSR 109 client.
It appears that I can change the published wsdl location using a JSR109 client, per the following code:
| ServiceFactoryImpl factory = (ServiceFactoryImpl) ServiceFactory.newInstance();
| ClassLoader cl = Thread.currentThread().getContextClassLoader();
| URL wsdlLocation = cl.getResource("Service.wsdl");
| URL mappingLocation = cl.getResource("jaxrpc-mapping-client.xml");
| QName serviceName = new QName(SERVICE_NAMESPACE, ENDPOINT_SERVICE_NAME);
| ServiceImpl service = (ServiceImpl) factory.createService(wsdlLocation, serviceName, mappingLocation);
|
| ServiceMetaData data = service.getServiceMetaData();
| data.setWsdlPublishLocation()
|
|
But I don't want to change the location that the Service looks to for the WSDL. I actually want my JSR109 client use a runtime defined soap:address.
Is this possible?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963295#3963295
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963295
19 years, 9 months
[JBoss jBPM] - Re: Create Workflow Definition with dynamic duedate
by cpob
I wasn't (at least not intentionally) trying to be rude when I replied. I just remember posting about it at least twice in the last week or so.
What I usually do, when I post on forums after searching for something with no results... I mention in my first post my previous search results. Don't wait to tell us until after the fact. Present all important information up front if possible. It makes it easier for everyone else, and it makes your post more attractive to help out with.
I probably would have given you a link to my post if I knew you previously searched.
Now, you're complaining that including something useful in my post would have helped. Technically I did - I left my user name. You can search by it, and there's a thread that comes up called Timer.
It just happens that too many people ask way too simple/obvious questions that have been answered so many times, so we get quick to just 'give up'.
"dclancey" wrote : WOW!!!
|
| Search the forums? Who would have thought of that????
|
| GENIUS!!!
|
| The only thing more genious would be to include something useful in your reply such as
| 1. The best keywords to use?
| 2. THE ACTUAL URLS OF THE POSTS!!!
|
| I looked through the User Manual, some of the JBPM source code, and did a quick check in the forum. Apparently I did not use the best choice in search terms.
|
| I thought I might ask the community while I continued searching. If there was a post I was missing due to a poor selection of search terms, perhaps someone in the community might be able to provide a friendly,helping hand.
|
| Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963294#3963294
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963294
19 years, 9 months