frank.ning
New Member Posts:28
|
21 Jan 2014 09:16 PM |
|
In the installation guide, I saw "web services" like "DTS Query Web Service Interface". Is there any way to get the wsdl file with some url like http://<something>?wsdl? Any document about how the web services are defined and can be invoked (endpoints etc)? Thanks and regards Frank |
|
|
|
|
frank.ning
New Member Posts:28
|
29 Jan 2014 05:03 AM |
|
Hello, Any response? |
|
|
|
|
jbowie
Basic Member Posts:110
|
29 Jan 2014 09:07 AM |
|
We have discovered that the required web services set-up files (for the WSDL, etc.) were left out of the initial V4 release. We are working on a new Web Services document that will provide the necessary information. We will post this as soon as it is available. Functionally, the Web Service methods mirror the Java API. |
|
|
|
|
frank.ning
New Member Posts:28
|
03 Feb 2014 10:28 AM |
|
Thanks. In DTS V3.5, how could we get WSDL files?
|
|
|
|
|
jbowie
Basic Member Posts:110
|
03 Feb 2014 10:40 AM |
|
Web Services are not supported in DTS 3.5.x. |
|
|
|
|
jbowie
Basic Member Posts:110
|
06 Feb 2014 10:46 AM |
|
The DTS V4.0 WSDL can be accessed from: http://localhost:8080/dtsserverejb/...DaoWS?wsdl Also, we have just posted a web services "quick start" guide on the documentation page. Please take a look and get back to us with any suggestions! Thanks. |
|
|
|
|
albagjimenez
New Member Posts:47
|
12 Mar 2014 06:14 AM |
|
I have tried to generate the Java client from the WSLD: C:\Proyectos\ApelonWSClient>wsimport -keep -Xnocompile http://localhost:8080/dts" target="_blank" rel="nofollow">http://localhost:8080/dts
serverejb/DtsQueryDaoService/DtsQueryDaoWS?wsdl
parsing WSDL...
[ERROR] Server returned HTTP response code: 400 for URL: http://localhost:8080/d
tsserverejb/DtsQueryDaoService/DtsQueryDaoWS?wsdl
Failed to read the WSDL document: http://localhost:8080/dts" target="_blank" rel="nofollow">http://localhost:8080/dtsserverejb/DtsQueryDao
Service/DtsQueryDaoWS?wsdl, because 1) could not find the document; /2) the docu
ment could not be read; 3) the root element of the document is not <wsdl:definit
ions>.
[ERROR] failed.noservice=Could not find wsdl:service in the provided WSDL(s):
At least one WSDL with at least one service definition needs to be provided.
Failed to parse the WSDL. So I've tried second option with wget + wsimport and it didn't work too:
C:\Proyectos\ApelonWSClient>wget.exe http://localhost:8080/dts" target="_blank" rel="nofollow">http://localhost:8080/dtsserverejb/DtsQuery
DaoService/DtsQueryDaoWS?wsdl -O dts.wsdl
--2014-03-12 11:27:11-- http://localhost:8080/dts" target="_blank" rel="nofollow">http://localhost:8080/dtsserverejb/DtsQueryDaoService/D
tsQueryDaoWS?wsdl
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:8080... failed: Bad file descriptor.
Connecting to localhost|127.0.0.1|:8080... connected.
HTTP request sent, awaiting response...
Then I tried to save the source document as a wsdl file, then run wsimport on that file and it didn't work too:
C:\Proyectos\ApelonWSClient>wsimport -keep -Xnocompile DtsQueryDaoWS.wsdl
parsing WSDL...
[ERROR] Unable to parse "http://localhost:8080/dts" target="_blank" rel="nofollow">http://localhost:8080/dtsserverejb/DtsQueryDaoS
ervice/DtsQueryDaoWS?wsdl=DtsQueryDaoWS.wsdl" : Server returned HTTP response co
de: 400 for URL: http://localhost:8080/dts" target="_blank" rel="nofollow">http://localhost:8080/dtsserverejb/DtsQueryDaoService/DtsQueryD
aoWS?wsdl=DtsQueryDaoWS.wsdl
line 2 of file:/C:/Proyectos/ApelonWSClient/DtsQueryDaoWS.wsdl
[ERROR] Unable to parse "http://localhost:8080/dts" target="_blank" rel="nofollow">http://localhost:8080/dtsserverejb/DtsQueryDaoS
ervice/DtsQueryDaoWS?wsdl=DtsQueryDaoWS.wsdl" : Server returned HTTP response co
de: 400 for URL: http://localhost:8080/dts" target="_blank" rel="nofollow">http://localhost:8080/dtsserverejb/DtsQueryDaoService/DtsQueryD
aoWS?wsdl=DtsQueryDaoWS.wsdl
Failed to read the WSDL document: file:/C:/Proyectos/ApelonWSClient/DtsQueryDaoW
S.wsdl, because 1) could not find the document; /2) the document could not be re
ad; 3) the root element of the document is not <wsdl:definitions>.
[ERROR] failed.noservice=Could not find wsdl:service in the provided WSDL(s):
file:/C:/Proyectos/ApelonWSClient/DtsQueryDaoWS.wsdl
At least one WSDL with at least one service definition needs to be provided.
Failed to parse the WSDL.
I need a piece of advice. BR. |
|
|
|
|
tmarthal
New Member Posts:3
|
13 Mar 2014 08:06 PM |
|
Is there something that needs to be started in the server to enable the Web Services? The DTS V4.0 WSDL can be accessed from: http://localhost:8080/dtsserverejb/...DaoWS?wsdl Note: That is a different URL than what is listed in the QuickStart document: http://localhost:8080/soap/DtsQueryDaoWS?wsdl For me, neither of these URLs work (for both GETs and POSTs). I see security bindings for the /soap/* and /rest/* urls in web.xml (unpacked from dtsserverws.war) but I don't see any servlets handing the requests. I only see a /dtsserverws/ context root. |
|
|
|
|
albagjimenez
New Member Posts:47
|
27 Mar 2014 03:07 AM |
|
Did you manage to get the Web Service to work? Should be required any special configuration on the JBoss Server or in the dtsjboss.ear? BR. |
|
|
|
|
javendan
New Member Posts:5
|
27 Mar 2014 04:33 AM |
|
Hi Alba, In may case the endpoint for the WSDL file is http://10.232.2.40:8080/soap/DtsQueryDaoWS?wsdl and all work fine. Anyway, I recommend you to look at the document "dts4_WebServicesQuickStart.pdf" because I found it helpful. Regards, |
|
|
|
|
albagjimenez
New Member Posts:47
|
27 Mar 2014 04:44 AM |
|
Hi Jorge, In my case the endpoint for the WSDL is Did you achieve to create the WS Client following the "dts4_WebServicesQuickStart.pdf" document? Thanks |
|
|
|
|
albagjimenez
New Member Posts:47
|
27 Mar 2014 11:33 AM |
|
Following the recomendations on the Web Services Quick Start document I'm trying to generate the WSS Cliente through wsimport: But the wsimport program is stucked in this line: Has anybody faced this issue? Thanks in advance. |
|
|
|
|
jbowie
Basic Member Posts:110
|
27 Mar 2014 11:49 AM |
|
This is a known problem with JBoss. We are working on a solution and will post as soon as possible.
|
|
|
|
|
albagjimenez
New Member Posts:47
|
28 Mar 2014 04:46 AM |
|
OK. I'm looking forward to it!! |
|
|
|
|
albagjimenez
New Member Posts:47
|
28 Mar 2014 05:25 AM |
|
By the way, I was doing some inttents to create the WS Client through "wsimport" and "Eclipse Kepler" and I couldn't. But now I'm doing some test with oXygen XML Editor and when I try to send this request to my service:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns0="http://ws.dao.dtsserver.apelon.com/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<ns0:getRoleTypes>
<namespaceId>32779</namespaceId>
</ns0:getRoleTypes>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Authorization is required. ¿What User/Passworw do I have to use? Thanks! |
|
|
|
|
albagjimenez
New Member Posts:47
|
28 Mar 2014 06:37 AM |
|
I have used dtsadminuser/dtsadminuser_password and it has worked!! It's strange that the WSDL seams valid for the Oxygen XML Editor but not for the web browsers neither Eclipse Web Service Client creator tools. |
|
|
|
|
jbowie
Basic Member Posts:110
|
28 Mar 2014 08:42 AM |
|
This is great information! We hadn't tried Oxygen. Hopefully this will lead to better understanding and a more complete solution. Thanks again. |
|
|
|
|
frank.ning
New Member Posts:28
|
26 Jun 2014 01:21 PM |
|
The URL documented in the web service quick start guide does not work. The following one works. Should this be a document fix or code fix? http://localhost:8080/dtsserverejb/...DaoWS?wsdl --> OK http://localhost:8080/soap/DtsQueryDaoWS?wsdl --> 404 Error |
|
|
|
|
jbowie
Basic Member Posts:110
|
27 Jun 2014 08:28 AM |
|
DTS 4.0 had a problem with wsdl access on some app servers. See the Web Services Quick Start Guide for interim remediation information. Starting with DTS 4.1 (available in early July) the documented location, http://localhost:8080/soap/DtsQueryDaoWS?wsdl, will be correct for all app servers. |
|
|
|
|
frank.ning
New Member Posts:28
|
|