ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Generate WSDL

Post new topic  Reply to topic
 Generate WSDL « View previous topic :: View next topic » 
Author Message
mvs
PostPosted: Mon Feb 01, 2010 3:00 pm    Post subject: Generate WSDL Reply with quote

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
View user's profile Send private message
Herbert
PostPosted: Tue Feb 02, 2010 12:18 am    Post subject: Re: Generate WSDL Reply with quote

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
View user's profile Send private message Visit poster's website
mvs
PostPosted: Thu Feb 04, 2010 7:18 am    Post subject: Generate WSDL Reply with quote

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
View user's profile Send private message
Herbert
PostPosted: Fri Feb 05, 2010 5:13 am    Post subject: Re: Generate WSDL Reply with quote

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
View user's profile Send private message Visit poster's website
broker_new
PostPosted: Fri Feb 05, 2010 6:33 am    Post subject: Reply with quote

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
View user's profile Send private message
Herbert
PostPosted: Sat Feb 06, 2010 6:06 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
mvs
PostPosted: Mon Feb 08, 2010 7:03 am    Post subject: Generate WSDL Reply with quote

Voyager

Joined: 06 Jul 2007
Posts: 85

Hi,
I found the adding the headers in wsdl but i need to check how it works.
Pls find the below lineks for reference.

http://www.ibm.com/developerworks/webservices/library/ws-tipjax1.html
http://www.ibm.com/developerworks/xml/library/ws-tip-headers.html
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Generate WSDL
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.