Author: kurtstam
Date: 2010-03-24 00:34:52 -0400 (Wed, 24 Mar 2010)
New Revision: 596
Modified:
trunk/runtime/uddi/src/main/java/org/jboss/soa/bpel/uddi/UDDIRegistrationImpl.java
trunk/runtime/uddi300/src/main/java/org/jboss/soa/bpel/uddi300/UDDI300RegistrationImpl.java
Log:
RIFTSAW-158, commenting out debug code.
Modified:
trunk/runtime/uddi/src/main/java/org/jboss/soa/bpel/uddi/UDDIRegistrationImpl.java
===================================================================
---
trunk/runtime/uddi/src/main/java/org/jboss/soa/bpel/uddi/UDDIRegistrationImpl.java 2010-03-24
01:52:50 UTC (rev 595)
+++
trunk/runtime/uddi/src/main/java/org/jboss/soa/bpel/uddi/UDDIRegistrationImpl.java 2010-03-24
04:34:52 UTC (rev 596)
@@ -397,9 +397,9 @@
log.info("wsdlUrl for service " + serviceQName.getLocalPart() +
" is " + url);
WSDLReader wsdlReader = WSDLFactory.newInstance().newWSDLReader();
Definition def = wsdlReader.readWSDL(url.toExternalForm());
- if (log.isDebugEnabled()) {
- log.debug(getWSDL(url));
- }
+// if (log.isDebugEnabled()) {
+// log.debug(getWSDL(url));
+// }
//Checking if this WSDL contains the right port name.
Port port = def.getService(serviceQName).getPort(portName);
if (port!=null) {
@@ -447,27 +447,27 @@
return authToken;
}
+// /**
+// * Reads the WSDL from an endpoint URL and returns it in a formatted String.
+// *
+// * @param url - url of a WSDL Endpoint.
+// * @return - Formatted WSDL
+// * @throws IOException when there are IO issues reading the WSDL content from the
url.
+// */
+// private String getWSDL(URL url) throws IOException {
+//
+// BufferedInputStream inputStream = (BufferedInputStream) url.getContent();
+// BufferedReader in = new BufferedReader(new InputStreamReader(inputStream));
+// StringBuffer buffer = new StringBuffer();
+// String inputLine;
+// while ((inputLine = in.readLine()) != null) {
+// buffer.append(inputLine).append("\r\n");
+// }
+// in.close();
+// return buffer.toString();
+// }
/**
- * Reads the WSDL from an endpoint URL and returns it in a formatted String.
*
- * @param url - url of a WSDL Endpoint.
- * @return - Formatted WSDL
- * @throws IOException when there are IO issues reading the WSDL content from the url.
- */
- private String getWSDL(URL url) throws IOException {
-
- BufferedInputStream inputStream = (BufferedInputStream) url.getContent();
- BufferedReader in = new BufferedReader(new InputStreamReader(inputStream));
- StringBuffer buffer = new StringBuffer();
- String inputLine;
- while ((inputLine = in.readLine()) != null) {
- buffer.append(inputLine).append("\r\n");
- }
- in.close();
- return buffer.toString();
- }
- /**
- *
* @param urlIn
* @return
*/
Modified:
trunk/runtime/uddi300/src/main/java/org/jboss/soa/bpel/uddi300/UDDI300RegistrationImpl.java
===================================================================
---
trunk/runtime/uddi300/src/main/java/org/jboss/soa/bpel/uddi300/UDDI300RegistrationImpl.java 2010-03-24
01:52:50 UTC (rev 595)
+++
trunk/runtime/uddi300/src/main/java/org/jboss/soa/bpel/uddi300/UDDI300RegistrationImpl.java 2010-03-24
04:34:52 UTC (rev 596)
@@ -353,9 +353,9 @@
log.info("wsdlUrl for service " + serviceQName.getLocalPart() +
" is " + url);
WSDLReader wsdlReader = WSDLFactory.newInstance().newWSDLReader();
Definition def = wsdlReader.readWSDL(url.toExternalForm());
- if (log.isDebugEnabled()) {
- log.debug(getWSDL(url));
- }
+// if (log.isDebugEnabled()) {
+// log.debug(getWSDL(url));
+// }
//Checking if this WSDL contains the right port name.
Port port = def.getService(serviceQName).getPort(portName);
if (port!=null) {
@@ -403,27 +403,27 @@
return authToken;
}
+// /**
+// * Reads the WSDL from an endpoint URL and returns it in a formatted String.
+// *
+// * @param url - url of a WSDL Endpoint.
+// * @return - Formatted WSDL
+// * @throws IOException when there are IO issues reading the WSDL content from the
url.
+// */
+// private String getWSDL(URL url) throws IOException {
+//
+// BufferedInputStream inputStream = (BufferedInputStream) url.getContent();
+// BufferedReader in = new BufferedReader(new InputStreamReader(inputStream));
+// StringBuffer buffer = new StringBuffer();
+// String inputLine;
+// while ((inputLine = in.readLine()) != null) {
+// buffer.append(inputLine).append("\r\n");
+// }
+// in.close();
+// return buffer.toString();
+// }
/**
- * Reads the WSDL from an endpoint URL and returns it in a formatted String.
*
- * @param url - url of a WSDL Endpoint.
- * @return - Formatted WSDL
- * @throws IOException when there are IO issues reading the WSDL content from the url.
- */
- private String getWSDL(URL url) throws IOException {
-
- BufferedInputStream inputStream = (BufferedInputStream) url.getContent();
- BufferedReader in = new BufferedReader(new InputStreamReader(inputStream));
- StringBuffer buffer = new StringBuffer();
- String inputLine;
- while ((inputLine = in.readLine()) != null) {
- buffer.append(inputLine).append("\r\n");
- }
- in.close();
- return buffer.toString();
- }
- /**
- *
* @param urlIn
* @return
*/
Show replies by date