Hi,
I'm writing a web service (deployed in different machines), and a client that connects to these machines and uses their web service.
At the moment, the client obtains the web services WSDL url from a static text file.
Is it possible for the client to obtain web services url dinamically? Is there a sort of registry (known by both client and WSs) where active WSs can register themselves, and the client can read the active WSs url? Or another way to obtain web services url dinamically?
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4006547#4006547
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4006547
Hi,
I'm using this code to connect to a web service:
URL url = new URL("http://www.mysite.org/WebService?wsdl");
|
| QName qname = new QName("http://www.mysite.org/","WebService");
|
| ServiceFactoryImpl factory = new ServiceFactoryImpl();
| Service service = factory.createService(url, qname);
|
| WebServiceEndpoint endpoint = (WebServiceEndpoint) service.getPort(WebServiceEndpoint.class);
But if the web service is down, this client blocks for about 5 minutes waiting for the web service... till it gives the following exception:
org.jboss.ws.metadata.wsdl.WSDLException: java.net.ConnectException: Connection timed out: connect
Is there a way to decrease the connection timeout?
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4006544#4006544
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4006544
Hi guys :-)
I'm deploying some web services client and I'm using the beautiful feature of wsdl-override to match at deploy time the ws address.
Is there a way to have another indirection level, So I can avoid to deploy my application unpacked?
I have something like this:
| <jboss-web>
| <jndi-name>jbossws-client</jndi-name>
| <service-ref>
| <service-ref-name>service/QFServices</service-ref-name>
| <wsdl-override>http://26.2.243.190:8380/neo/services/HDServices?wsdl</wsdl-override>
|
| </service-ref>
| </jboss-web>
|
I would like to change the WS address whre I'm pointing to, without manually editing the jboss-web.xml and leaving my app packaged.
I'm thinking something like using the property service?
Sci-fi? or is it possible? :-)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4005836#4005836
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4005836