Author |
Message
|
mvs |
Posted: Mon Feb 01, 2010 3:00 pm Post subject: Generate WSDL |
|
|
Voyager
Joined: 06 Jul 2007 Posts: 85
|
Hi,
I wanted to generate WSDL with security details.
I have generated wsdl using toolkit which is not allowing to specify security details.
Can you pls let me know how to add username and password plain text into the wsdl?
Help is greatly appreciated |
|
Back to top |
|
 |
Herbert |
Posted: Tue Feb 02, 2010 12:18 am Post subject: Re: Generate WSDL |
|
|
 Centurion
Joined: 05 Dec 2006 Posts: 146 Location: Leersum, The Netherlands
|
mvs wrote: |
Hi,
I wanted to generate WSDL with security details.
I have generated wsdl using toolkit which is not allowing to specify security details.
Can you pls let me know how to add username and password plain text into the wsdl? |
I have recently build some ws-security enabled webservices with WMB, however configuration for this was not added to the WSDL.
Inside the broker-toolkit the WS-Security can be configured with the policy editor.
soapUI is a great tool to build a SOAP request with WS-Security fields like username and password.
see below presentation about WS-Security support inside WMB
http://publib.boulder.ibm.com/infocenter/ieduasst/v1r1m0/topic/com.ibm.iea.wmb_v6/wmb/6.1/WebServices/WMB61_IEA_WebServices_WS_Security/player.html |
|
Back to top |
|
 |
mvs |
Posted: Thu Feb 04, 2010 7:18 am Post subject: Generate WSDL |
|
|
Voyager
Joined: 06 Jul 2007 Posts: 85
|
Thanks Herbert.
I was searching and found that all security added in soap message message only.
I didn't find how to add to security in wsdl file.
I have requirement, broker providing service to the vendors. In this created msg definition files using xsd's. After that,i generated wsdl file using toolkit.
I am not sure how to add secrity header below to wsdl.
------------
<wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2003/07/secext" >
<wsse:UsernameToken>
<wsse:Username></wsse:Username>
<wsse:password></wsse:password>
</wsse:UsernameToken>
</wsse:Security>
------------ |
|
Back to top |
|
 |
Herbert |
Posted: Fri Feb 05, 2010 5:13 am Post subject: Re: Generate WSDL |
|
|
 Centurion
Joined: 05 Dec 2006 Posts: 146 Location: Leersum, The Netherlands
|
mvs wrote: |
I am not sure how to add secrity header below to wsdl.
------------
<wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2003/07/secext" >
<wsse:UsernameToken>
<wsse:Username></wsse:Username>
<wsse:password></wsse:password>
</wsse:UsernameToken>
</wsse:Security>
------------ |
AFAIK this must not be added to the wsdl file, if you want to use this in your WMB flows you must use the policy / security-profile editors.
This information is part of the SOAP header, in fact I have build a soap.xsd that did contain this kind of information. This soap.xsd file is only for our consumers to show how they must build messages. We are not using this particular file in the toolkit during development or the broker at runtime. |
|
Back to top |
|
 |
broker_new |
Posted: Fri Feb 05, 2010 6:33 am Post subject: |
|
|
 Yatiri
Joined: 30 Nov 2006 Posts: 614 Location: Washington DC
|
That should be part of the WSDL file, i believe we must add it manually .
Without adding it to the WSDL how will the client aware what they need to pass the authentication/credentials.......to call the web service.
If you add it to the WSDL file manually there is a probability of making a mistake be aware
 _________________ IBM ->Let's build a smarter planet |
|
Back to top |
|
 |
Herbert |
Posted: Sat Feb 06, 2010 6:06 am Post subject: |
|
|
 Centurion
Joined: 05 Dec 2006 Posts: 146 Location: Leersum, The Netherlands
|
broker_new wrote: |
That should be part of the WSDL file, i believe we must add it manually .
Without adding it to the WSDL how will the client aware what they need to pass the authentication/credentials.......to call the web service.
|
Indeed, we did have the same questions in our project, the developers from our consumers must know how to build a request.
Is this kind of WS-Security information part of SOAP specifications or part of WSDL specifications? I really don't know. SOAP/WSDL is not easy stuff.
Our solution was to build 3 files:
- service.wsdl
- service-soap.xsd
- service.xsd
The usage of those files are:
- service.xsd is included by service.wsdl and service-soap.xsd.
- service-soap.xsd contains those parts from WS-Adressing and WS-Security that we are using in our web-service.
- only service.wsdl and service.xsd are used during WMB development/runtime. (WMB uses the default soap.xsd that is automatically added)
- service-soap.xsd can be used to generate a example.xml file in XMLSpy, developers like that.
- service-soap.xsd can be used to validate the input/output from the web-service, testers like that.
If there is a better solution then for sure I want to learn from that. |
|
Back to top |
|
 |
mvs |
Posted: Mon Feb 08, 2010 7:03 am Post subject: Generate WSDL |
|
|
Voyager
Joined: 06 Jul 2007 Posts: 85
|
|
Back to top |
|
 |
|