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

Andriy Redko edited comment on CXF-8662 at 2/26/22, 3:05 AM:
-------------------------------------------------------------

Ok, I think I figured it out, it seems your binding id is not what is expected: 
it should be set to `[http://schemas.xmlsoap.org/wsdl/soap12/]` (for `_soap12` 
port) or `[http://schemas.xmlsoap.org/wsdl/soap/]` (for `_soap` port), 
otherwise the first one is picked up.


was (Author: reta):
Ok, I think I figured it out, it seems your binding id is not what is expected: 
it should be set to `[http://schemas.xmlsoap.org/wsdl/soap12/]` (for `_soap12` 
port) or `[http://schemas.xmlsoap.org/wsdl/soap/]` (for `_soap` port)

> publish wsdl first service which contain multiple binding with same porttype 
> always publish first binding.
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: CXF-8662
>                 URL: https://issues.apache.org/jira/browse/CXF-8662
>             Project: CXF
>          Issue Type: Bug
>          Components: Simple Frontend
>    Affects Versions: 3.4.5
>            Reporter: Qunsheng Wan
>            Assignee: Andriy Redko
>            Priority: Major
>             Fix For: 3.5.2, 3.4.7, 4.0.0
>
>
> using samples for example,
> 1) update 
> samples\wsdl_first_dynamic_client\src\main\java\org\apache\cxf\demo\complex\ComplexImpl.java,
>  change the portname to 
> "Company_ESB_Application_Biztalk_AgentDetails_4405_AgentDetails_PrtSoap12"
> 2) update 
> samples\wsdl_first_dynamic_client\src\main\java\demo\hw\server\Server.java 
> change the publish code to:
>         Endpoint ep 
> =Endpoint.create("http://www.w3.org/2003/05/soap/bindings/HTTP/";, 
> complexImpl);
>         ep.publish(address);
> 3) mvn install 
> 4) mvn -Pserver
> 5) go to [http://localhost:9000/Complex?wsdl,] then you will find the 
> tns:Company_ESB_Application_Biztalk_AgentDetails_4405_AgentDetails_PrtSoap 
> will be implemented, instead of 
> tns:Company_ESB_Application_Biztalk_AgentDetails_4405_AgentDetails_PrtSoap12.
> this issue can be reproduced since 3.1.12.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to