You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-commits@ws.apache.org by da...@apache.org on 2007/01/25 20:16:46 UTC
svn commit: r499924 -
/webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/inspector/ResourceInspector.java
Author: danj
Date: Thu Jan 25 11:16:46 2007
New Revision: 499924
URL: http://svn.apache.org/viewvc?view=rev&rev=499924
Log:
1. removed old commented-out code
2. added prefix to QName hack so that if (when) the call fails, it will at least fail nicely,
not with a random RuntimeException from deep within Xerces.
Modified:
webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/inspector/ResourceInspector.java
Modified: webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/inspector/ResourceInspector.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/inspector/ResourceInspector.java?view=diff&rev=499924&r1=499923&r2=499924
==============================================================================
--- webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/inspector/ResourceInspector.java (original)
+++ webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/inspector/ResourceInspector.java Thu Jan 25 11:16:46 2007
@@ -398,14 +398,6 @@
private ProxyHandler createReflectionHandler(JavaMethod method)
{
ProxyHandler handler = new ReflectionProxyHandler();
-// TODO why was this here?
-// String action = method.getName().getNamespaceURI();
-
-// if (!action.endsWith("/"))
-// action += '/';
-//
-// action += method.getName().getLocalPart();
-// handler.setAction(action);
handler.setAction(method.getActionURI());
@@ -672,7 +664,7 @@
//HACK
if(type.getNamespaceURI() == null|| type.getNamespaceURI().length() == 0) {
- type = new QName(XsdUtils.NAMESPACE_URI, type.getLocalPart());
+ type = new QName(XsdUtils.NAMESPACE_URI, type.getLocalPart(), "xsd");
}
Class javaType = getXsdJavaType(type);
@@ -755,9 +747,8 @@
if (typeName == null || typeName.length() == 0) {
return XsdUtils.ANY_TYPE_QNAME;
- } else {
- return XmlUtils.parseQName(typeName, element);
- }
+ }
+ return XmlUtils.parseQName(typeName, element);
}
private ResourcePropertiesSchema getWsrpSchema(Element wsdl, QName portType)
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-commits-help@ws.apache.org