Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2E12F200CA4 for ; Wed, 7 Jun 2017 16:44:24 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2CAFE160BB6; Wed, 7 Jun 2017 14:44:24 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 22A94160BD0 for ; Wed, 7 Jun 2017 16:44:22 +0200 (CEST) Received: (qmail 79280 invoked by uid 500); 7 Jun 2017 14:44:21 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 79269 invoked by uid 99); 7 Jun 2017 14:44:21 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Jun 2017 14:44:21 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 8364CC002B for ; Wed, 7 Jun 2017 14:44:21 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id HGVfRLJgaLoR for ; Wed, 7 Jun 2017 14:44:19 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 083EB5F6C6 for ; Wed, 7 Jun 2017 14:44:19 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 71585E00A3 for ; Wed, 7 Jun 2017 14:44:18 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 1C7D320DF1 for ; Wed, 7 Jun 2017 14:44:18 +0000 (UTC) Date: Wed, 7 Jun 2017 14:44:18 +0000 (UTC) From: "Hadrian Zbarcea (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CXF-7398) Invalid wsdl with multiple ports published via ?wsdl MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 07 Jun 2017 14:44:24 -0000 [ https://issues.apache.org/jira/browse/CXF-7398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hadrian Zbarcea updated CXF-7398: --------------------------------- Description: I suspect this issue may have been reported in the past, but couldn't find anything. I have a wsdl with a service and multiple ports. The address for each port is a dummy placehoder, like {{"/port1"}}, {{"/port2}}" anyway not a regular url (it's {{"greeter-exact"}} in the stack trace below). My blueprint defines multiple endpoints for the different ports. Going in the browser at the {{http://localhost:8181/cxf/}} all the endpoints are listed properly, the endpoints behave as expected. However, the wsdl(s) published for each endpoint only have the address for that particular endpoint/port correctly, the other ports in the services are present, but with their original placeholder address (i.e. the wsdl published for each of the services is different, although technically it's the same wsdl). The issue is that trying to create a project with tools like SoapUI results in an error, see trace below, due to the invalid addresses. There is a workaround, to either define a wsdl with only one port, or with multiple ports, but with address placeholders that are valid http:// urls. Ideally the correct wsdl would be published. {code} Wed Jun 07 10:20:51 EDT 2017:DEBUG:Sending request: GET /cxf/greeter-once?wsdl=META-INF/wsdl/org/apifocal/demo/greeter/greeter.wsdl HTTP/1.1 Wed Jun 07 10:20:51 EDT 2017:DEBUG:Receiving response: HTTP/1.1 200 OK Wed Jun 07 10:20:51 EDT 2017:DEBUG:Connection can be kept alive indefinitely Wed Jun 07 10:20:51 EDT 2017:DEBUG:Loading Definition... Wed Jun 07 10:20:51 EDT 2017:DEBUG:Loading WSDL: http://localhost:8181/cxf/greeter-once?wsdl Wed Jun 07 10:20:51 EDT 2017:DEBUG:Returning baseInputSource [http://localhost:8181/cxf/greeter-once?wsdl] Wed Jun 07 10:20:51 EDT 2017:DEBUG:Returning latest import URI [http://localhost:8181/cxf/greeter-once?wsdl=META-INF/wsdl/org/apifocal/demo/greeter/greeter.wsdl] Wed Jun 07 10:20:51 EDT 2017:DEBUG:Returning latest import URI [http://localhost:8181/cxf/greeter-once?wsdl=META-INF/wsdl/org/apifocal/demo/greeter/greeter.wsdl] Wed Jun 07 10:20:51 EDT 2017:INFO:Loading schema types from [http://localhost:8181/cxf/greeter-once?wsdl] Wed Jun 07 10:20:51 EDT 2017:INFO:Getting schema http://localhost:8181/cxf/greeter-once?wsdl Wed Jun 07 10:20:51 EDT 2017:INFO:Getting schema http://localhost:8181/cxf/greeter-once?wsdl=META-INF/wsdl/org/apifocal/demo/greeter/greeter.wsdl Wed Jun 07 10:20:51 EDT 2017:DEBUG:Loaded Definition: ok Wed Jun 07 10:20:51 EDT 2017:INFO:Finding importer for {http://demo.apifocal.org/greeter}GreeterSOAPBinding Wed Jun 07 10:20:51 EDT 2017:INFO:Importing binding {http://demo.apifocal.org/greeter}GreeterSOAPBinding Wed Jun 07 10:20:51 EDT 2017:INFO:importing endpoint /greeter-wsrm Wed Jun 07 10:20:51 EDT 2017:INFO:importing endpoint /greeter-exact Wed Jun 07 10:20:51 EDT 2017:INFO:importing endpoint http://localhost:8181/cxf/greeter-once Wed Jun 07 10:20:51 EDT 2017:INFO:importing endpoint http://example.com/SoapContext/GreeterPort Wed Jun 07 10:20:51 EDT 2017:INFO:importing operation greetMe Wed Jun 07 10:20:51 EDT 2017:INFO:importing operation greetMeOneWay Wed Jun 07 10:20:51 EDT 2017:INFO:importing operation pingMe Wed Jun 07 10:20:51 EDT 2017:INFO:importing operation sayHi Wed Jun 07 10:21:23 EDT 2017:DEBUG:Connection closed Wed Jun 07 10:21:35 EDT 2017:ERROR:An error occurred [com.eviware.soapui.impl.wsdl.submit.RequestTransportRegistry$MissingTransportException: Missing protocol in endpoint [/greeter-exact]], see error log for details Wed Jun 07 10:21:40 EDT 2017:ERROR:An error occurred [com.eviware.soapui.impl.wsdl.submit.RequestTransportRegistry$MissingTransportException: Missing protocol in endpoint [/greeter-exact]], see error log for details {code} was: I suspect this issue may have been reported in the past, but couldn't find anything. I have a wsdl with a service and multiple ports. The address for each port is a dummy placehoder, like {{"/port1"}}, {{"/port2}}" anyway not a regular url (it's {{"greeter-exact"}} in the stack trace below. My blueprint defines multiple endpoints for the different ports. Going in the browser at the {{http://localhost:8181/cxf/}} all the endpoints are listed properly, the endpoints behave as expected. However, the wsdl(s) published for each endpoint only have the address for that particular endpoint/port correctly, the other ports in the services are present, but with their original placeholder address (i.e. the wsdl published for each of the services is different, although technically it's the same wsdl). The issue is that trying to create a project with tools like SoapUI results in an error, see trace below, due to the invalid addresses. There is a workaround, to either define a wsdl with only one port, or with multiple ports, but with address placeholders that are valid http:// urls. Ideally the correct wsdl would be published. {code} Wed Jun 07 10:20:51 EDT 2017:DEBUG:Sending request: GET /cxf/greeter-once?wsdl=META-INF/wsdl/org/apifocal/demo/greeter/greeter.wsdl HTTP/1.1 Wed Jun 07 10:20:51 EDT 2017:DEBUG:Receiving response: HTTP/1.1 200 OK Wed Jun 07 10:20:51 EDT 2017:DEBUG:Connection can be kept alive indefinitely Wed Jun 07 10:20:51 EDT 2017:DEBUG:Loading Definition... Wed Jun 07 10:20:51 EDT 2017:DEBUG:Loading WSDL: http://localhost:8181/cxf/greeter-once?wsdl Wed Jun 07 10:20:51 EDT 2017:DEBUG:Returning baseInputSource [http://localhost:8181/cxf/greeter-once?wsdl] Wed Jun 07 10:20:51 EDT 2017:DEBUG:Returning latest import URI [http://localhost:8181/cxf/greeter-once?wsdl=META-INF/wsdl/org/apifocal/demo/greeter/greeter.wsdl] Wed Jun 07 10:20:51 EDT 2017:DEBUG:Returning latest import URI [http://localhost:8181/cxf/greeter-once?wsdl=META-INF/wsdl/org/apifocal/demo/greeter/greeter.wsdl] Wed Jun 07 10:20:51 EDT 2017:INFO:Loading schema types from [http://localhost:8181/cxf/greeter-once?wsdl] Wed Jun 07 10:20:51 EDT 2017:INFO:Getting schema http://localhost:8181/cxf/greeter-once?wsdl Wed Jun 07 10:20:51 EDT 2017:INFO:Getting schema http://localhost:8181/cxf/greeter-once?wsdl=META-INF/wsdl/org/apifocal/demo/greeter/greeter.wsdl Wed Jun 07 10:20:51 EDT 2017:DEBUG:Loaded Definition: ok Wed Jun 07 10:20:51 EDT 2017:INFO:Finding importer for {http://demo.apifocal.org/greeter}GreeterSOAPBinding Wed Jun 07 10:20:51 EDT 2017:INFO:Importing binding {http://demo.apifocal.org/greeter}GreeterSOAPBinding Wed Jun 07 10:20:51 EDT 2017:INFO:importing endpoint /greeter-wsrm Wed Jun 07 10:20:51 EDT 2017:INFO:importing endpoint /greeter-exact Wed Jun 07 10:20:51 EDT 2017:INFO:importing endpoint http://localhost:8181/cxf/greeter-once Wed Jun 07 10:20:51 EDT 2017:INFO:importing endpoint http://example.com/SoapContext/GreeterPort Wed Jun 07 10:20:51 EDT 2017:INFO:importing operation greetMe Wed Jun 07 10:20:51 EDT 2017:INFO:importing operation greetMeOneWay Wed Jun 07 10:20:51 EDT 2017:INFO:importing operation pingMe Wed Jun 07 10:20:51 EDT 2017:INFO:importing operation sayHi Wed Jun 07 10:21:23 EDT 2017:DEBUG:Connection closed Wed Jun 07 10:21:35 EDT 2017:ERROR:An error occurred [com.eviware.soapui.impl.wsdl.submit.RequestTransportRegistry$MissingTransportException: Missing protocol in endpoint [/greeter-exact]], see error log for details Wed Jun 07 10:21:40 EDT 2017:ERROR:An error occurred [com.eviware.soapui.impl.wsdl.submit.RequestTransportRegistry$MissingTransportException: Missing protocol in endpoint [/greeter-exact]], see error log for details {code} > Invalid wsdl with multiple ports published via ?wsdl > ---------------------------------------------------- > > Key: CXF-7398 > URL: https://issues.apache.org/jira/browse/CXF-7398 > Project: CXF > Issue Type: Bug > Components: WS-* Components > Affects Versions: 3.1.7 > Reporter: Hadrian Zbarcea > Priority: Minor > > I suspect this issue may have been reported in the past, but couldn't find anything. > I have a wsdl with a service and multiple ports. The address for each port is a dummy placehoder, like {{"/port1"}}, {{"/port2}}" anyway not a regular url (it's {{"greeter-exact"}} in the stack trace below). My blueprint defines multiple endpoints for the different ports. > Going in the browser at the {{http://localhost:8181/cxf/}} all the endpoints are listed properly, the endpoints behave as expected. However, the wsdl(s) published for each endpoint only have the address for that particular endpoint/port correctly, the other ports in the services are present, but with their original placeholder address (i.e. the wsdl published for each of the services is different, although technically it's the same wsdl). > The issue is that trying to create a project with tools like SoapUI results in an error, see trace below, due to the invalid addresses. There is a workaround, to either define a wsdl with only one port, or with multiple ports, but with address placeholders that are valid http:// urls. > Ideally the correct wsdl would be published. > {code} > Wed Jun 07 10:20:51 EDT 2017:DEBUG:Sending request: GET /cxf/greeter-once?wsdl=META-INF/wsdl/org/apifocal/demo/greeter/greeter.wsdl HTTP/1.1 > Wed Jun 07 10:20:51 EDT 2017:DEBUG:Receiving response: HTTP/1.1 200 OK > Wed Jun 07 10:20:51 EDT 2017:DEBUG:Connection can be kept alive indefinitely > Wed Jun 07 10:20:51 EDT 2017:DEBUG:Loading Definition... > Wed Jun 07 10:20:51 EDT 2017:DEBUG:Loading WSDL: http://localhost:8181/cxf/greeter-once?wsdl > Wed Jun 07 10:20:51 EDT 2017:DEBUG:Returning baseInputSource [http://localhost:8181/cxf/greeter-once?wsdl] > Wed Jun 07 10:20:51 EDT 2017:DEBUG:Returning latest import URI [http://localhost:8181/cxf/greeter-once?wsdl=META-INF/wsdl/org/apifocal/demo/greeter/greeter.wsdl] > Wed Jun 07 10:20:51 EDT 2017:DEBUG:Returning latest import URI [http://localhost:8181/cxf/greeter-once?wsdl=META-INF/wsdl/org/apifocal/demo/greeter/greeter.wsdl] > Wed Jun 07 10:20:51 EDT 2017:INFO:Loading schema types from [http://localhost:8181/cxf/greeter-once?wsdl] > Wed Jun 07 10:20:51 EDT 2017:INFO:Getting schema http://localhost:8181/cxf/greeter-once?wsdl > Wed Jun 07 10:20:51 EDT 2017:INFO:Getting schema http://localhost:8181/cxf/greeter-once?wsdl=META-INF/wsdl/org/apifocal/demo/greeter/greeter.wsdl > Wed Jun 07 10:20:51 EDT 2017:DEBUG:Loaded Definition: ok > Wed Jun 07 10:20:51 EDT 2017:INFO:Finding importer for {http://demo.apifocal.org/greeter}GreeterSOAPBinding > Wed Jun 07 10:20:51 EDT 2017:INFO:Importing binding {http://demo.apifocal.org/greeter}GreeterSOAPBinding > Wed Jun 07 10:20:51 EDT 2017:INFO:importing endpoint /greeter-wsrm > Wed Jun 07 10:20:51 EDT 2017:INFO:importing endpoint /greeter-exact > Wed Jun 07 10:20:51 EDT 2017:INFO:importing endpoint http://localhost:8181/cxf/greeter-once > Wed Jun 07 10:20:51 EDT 2017:INFO:importing endpoint http://example.com/SoapContext/GreeterPort > Wed Jun 07 10:20:51 EDT 2017:INFO:importing operation greetMe > Wed Jun 07 10:20:51 EDT 2017:INFO:importing operation greetMeOneWay > Wed Jun 07 10:20:51 EDT 2017:INFO:importing operation pingMe > Wed Jun 07 10:20:51 EDT 2017:INFO:importing operation sayHi > Wed Jun 07 10:21:23 EDT 2017:DEBUG:Connection closed > Wed Jun 07 10:21:35 EDT 2017:ERROR:An error occurred [com.eviware.soapui.impl.wsdl.submit.RequestTransportRegistry$MissingTransportException: Missing protocol in endpoint [/greeter-exact]], see error log for details > Wed Jun 07 10:21:40 EDT 2017:ERROR:An error occurred [com.eviware.soapui.impl.wsdl.submit.RequestTransportRegistry$MissingTransportException: Missing protocol in endpoint [/greeter-exact]], see error log for details > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346)