axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chath...@apache.org
Subject svn commit: r209059 - in /webservices/axis/trunk/java/modules: core/src/org/apache/axis2/clientapi/ wsdl/src/org/apache/axis2/wsdl/codegen/emitter/ wsdl/src/org/apache/axis2/wsdl/template/java/
Date Mon, 04 Jul 2005 11:34:25 GMT
Author: chathura
Date: Mon Jul  4 04:34:24 2005
New Revision: 209059

URL: http://svn.apache.org/viewcvs?rev=209059&view=rev
Log:
The generated stub is made to work with an EPR that will get the value that points to the
service. A fix was added to the style sheet to be inconsistent with the package change.

Modified:
    webservices/axis/trunk/java/modules/core/src/org/apache/axis2/clientapi/Stub.java
    webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/emitter/MultiLanguageClientEmitter.java
    webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl

Modified: webservices/axis/trunk/java/modules/core/src/org/apache/axis2/clientapi/Stub.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/org/apache/axis2/clientapi/Stub.java?rev=209059&r1=209058&r2=209059&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/org/apache/axis2/clientapi/Stub.java (original)
+++ webservices/axis/trunk/java/modules/core/src/org/apache/axis2/clientapi/Stub.java Mon
Jul  4 04:34:24 2005
@@ -16,6 +16,7 @@
 
 package org.apache.axis2.clientapi;
 
+import org.apache.axis2.addressing.EndpointReference;
 import org.apache.axis2.context.ConfigurationContext;
 import org.apache.axis2.context.MessageContext;
 import org.apache.axis2.context.ServiceContext;
@@ -47,7 +48,7 @@
     protected ConfigurationContext _configurationContext;
     protected static ServiceDescription _service;
     protected ServiceContext _serviceContext;
-    protected String toEPR ;
+    protected EndpointReference toEPR ;
 
 
 

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/emitter/MultiLanguageClientEmitter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/emitter/MultiLanguageClientEmitter.java?rev=209059&r1=209058&r2=209059&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/emitter/MultiLanguageClientEmitter.java
(original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/emitter/MultiLanguageClientEmitter.java
Mon Jul  4 04:34:24 2005
@@ -495,12 +495,6 @@
         loadOperations(boundInterface, doc, rootElement, binding);
         doc.appendChild(rootElement);
 
-        try {
-            doc.write(System.out);
-        } catch (IOException e) {
-            // TODO Auto-generated catch block
-            e.printStackTrace();
-        }
 
         return doc;
     }
@@ -673,14 +667,6 @@
         loadOperations(boundInterface, doc, rootElement,binding);
         doc.appendChild(rootElement);
 
-//        //////////////////////////
-        try {
-            doc.write(System.out);
-        } catch (IOException e) {
-            e.printStackTrace();  //To change body of catch statement use File | Settings
| File Templates.
-        }
-//
-//        ///////////////////////////////
 
 
         return doc;

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl?rev=209059&r1=209058&r2=209059&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl
(original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl
Mon Jul  4 04:34:24 2005
@@ -38,9 +38,7 @@
         */
         public <xsl:value-of select="@name"/>(String axis2Home,String targetEndpoint)
throws java.lang.Exception {
 
-          if(targetEndpoint.charAt(targetEndpoint.length()-1)!='/')
-        		targetEndpoint = targetEndpoint+"/";
-           this.toEPR = targetEndpoint;
+			this.toEPR = new org.apache.axis2.addressing.EndpointReference(org.apache.axis2.addressing.AddressingConstants.WSA_TO,
targetEndpoint);
 		    //creating the configuration
            _configurationContext = new org.apache.axis2.context.ConfigurationContextFactory().buildClientConfigurationContext(axis2Home);
            _configurationContext.getAxisConfiguration().addService(_service);
@@ -78,7 +76,7 @@
 
 		    org.apache.axis2.clientapi.Call _call = new org.apache.axis2.clientapi.Call(_serviceContext);
  		    org.apache.axis2.context.MessageContext _messageContext = getMessageContext();
-            _call.setTo(new org.apache.axis2.addressing.EndpointReference(org.apache.axis2.addressing.AddressingConstants.WSA_TO,
toEPR+"<xsl:value-of select="@name"/>"));
+            _call.setTo(this.toEPR);
             _call.setSoapAction("<xsl:value-of select="$soapAction"/>");
             org.apache.axis2.soap.SOAPEnvelope env = null;
             env = createEnvelope();
@@ -153,7 +151,7 @@
         public  void start<xsl:value-of select="@name"/>(<xsl:if test="$inputtype!=''"><xsl:value-of
select="$inputtype"/><xsl:text> </xsl:text><xsl:value-of select="$inputparam"></xsl:value-of>,</xsl:if>final
<xsl:value-of select="$package"/>.<xsl:value-of select="$callbackname"/> callback)
throws java.rmi.RemoteException{
              org.apache.axis2.clientapi.Call _call = new org.apache.axis2.clientapi.Call(_serviceContext);<!--
this needs to change -->
  		     org.apache.axis2.context.MessageContext _messageContext = getMessageContext();
-             _call.setTo(new org.apache.axis2.addressing.EndpointReference(org.apache.axis2.addressing.AddressingConstants.WSA_TO,
toEPR+"<xsl:value-of select="@name"/>"));
+             _call.setTo(this.toEPR);
             _call.setSoapAction("<xsl:value-of select="$soapAction"/>");
              org.apache.axis2.soap.SOAPEnvelope env = createEnvelope();
              <xsl:choose>



Mime
View raw message