Copied from a previous post:

In order to use WSDL that contains WSIF bindings (java, ejb, format etc)
you need to register the wsdl extensions for these bindings with the
WSDLReader you use to read the wsdl. The easiest way of doing this is to
use the readWSDL methods on WSIFUtils instead of creating a WSDLReader for
yourself. So for your code you would use:

  Definition wsdlDefinition = WSIFUtils.readWSDL(null, wsdlLocation);
  Service wsdlService = wsdlDefinition.getService(wsdlServiceQName);
  WSIFService wsifService =  wsifFactory.getService(wsdlDefinition,
wsdlService);
  WSIFPort javaPort = wsifService.getPort(javaPortName);

or alternatively, if you want to register the extensions on your own
instance of WSDLReader, you can use:

  wsdlReader.setExtensionRegistry(WSIFUtils.getExtensionRegistry());
  Definition wsdlDefinition = wsdlReader.readWSDL(wsdlLocation);
  Service wsdlService = wsdlDefinition.getService(wsdlServiceQName);
  WSIFService wsifService =  wsifFactory.getService(wsdlDefinition,
wsdlService);
  WSIFPort javaPort = wsifService.getPort(javaPortName);

Regards,
Owen



|---------+---------------------------->
|         |           "D Kenny"        |
|         |           <[EMAIL PROTECTED]|
|         |           .com>            |
|         |                            |
|         |           16/09/2003 17:09 |
|         |           Please respond to|
|         |           wsif-user        |
|         |                            |
|---------+---------------------------->
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
  |                                                                                    
                                                              |
  |       To:       [EMAIL PROTECTED]                                                  
                                                        |
  |       cc:                                                                          
                                                              |
  |       Subject:  Registering extensions in WSDL4J                                   
                                                              |
  |                                                                                    
                                                              |
  |                                                                                    
                                                              |
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|



Hi All, I have a question regarding registering the WSIF extensions in
WSDL4J. Although I have seen it mentioned in several places, I haven't been

able to find an example of exactly how this is done. Sorry if this appears
a
fairly basic question, but being a newbie in WSIF, I'm still finding my
feet
;-).

Any suggestions or links to examples much appreciated.

Regards

Damien

_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail





Reply via email to