on 07-25-2014 9:15 PM
Hi,
I am new to this area of web services.
I published a batch job "MyTestWebServices" as a web services from the Management Console. Created the WSDL and tested this web services via SoapUI tool.
Working fine as desired.
But this WSDL also contains details for all web services (eg, Get_BatchJob_ExeDetail, Get_Trace_Log, Logon, Logout, etc) which I believe are used by DS server for its internal operations.
I do not want the consumer of this WSDL to know about this extra web services.
Please help me understand how can I generate a WSDL only for my job "MyTestWebServices" where the other services are not visible.
Thanks,
Rajesh
There are a couple options you have:
1. edit wsdl manually to remove any operations that you don't want to expose
to client.
2. in DS 4.2 there is a better option of using a custom label. When you add
a job as web service, you can add a custom wsdl label and associate the label
with one or more batch jobs\ operations. When you do view wsdl you can choose
the label to select the specific batch jobs that has been associated with that
label. By default it generates all, by selectively choosing a label, you can restrict
the operations that you can select. It exposes only logon, logoff connection
operations and your select web services corresponding to your jobs.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Aasavari: Thanks for your reply.
Would you please let me know where I can do this "Custom WSDL Labels". Somehow I cannot find this tab.
As per the tutorials it should be in the
Administrator login of management Console
--Web Services
Then it says should be in a tab called "Custom WSDL Labels".
Appreciate if you may direct me to where I can find this. Attached is what I see.
Hi Rajesh,
I am in the process of testing the published batch job web service from a .net client.The documentation says that the Login expects the four parameters like user, password, server etc. But, the wsdl proxy has a different signature that expects LogonRequest object. Looks like you are way ahead with all of this. I would appreciate if you could share some sample code as to run the batch job.
I could login succefully but when I try to get the repository list, it fails. Without getting the repository name, I can't execute the job.
Thanks for your help.
-Krishna
Hi Krishna,
See if this helps.
Also suggest testing your WSDL with SOAP UI.
Thanks,
Rajesh
Hi Rajesh,
Yes, I did test with SOAPUI. It works. The issue is that what SOAPUI shows and what the proxy generated code look different. Typically, I expect that you instantiate a connection operation objects and call Logon method passing proper credentials which returns a sessionID. Later, how to pass the same as a parameter to the method call, for example to get repository list is not there in the code. I would like to see some suedocode at least of the sequence of operations to execute a batch job. I am surprised there is not a single sample of doing any programming with the data services. Thew integrator documentation doesn't even mention the method signature. Unfortunately, the data management concole can support only SOAP. I wish it has the support for RESTFull services.
Rajesh, looks like you have built some code either in Java or .net. It would be great help to the community to post the sample code. Appreciate your help.
Rajesh,
Do you have recommendations for using a restful web service client to call the published bods batch job as a web services using custom wsdl-labels? I am successful with soapui to call (get or post) the DS web service but using soapui with restful services does not work for me.
Thanks,
Patrick
Hi Rajesh,
Thanks for reaching out. I still don't have a working sample. I would really appreciate if you can provide some sample code to retreive the repositories, job list and running a job. My main concern has been how to link the sessionID in the subsequent calls after getting it from the LogOn method.
Thank you.
Krishna
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.