diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-04-21 08:07:45 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-04-21 08:07:45 +0000 |
commit | c51f3fee7bec1b5fcb474a5b7e297fbf180703cf (patch) | |
tree | 2740b54332a1b490ef10ac94d8f460687a6140d2 /sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws | |
parent | 7046efb30dd467438a64c012aa347c998ee9d267 (diff) |
Update to get the default http port from runtime properties
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@936192 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws')
-rw-r--r-- | sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/JAXWSBindingProvider.java | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/JAXWSBindingProvider.java b/sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/JAXWSBindingProvider.java index 91e31acd4e..2636edc2c2 100644 --- a/sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/JAXWSBindingProvider.java +++ b/sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/JAXWSBindingProvider.java @@ -22,13 +22,8 @@ import java.util.List; import javax.annotation.Resource; import javax.wsdl.extensions.soap.SOAPAddress; -import javax.xml.namespace.QName; -import javax.xml.soap.Detail; -import javax.xml.soap.DetailEntry; -import javax.xml.soap.SOAPElement; import javax.xml.soap.SOAPException; import javax.xml.soap.SOAPFactory; -import javax.xml.soap.SOAPFault; import javax.xml.soap.SOAPMessage; import javax.xml.ws.Provider; import javax.xml.ws.ServiceMode; @@ -42,7 +37,6 @@ import org.apache.tuscany.sca.databinding.DataBindingExtensionPoint; import org.apache.tuscany.sca.host.http.ServletHost; import org.apache.tuscany.sca.interfacedef.InterfaceContract; import org.apache.tuscany.sca.interfacedef.Operation; -import org.apache.tuscany.sca.interfacedef.util.FaultException; import org.apache.tuscany.sca.invocation.InvocationChain; import org.apache.tuscany.sca.invocation.Message; import org.apache.tuscany.sca.invocation.MessageFactory; @@ -66,7 +60,7 @@ public class JAXWSBindingProvider implements Provider<SOAPMessage> { public JAXWSBindingProvider(RuntimeEndpoint endpoint, ServletHost servletHost, FactoryExtensionPoint modelFactories, - DataBindingExtensionPoint dataBindings) { + DataBindingExtensionPoint dataBindings, String defaultPort) { this.messageFactory = modelFactories.getFactory(MessageFactory.class); @@ -115,7 +109,7 @@ public class JAXWSBindingProvider implements Provider<SOAPMessage> { if (serviceURI == null || !serviceURI.startsWith("http://")){ - serviceURI = "http://localhost:8080" + wsBinding.getURI(); + serviceURI = "http://localhost:" + defaultPort + wsBinding.getURI(); } wsBinding.setURI(serviceURI); |