Return-Path: Delivered-To: apmail-incubator-cxf-issues-archive@locus.apache.org Received: (qmail 56244 invoked from network); 7 Feb 2007 22:31:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Feb 2007 22:31:26 -0000 Received: (qmail 83082 invoked by uid 500); 7 Feb 2007 22:31:33 -0000 Delivered-To: apmail-incubator-cxf-issues-archive@incubator.apache.org Received: (qmail 83065 invoked by uid 500); 7 Feb 2007 22:31:33 -0000 Mailing-List: contact cxf-issues-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-dev@incubator.apache.org Delivered-To: mailing list cxf-issues@incubator.apache.org Received: (qmail 83053 invoked by uid 99); 7 Feb 2007 22:31:33 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Feb 2007 14:31:33 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Feb 2007 14:31:25 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8312A7142B5 for ; Wed, 7 Feb 2007 14:31:05 -0800 (PST) Message-ID: <25634490.1170887465518.JavaMail.jira@brutus> Date: Wed, 7 Feb 2007 14:31:05 -0800 (PST) From: "Jarek Gawor (JIRA)" To: cxf-issues@incubator.apache.org Subject: [jira] Commented: (CXF-414) Setting ENDPOINT_ADDRESS_PROPERTY property on client proxy has no effect In-Reply-To: <27796458.1170887226457.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CXF-414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12471131 ] Jarek Gawor commented on CXF-414: --------------------------------- I should mention that 'foo' Service class was initialized with full WSDL. > Setting ENDPOINT_ADDRESS_PROPERTY property on client proxy has no effect > ------------------------------------------------------------------------ > > Key: CXF-414 > URL: https://issues.apache.org/jira/browse/CXF-414 > Project: CXF > Issue Type: Bug > Components: JAX-WS Runtime > Reporter: Jarek Gawor > > I'm doing the following: > Greeter g = foo.getPort(Greeter.class); > (javax.xml.ws.BindingProvider)g).getRequestContext().put(javax.xml.ws.BindingProvider.ENDPOINT_ADDRESS_PROPERTY, "http://localhost:8080/jaxws-war-2.0-SNAPSHOT/hello"); > g.greetMe("foo"); > when the ENDPOINT_ADDRESS_PROPERTY is set or not I get the following exception: > org.apache.cxf.interceptor.Fault > at org.apache.cxf.endpoint.ClientImpl.getConduit(ClientImpl.java:299) > at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:138) > at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73) > at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:12 > 4) > at $Proxy54.greetMe(Unknown Source) > at org.apache.hello_world_soap_http.GreeterImpl.greetMe(GreeterImpl.java > .... > Caused by: java.net.MalformedURLException > at java.net.URL.(URL.java:601) > at java.net.URL.(URL.java:464) > at java.net.URL.(URL.java:413) > at org.apache.cxf.transport.http.HTTPConduit.(HTTPConduit.java:138 > ) > at org.apache.cxf.transport.http.HTTPConduit.(HTTPConduit.java:111 > ) > at org.apache.cxf.transport.http.HTTPConduit.(HTTPConduit.java:97) > at org.apache.cxf.transport.http.HTTPTransportFactory.getConduit(HTTPTra > nsportFactory.java:115) > at org.apache.cxf.transport.http.HTTPTransportFactory.getConduit(HTTPTra > nsportFactory.java:111) > at org.apache.cxf.binding.soap.SoapTransportFactory.getConduit(SoapTrans > portFactory.java:152) > at org.apache.cxf.endpoint.ClientImpl.getConduit(ClientImpl.java:295) > ... 41 more > The MalformedURLException s raised in HTTPConduit because endpointInfo.getAddress() returns null or empty. > To fix this I had to add the following to JaxWsClientProxy: > ... > ContextPropertiesMapping.mapRequestfromJaxws2Cxf(reqContext); > String address = (String)reqContext.get(org.apache.cxf.message.Message.ENDPOINT_ADDRESS); > if (address != null) { > endpoint.getEndpointInfo().setAddress(address); > } > > .. > context.put(Client.REQUEST_CONTEXT, reqContext); > Also, I think the problem is when the Service instance is created from full WSDL the EndpointInfo is not completely filled out with the service address information as specified in WSDL. But that's a separate issue from above. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.