You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Aki Yoshida (JIRA)" <ji...@apache.org> on 2013/07/15 12:34:49 UTC

[jira] [Commented] (CXF-5097) SOAP:ADDRESS gets generated with ?wsdl at the end

    [ https://issues.apache.org/jira/browse/CXF-5097?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13708368#comment-13708368 ] 

Aki Yoshida commented on CXF-5097:
----------------------------------

Is your test supposed to fail?
I ran your test today and it executed successfully. It could be something to do with the openejb snapshot dependency you have, which caused some problem some days ago but not today? The output from the test executed against openejb 4.6.0-20130715.040957-128 snapshot is shown below.

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running foo.BarTest
INFO - ********************************************************************************
INFO - OpenEJB http://openejb.apache.org/
INFO - Startup: Mon Jul 15 12:24:46 CEST 2013
INFO - Copyright 1999-2013 (C) Apache OpenEJB Project, All Rights Reserved.
INFO - Version: 4.6.0-SNAPSHOT
INFO - Build date: 20130715
INFO - Build time: 04:07
INFO - ********************************************************************************
INFO - openejb.home = C:\tmp\to be deleted\cxf-soap-address
INFO - openejb.base = C:\tmp\to be deleted\cxf-soap-address
INFO - Created new singletonService org.apache.openejb.cdi.ThreadSingletonServiceImpl@43ee148b
INFO - Succeeded in installing singleton service
INFO - Cannot find the configuration file [conf/openejb.xml].  Will attempt to create one for the beans deployed.
INFO - Configuring Service(id=Default Security Service, type=SecurityService, provider-id=Default Security Service)
INFO - Configuring Service(id=Default Transaction Manager, type=TransactionManager, provider-id=Default Transaction Manager)
INFO - Using 'openejb.deployments.classpath=false'
INFO - Creating TransactionManager(id=Default Transaction Manager)
INFO - Creating SecurityService(id=Default Security Service)
INFO - Initializing network services
INFO - Creating ServerService(id=httpejbd)
INFO - Created ServicePool 'httpejbd' with (10) core threads, limited to (200) threads with a queue of (9)
INFO - Creating ServerService(id=cxf)
INFO - Creating ServerService(id=admin)
INFO - Created ServicePool 'admin' with (10) core threads, limited to (10) threads with a queue of (9)
INFO - Creating ServerService(id=ejbd)
INFO - Created ServicePool 'ejbd' with (10) core threads, limited to (200) threads with a queue of (9)
INFO - Creating ServerService(id=ejbds)
INFO - Created ServicePool 'ejbds' with (10) core threads, limited to (200) threads with a queue of (9)
INFO - Initializing network services
INFO -   ** Bound Services **
INFO -   NAME                 IP              PORT  
INFO -   httpejbd             127.0.0.1       4204  
INFO -   admin                127.0.0.1       4200  
INFO -   ejbd                 127.0.0.1       4201  
INFO -   ejbds                127.0.0.1       4203  
INFO - -------
INFO - Ready!
INFO - Configuring enterprise application: C:\tmp\to be deleted\cxf-soap-address\archive
INFO - Auto-deploying ejb Bar: EjbDeployment(deployment-id=Bar)
INFO - Configuring Service(id=Default Managed Container, type=Container, provider-id=Default Managed Container)
INFO - Auto-creating a container for bean foo.BarTest: Container(type=MANAGED, id=Default Managed Container)
INFO - Creating Container(id=Default Managed Container)
INFO - Using directory C:\cygwin\tmp for stateful session passivation
INFO - Configuring Service(id=Default Stateless Container, type=Container, provider-id=Default Stateless Container)
INFO - Auto-creating a container for bean Bar: Container(type=STATELESS, id=Default Stateless Container)
INFO - Creating Container(id=Default Stateless Container)
INFO - Enterprise application "C:\tmp\to be deleted\cxf-soap-address\archive" loaded.
INFO - Assembling app: C:\tmp\to be deleted\cxf-soap-address\archive
INFO - Jndi(name=BarLocalBean) --> Ejb(deployment-id=Bar)
INFO - Jndi(name=global/archive/archive/Bar!foo.Bar) --> Ejb(deployment-id=Bar)
INFO - Jndi(name=global/archive/archive/Bar) --> Ejb(deployment-id=Bar)
INFO - Existing thread singleton service in SystemInstance(): org.apache.openejb.cdi.ThreadSingletonServiceImpl@43ee148b
INFO - OpenWebBeans Container is starting...
INFO - Adding OpenWebBeansPlugin : [CdiPlugin]
INFO - Adding OpenWebBeansPlugin : [$Proxy44]
INFO - All injection points were validated successfully.
INFO - OpenWebBeans Container has started, it took 70 ms.
INFO - Created Ejb(deployment-id=Bar, ejb-name=Bar, container=Default Stateless Container)
INFO - Started Ejb(deployment-id=Bar, ejb-name=Bar, container=Default Stateless Container)
INFO - Creating Service {http://foo/}BarService from class foo.Bar
INFO - Setting the server's publish address to be http://nopath:80
INFO - Webservice(wsdl=http://127.0.0.1:4204/archive/Bar, qname={http://foo/}BarService) --> Ejb(id=Bar)
INFO - Deployed Application(path=C:\tmp\to be deleted\cxf-soap-address\archive)
<?xml version='1.0' encoding='UTF-8'?><wsdl:definitions xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://foo/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:ns1="http://schemas.xmlsoap.org/soap/http" name="BarService" targetNamespace="http://foo/">
  <wsdl:types>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://foo/" attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://foo/">
<xsd:element name="echo" type="tns:echo"/>
<xsd:complexType name="echo">
<xsd:sequence>
<xsd:element minOccurs="0" name="arg0" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="echoResponse" type="tns:echoResponse"/>
<xsd:complexType name="echoResponse">
<xsd:sequence>
<xsd:element minOccurs="0" name="return" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
  </wsdl:types>
  <wsdl:message name="echoResponse">
    <wsdl:part element="tns:echoResponse" name="parameters">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="echo">
    <wsdl:part element="tns:echo" name="parameters">
    </wsdl:part>
  </wsdl:message>
  <wsdl:portType name="Bar">
    <wsdl:operation name="echo">
      <wsdl:input message="tns:echo" name="echo">
    </wsdl:input>
      <wsdl:output message="tns:echoResponse" name="echoResponse">
    </wsdl:output>
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="BarServiceSoapBinding" type="tns:Bar">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="echo">
      <soap:operation soapAction="" style="document"/>
      <wsdl:input name="echo">
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output name="echoResponse">
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="BarService">
    <wsdl:port binding="tns:BarServiceSoapBinding" name="BarPort">
      <soap:address location="http://127.0.0.1:4204/archive/Bar?wsdl"/>
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>
INFO - Undeploying app: C:\tmp\to be deleted\cxf-soap-address\archive
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.379 sec
INFO - Stopping network services
INFO - Stopping server services
INFO - Destroying container system

Results :

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
[INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ cxf-soap-address ---
[INFO] 
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ cxf-soap-address ---
[INFO] Installing C:\tmp\to be deleted\cxf-soap-address\target\cxf-soap-address-1.0-SNAPSHOT.jar to C:\maven\repo\cxf-soap-address\cxf-soap-address\1.0-SNAPSHOT\cxf-soap-address-1.0-SNAPSHOT.jar
[INFO] Installing C:\tmp\to be deleted\cxf-soap-address\pom.xml to C:\maven\repo\cxf-soap-address\cxf-soap-address\1.0-SNAPSHOT\cxf-soap-address-1.0-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.682s
[INFO] Finished at: Mon Jul 15 12:24:50 CEST 2013
[INFO] Final Memory: 12M/216M
[INFO] ------------------------------------------------------------------------


regards, aki


                
> SOAP:ADDRESS gets generated with ?wsdl at the end
> -------------------------------------------------
>
>                 Key: CXF-5097
>                 URL: https://issues.apache.org/jira/browse/CXF-5097
>             Project: CXF
>          Issue Type: Bug
>            Reporter: Jean-Louis MONTEIRO
>         Attachments: cxf-soap-address.zip
>
>
> Please find attached a ready to run sample to reproduce.
> Note that I'm not sure it's a cxf related issue. I'm using OpenEJB embedded arquillian adapter and maybe it's an openejb issue.
> When there is an import on top of the WSDL, the location is also wrong and then, the webservice cannot be used as CXF is not able to retrieve additional parts (NPE).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira