Error when WS is called

Source: Internet
Author: User

Error Content
Javax.xml.ws.WebServiceException:Method Recognizeidentitycardbyfilepath is exposed as WebMethod, but there is no corresp Onding WSDL operation with name {Http://tempuri.org/}recognizeidentitycardbyfilepath in the wsdl:porttype{http:// Tempuri.org/}ocrservicesoap
At Com.sun.xml.internal.ws.model.JavaMethodImpl.freeze (javamethodimpl.java:367)
At Com.sun.xml.internal.ws.model.AbstractSEIModelImpl.freeze (abstractseimodelimpl.java:105)
At Com.sun.xml.internal.ws.model.RuntimeModeler.buildRuntimeModel (runtimemodeler.java:320)
At Com.sun.xml.internal.ws.db.databindingimpl.<init> (databindingimpl.java:85)
At Com.sun.xml.internal.ws.db.DatabindingProviderImpl.create (databindingproviderimpl.java:59)
At Com.sun.xml.internal.ws.db.DatabindingProviderImpl.create (databindingproviderimpl.java:43)
At Com.sun.xml.internal.ws.db.DatabindingFactoryImpl.createRuntime (databindingfactoryimpl.java:105)
At Com.sun.xml.internal.ws.client.WSServiceDelegate.buildRuntimeModel (wsservicedelegate.java:875)
At Com.sun.xml.internal.ws.client.WSServiceDelegate.createSEIPortInfo (wsservicedelegate.java:892)
At Com.sun.xml.internal.ws.client.WSServiceDelegate.addSEI (wsservicedelegate.java:855)
At Com.sun.xml.internal.ws.client.WSServiceDelegate.getPort (wsservicedelegate.java:435)
At Com.sun.xml.internal.ws.client.WSServiceDelegate.getPort (wsservicedelegate.java:404)
At Com.sun.xml.internal.ws.client.WSServiceDelegate.getPort (wsservicedelegate.java:386)
At Javax.xml.ws.Service.getPort (service.java:119)
At Org.tempuri.OCRService.getOCRServiceSoap (ocrservice.java:100)
At Com.vcredit.ddcash.monitor.client.IdentityRecognizeClient.recognize (identityrecognizeclient.java:39)
At Com.vcredit.ddcash.monitor.service.IdentityRecognizeService.newRecognizeIdentityCard ( IDENTITYRECOGNIZESERVICE.JAVA:63)
At Com.vcredit.ddcash.monitor.schedule.IdentityRecognizeMonitorJob.getIdentityRecognizeData ( IDENTITYRECOGNIZEMONITORJOB.JAVA:57)Invoke Content

Ocrservice Recong = new Ocrservice (new URL (BASEURL));
Ocrservicesoap soap = Recong.getocrservicesoap ();
Identitycard Idcard = soap.recognizeidentitycardbybytes (content);

Workaround: The pom file is missing a package:

<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
<version>${cxf.version}</version>
</dependency>

Error when WS is called

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.