You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2006/09/27 18:23:50 UTC

svn commit: r450499 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java

Author: dims
Date: Wed Sep 27 09:23:50 2006
New Revision: 450499

URL: http://svn.apache.org/viewvc?view=rev&rev=450499
Log:
Part of fix for AXIS2-1222 - WSDL2Java throws a StackOverflowError

Now with this change, w2j is able to pick up the porttype from the original wsdl rather than the one in the abstract wsdl. Gets us past the unable to find MEP problem. Next step is to figure out why the policy is not found.

Caused by: java.lang.RuntimeException: #X10-NoTimestamp_IPingService_policy can't be resolved
        at org.apache.neethi.PolicyReference.normalize(PolicyReference.java:52)
        at org.apache.axis2.description.PolicyInclude.calculatePolicy(PolicyInclude.java:166)
        at org.apache.axis2.description.PolicyInclude.getPolicy(PolicyInclude.java:213)
        at org.apache.axis2.description.PolicyInclude.calculateEffectivePolicy(PolicyInclude.java:204)
        at org.apache.axis2.description.PolicyInclude.getEffectivePolicy(PolicyInclude.java:222)
        at org.apache.axis2.description.PolicyInclude.calculateEffectivePolicy(PolicyInclude.java:188)
        at org.apache.axis2.description.PolicyInclude.getEffectivePolicy(PolicyInclude.java:222)
        at org.apache.axis2.wsdl.codegen.extension.PolicyEvaluator.engage(PolicyEvaluator.java:129)
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:177)


Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java?view=diff&rev=450499&r1=450498&r2=450499
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java Wed Sep 27 09:23:50 2006
@@ -414,7 +414,7 @@
                     axisService, BINDING);
 
             PortType portType = binding.getPortType();
-            processPortType(portType, dif);
+            processPortType(dif.getPortType(portType.getQName()), dif);
 
 //            String portTypeNs = portType.getQName().getNamespaceURI();
             List list = binding.getBindingOperations();



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org