cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r1149476 - in /cxf/trunk/distribution/src/main/release/samples/wsdl_first_dynamic_client: pom.xml src/demo/hw/client/ComplexClient.java src/org/apache/cxf/demo/complex/ComplexImpl.java
Date Fri, 22 Jul 2011 06:42:19 GMT
Author: ffang
Date: Fri Jul 22 06:42:18 2011
New Revision: 1149476

URL: http://svn.apache.org/viewvc?rev=1149476&view=rev
Log:
[CXF-3638]wsdl_first_dynamic_client example doesn't work

Modified:
    cxf/trunk/distribution/src/main/release/samples/wsdl_first_dynamic_client/pom.xml
    cxf/trunk/distribution/src/main/release/samples/wsdl_first_dynamic_client/src/demo/hw/client/ComplexClient.java
    cxf/trunk/distribution/src/main/release/samples/wsdl_first_dynamic_client/src/org/apache/cxf/demo/complex/ComplexImpl.java

Modified: cxf/trunk/distribution/src/main/release/samples/wsdl_first_dynamic_client/pom.xml
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/wsdl_first_dynamic_client/pom.xml?rev=1149476&r1=1149475&r2=1149476&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/wsdl_first_dynamic_client/pom.xml (original)
+++ cxf/trunk/distribution/src/main/release/samples/wsdl_first_dynamic_client/pom.xml Fri
Jul 22 06:42:18 2011
@@ -63,6 +63,23 @@
                     </execution>
                 </executions>
             </plugin>
+            <plugin>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>copywsdlfiles</id>
+                        <phase>generate-sources</phase>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                        <configuration>
+                            <tasks>
+                                <copy file="${basedir}/wsdl/complex.wsdl" todir="${basedir}/target/classes/wsdl"
/>
+                            </tasks>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
         </plugins>
     </build>
     <profiles>

Modified: cxf/trunk/distribution/src/main/release/samples/wsdl_first_dynamic_client/src/demo/hw/client/ComplexClient.java
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/wsdl_first_dynamic_client/src/demo/hw/client/ComplexClient.java?rev=1149476&r1=1149475&r2=1149476&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/wsdl_first_dynamic_client/src/demo/hw/client/ComplexClient.java
(original)
+++ cxf/trunk/distribution/src/main/release/samples/wsdl_first_dynamic_client/src/demo/hw/client/ComplexClient.java
Fri Jul 22 06:42:18 2011
@@ -42,7 +42,8 @@ import org.apache.cxf.service.model.Serv
 public final class ComplexClient {
     
     private static final QName SERVICE_NAME 
-        = new QName("http://complex.demo.cxf.apache.org/", "ComplexImplService");
+        = new QName("http://Company.com/Application", 
+                     "Company_ESB_Application_Biztalk_AgentDetails_4405_AgentDetails_Prt");
     
     private ComplexClient() {
     }
@@ -71,7 +72,8 @@ public final class ComplexClient {
         ClientImpl clientImpl = (ClientImpl) client;
         Endpoint endpoint = clientImpl.getEndpoint();
         ServiceInfo serviceInfo = endpoint.getService().getServiceInfos().get(0);
-        QName bindingName = new QName("http://complex.demo.cxf.apache.org/", "ComplexImplServiceSoapBinding");
+        QName bindingName = new QName("http://Company.com/Application", 
+            "Company_ESB_Application_Biztalk_AgentDetails_4405_AgentDetails_PrtSoap");
         BindingInfo binding = serviceInfo.getBinding(bindingName);
         //{
         QName opName = new QName("http://Company.com/Application", "GetAgentDetails");

Modified: cxf/trunk/distribution/src/main/release/samples/wsdl_first_dynamic_client/src/org/apache/cxf/demo/complex/ComplexImpl.java
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/wsdl_first_dynamic_client/src/org/apache/cxf/demo/complex/ComplexImpl.java?rev=1149476&r1=1149475&r2=1149476&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/wsdl_first_dynamic_client/src/org/apache/cxf/demo/complex/ComplexImpl.java
(original)
+++ cxf/trunk/distribution/src/main/release/samples/wsdl_first_dynamic_client/src/org/apache/cxf/demo/complex/ComplexImpl.java
Fri Jul 22 06:42:18 2011
@@ -30,6 +30,14 @@ import agentwsresponse.agent.legacysyste
  * This is a trivial implementation of a service contributed in a bug report.  It's useful
  * as an example of a hard case of using dynamic client.
  */
+@javax.jws.WebService(
+    serviceName = "Company_ESB_Application_Biztalk_AgentDetails_4405_AgentDetails_Prt",
+    portName = "Company_ESB_Application_Biztalk_AgentDetails_4405_AgentDetails_PrtSoap",
+    targetNamespace = "http://Company.com/Application",
+    wsdlLocation = "/wsdl/complex.wsdl",
+    endpointInterface = 
+        "com.company.application.CompanyESBApplicationBiztalkAgentDetails4405AgentDetailsPrtSoap")
+
 public class ComplexImpl implements CompanyESBApplicationBiztalkAgentDetails4405AgentDetailsPrtSoap
{
 
     /** {@inheritDoc}*/



Mime
View raw message