On 2010-7-16, at 下午6:39, Lorenzo Bolzani wrote:
2010/7/16 Freeman Fang <[email protected]>
Hi,
Could you please use java2wsdl tool from apache cxf instead?
You can use the tool from CLI or maven plugin.
Take a look at [1] to get more details.
[1]http://cxf.apache.org/docs/java-to-wsdl.html
Ok, I'll try with this one too.
In the meantime I "fixed" the problem changing the targetInterface
value
from PECServicePort to PECService in the cxfbc:consumer.
<cxfbc:consumer wsdl="classpath:wsdl/PECService.wsdl"
targetService="pec:PECService"
targetInterface="pec:PECService"
locationURI="http://localhost:8092/PECService/"
mtomEnabled="true" useJBIWrapper="false" />
I think this is quite an hack, but I think was worth to report in case
others could have a similar issue.
Hi,
Ok, I'm not aware that you specify targetInterface as PECServicePort
previously, I think this should be the problem.
The port name (PECServicePort for your case) used in the wsdl should
map tp the targetEndpoint but not the targetInterface, the
targetInterface should be the portType name from wsdl.
Freeman
Thanks, bye
Lorenzo
--
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com
Apache Servicemix:http://servicemix.apache.org
Apache Cxf: http://cxf.apache.org
Apache Karaf: http://karaf.apache.org
Apache Felix: http://felix.apache.org