You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by de...@apache.org on 2006/07/14 11:28:50 UTC
svn commit: r421844 - in
/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description:
AxisService2WSDL2.java WSDL20ToAxisServiceBuilder.java
Author: deepal
Date: Fri Jul 14 02:28:48 2006
New Revision: 421844
URL: http://svn.apache.org/viewvc?rev=421844&view=rev
Log:
fixing http://issues.apache.org/jira/browse/AXIS2-871
Modified:
webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/AxisService2WSDL2.java
webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java
Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/AxisService2WSDL2.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/AxisService2WSDL2.java?rev=421844&r1=421843&r2=421844&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/AxisService2WSDL2.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/AxisService2WSDL2.java Fri Jul 14 02:28:48 2006
@@ -236,8 +236,8 @@
OMElement bindingElement = fac.createOMElement(BINDING_LOCAL_NAME, null);
description.addChild(bindingElement);
bindingElement.addAttribute("name", axisService.getName() + SOAP_BINDING_PREFIX, null);
- bindingElement.addAttribute(INTERFACE_LOCAL_NAME, axisService.getName() +
- INTERFACE_PREFIX, tns);
+ bindingElement.addAttribute(INTERFACE_LOCAL_NAME, tns.getPrefix() + ":" + axisService.getName() +
+ INTERFACE_PREFIX, null);
bindingElement.addAttribute("type", URI_WSDL2_SOAP, null);
bindingElement.addAttribute("protocol", HTTP_PROTOCAL, wsoap);
Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java?rev=421844&r1=421843&r2=421844&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java Fri Jul 14 02:28:48 2006
@@ -34,6 +34,7 @@
import org.apache.ws.policy.util.PolicyFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
+import org.xml.sax.InputSource;
import javax.xml.namespace.QName;
import javax.xml.parsers.DocumentBuilder;
@@ -119,13 +120,15 @@
descriptionElement = readInTheWSDLFile(wsdlURI);
} else if (in != null) {
- DocumentBuilder documentBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
+ DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();
+ documentBuilderFactory.setNamespaceAware(true);
+ DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();
Document document = documentBuilder.parse(in);
WSDLReader reader = DOMWSDLFactory.newInstance().newWSDLReader();
WSDLSource wsdlSource = reader.createWSDLSource();
wsdlSource.setSource(document.getDocumentElement());
-// wsdlSource.setBaseURI(getBaseUri());
+// wsdlSource.setBaseURI(new URI(getBaseUri()));
descriptionElement = reader.readWSDL(wsdlSource);
} else {
throw new AxisFault("No resources found to read the wsdl");
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org