You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Florian Müller (JIRA)" <ji...@apache.org> on 2016/09/21 08:15:20 UTC

[jira] [Commented] (CMIS-998) Cannot get an instance of client-side WSDL service class

    [ https://issues.apache.org/jira/browse/CMIS-998?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15509172#comment-15509172 ] 

Florian Müller commented on CMIS-998:
-------------------------------------

I'll look into this.
The JAXB code is never included in the source package. It is generated during the build.

> Cannot get an instance of client-side WSDL service class
> --------------------------------------------------------
>
>                 Key: CMIS-998
>                 URL: https://issues.apache.org/jira/browse/CMIS-998
>             Project: Chemistry
>          Issue Type: Bug
>    Affects Versions: OpenCMIS 1.0.0
>         Environment: Java 8
>            Reporter: linzhixing
>            Assignee: Florian Müller
>
> I want to use WebServices as  a client, but fail to get an instance of service class (ex. RepositoryService).
> Here the code that fails:
> org.apache.chemistry.opencmis.client.bindings.spi.webservices.AbstractPortProvider#getPortObject L.456
> // create service object
> CmisServiceHolder serviceholder = initServiceObject(service);
> I found org.apache.chemistry.opencmis.commons.impl.jaxb.RepositoryService class has annotations like
> @WebServiceClient(name = "RepositoryService", 
>                   wsdlLocation = "file:/home/florian/projects/opencmis-release/trunk/target/checkout/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/resources/wsdl/cmis11/CMISWS-Service.wsdl",
>                   targetNamespace = "http://docs.oasis-open.org/ns/cmis/ws/200908/") 
> or 
>  url = new URL("file:/home/florian/projects/opencmis-release/trunk/target/checkout/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/resources/wsdl/cmis11/CMISWS-Service.wsdl");
> In addition org.apache.chemistry.opencmis.commons.impl.jaxb package is not included in the source code from the official site.
> I guess they might come from Florian's local configuration.
> Is it a bug? Or should I generate client-side WSDL service classes on my own?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)