Return-Path: Delivered-To: apmail-cxf-dev-archive@www.apache.org Received: (qmail 16846 invoked from network); 6 Jul 2009 14:34:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Jul 2009 14:34:11 -0000 Received: (qmail 82901 invoked by uid 500); 6 Jul 2009 14:34:21 -0000 Delivered-To: apmail-cxf-dev-archive@cxf.apache.org Received: (qmail 82841 invoked by uid 500); 6 Jul 2009 14:34:21 -0000 Mailing-List: contact dev-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 dev@cxf.apache.org Received: (qmail 82831 invoked by uid 99); 6 Jul 2009 14:34:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jul 2009 14:34:21 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of liucong07@gmail.com designates 209.85.200.171 as permitted sender) Received: from [209.85.200.171] (HELO wf-out-1314.google.com) (209.85.200.171) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jul 2009 14:34:10 +0000 Received: by wf-out-1314.google.com with SMTP id 28so1517443wff.30 for ; Mon, 06 Jul 2009 07:33:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type; bh=lFMLZa46dxDnSZxQKp/bWWJ8JscHcTIPiYVZzxjNi48=; b=OuOSYee1J/pS7Fwbb4YRW+yiexURGcIA2xmc/dpGXR6oFTGNlEXDkFT9oI/dez4hrZ ukxku0/DRlimddVeZULGOf7rq3uuxXjp4Xdv/jGMhvgutcf0dtiq3b7/PyVwmIzA9q7T EANpCFiIRJYjY3g1Ge+6UaVGWZ3jTel3MiBIY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type; b=RXVBSKcEpR+jbKmbDZ8EQv+yUsblc996fl+mZ4c2T4roEDwBeHhFUw8ERitiewTEiT YFwdVBXNQM1OQtM6vbum5X9p7LPjpo273yZTmFLSBwAJ2qrm9YMZP4CNbFIa/RPnBFGP 5EW9kaLv8mZA+SqC9srAIwLIXtu3v01LbYpxc= Received: by 10.142.187.7 with SMTP id k7mr638471wff.304.1246890821223; Mon, 06 Jul 2009 07:33:41 -0700 (PDT) Received: from ?133.133.133.57? ([124.16.137.194]) by mx.google.com with ESMTPS id 24sm22072474wff.38.2009.07.06.07.33.36 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 06 Jul 2009 07:33:40 -0700 (PDT) Message-ID: <4A520B24.2030107@gmail.com> Date: Mon, 06 Jul 2009 22:33:08 +0800 From: liucong User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) MIME-Version: 1.0 To: dev@cxf.apache.org CC: Daniel Kulp Subject: Re: An Exception occurs when use wsdl extension in the port References: <4A4F424C.8060903@gmail.com> <200907061026.29817.dkulp@apache.org> In-Reply-To: <200907061026.29817.dkulp@apache.org> Content-Type: multipart/alternative; boundary="------------020900080501050709010604" X-Virus-Checked: Checked by ClamAV on apache.org --------------020900080501050709010604 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit Thank you, Dan. I just found the problem as you said. I can make the JMSTransportFactory implement WSDLEndpointFactory interface. And then the SOAPAddress can be used to create createEndpointInfo. Then the problem will be solved. I'm trying to do this. liu Daniel Kulp wrote: > A test case (attached to a JIRA) would be good if you cannot figure this out. > > However, here is a pointer: > When CXF looks in the WSDL to determine the transport factory, it looks at the > FIRST extensor on the port that has a namespace that matches a transport > factory. In your first example, it would be "soap" and thus would match the > "soap" transport. > > In the second, it would be "soapjms" and thus probably matches the JMS > transport and not the soap transport. The jms transport probably doesn't > look for "soap:address". > > Not sure on the best course of action to solve this. :-( Possibly the > soap binding could reset the address on the transport or something. Would be > good to check if this is the case before diving in too deep. > > Dan > > > > > > On Sat July 4 2009 7:51:40 am liucong wrote: > >> Hi all, >> When I implement the WSDL usage for SOAP/JMS, I encountered an exception. >> I create an service and invoke it using wsdl-first. >> >> If the wsdl file looks like this[1] : >> >> >> >> > location="jms:jndi:dynamicQueues/test.cxf.jmstransport.queue?jndiInitialCon >> textFactory=org.apache.activemq.jndi.ActiveMQInitialContextFactory&jndiC >> onnectionFactoryName=ConnectionFactory&jndiURL=tcp://localhost:61616& >> ;targetService=greeterService" /> >> 1000 >> >> >> >> >> This service works well. >> >> But if the wsdl file looks like this[2] : >> >> >> >> 1000 >> > location="jms:jndi:dynamicQueues/test.cxf.jmstransport.queue?jndiInitialCon >> textFactory=org.apache.activemq.jndi.ActiveMQInitialContextFactory&jndiC >> onnectionFactoryName=ConnectionFactory&jndiURL=tcp://localhost:61616& >> ;targetService=greeterService" /> >> >> >> >> >> The service is created correctly, but there is an error happen when I >> invoke this service. >> By debugging, I find that JMSTransportFactory.getConduit(EndpointInfo >> endpointInfo, EndpointReferenceType target)'s target parameter is null. >> It should be >> "jms:jndi:dynamicQueues/test.cxf.jmstransport.queue?jndiInitialContextFacto >> ry=org.apache.activemq.jndi.ActiveMQInitialContextFactory&jndiConnection >> FactoryName=ConnectionFactory&jndiURL=tcp://localhost:61616&targetSe >> rvice=greeterService". >> >> I think there are someting wrong with port parsing in wsdl. >> Any ideas? >> >> best regards >> liu >> > > --------------020900080501050709010604--