Try explicitly naming the port.

  |    /**
  |     * Get the wsdl binding with for the given service and portName
  |     * If portName is null, it iterates over the available bindings and 
checks that their are not multiple
  |     * definitions.
  |     */
  |    private Binding getWsdlBinding(Service wsdlService, String portName)
  |    {
  |       Binding wsdlBinding = null;
  | 
  |       if (portName != null)
  |       {
  |          Port port = wsdlService.getPort(portName);
  |          if (port == null)
  |             throw new IllegalArgumentException("Cannot find wsdl port for: 
" + portName);
  | 
  |          wsdlBinding = port.getBinding();
  |       }
  |       else
  |       {
  |          Iterator it = wsdlService.getPorts().values().iterator();
  |          while (it.hasNext())
  |          {
  |             Port port = (Port)it.next();
  |             Binding binding = port.getBinding();
  | 
  |             if (wsdlBinding != null && 
wsdlBinding.getQName().equals(binding.getQName()) == false)
  |                throw new IllegalArgumentException("Multiple bindings not 
supported for service: " + wsdlService.getQName());
  | 
  |             if (wsdlBinding == null)
  |                wsdlBinding = binding;
  |          }
  |       }
  | 
  |       if (wsdlBinding == null)
  |          throw new IllegalArgumentException("Cannot find wsdl binding for: 
" + wsdlService.getQName());
  | 
  |       return wsdlBinding;
  |    }
  | 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3891381#3891381

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3891381


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to