1 10 11 package org.mule.providers.soap.axis.extensions; 12 13 import org.apache.axis.EngineConfiguration; 14 import org.apache.axis.deployment.wsdd.WSDDConstants; 15 import org.apache.axis.deployment.wsdd.WSDDProvider; 16 import org.apache.axis.deployment.wsdd.WSDDService; 17 import org.mule.providers.soap.axis.AxisConnector; 18 19 27 public class WSDDJavaMuleProvider extends WSDDProvider 28 { 29 private AxisConnector connector; 30 31 public WSDDJavaMuleProvider(AxisConnector connector) 32 { 33 this.connector = connector; 34 } 35 36 44 public org.apache.axis.Handler newProviderInstance(WSDDService wsddService, 45 EngineConfiguration engineConfiguration) 46 throws Exception 47 { 48 String serviceStyle = wsddService.getStyle().toString(); 49 if (serviceStyle.equals("message")) 50 { 51 return new MuleMsgProvider(connector); 52 } 53 return new MuleRPCProvider(connector); 54 } 55 56 60 public String getName() 61 { 62 return WSDDConstants.PROVIDER_RPC; 63 } 64 } 65 | Popular Tags |