Quantcast
Channel: Adobe Community : Popular Discussions - LiveCycle Reader Extensions
Viewing all articles
Browse latest Browse all 16271

Webservice: method GET to WSDL url is OK - DocumentError: HTTP 405 on method PUT

$
0
0

Hi Folks

 

I just installed the "LiveCycle ES" Trial  VMWare-image for ESX-Server (which uses JBoss) and tried to call the  ReaderExtensionsServiceClient webservice using the java sample and  always get this exception:

...

Caused by: com.adobe.idp.DocumentError: 405: HTTP method PUT is not supported by this URL

...

 

I sticked to the adobe webservice client sample as shown in the source below. The sniplet does not show the real IP address.

The WSDL-url works fine for GET in the browser:http://server-ip-address:8080/soap/services/ReaderExtensionsService?wsdl&lc_v ersion=9.0.0

The  services are all activated in the Trial VMWare-image. I did not import  ReaderExtensions credentials, as I was unable to find the view for this  in the AdminUI, but the Trial VMWare-image should have some  ReaderExtensions credentials preinstalled.

 

Any hints welcome what to change to get this working.

best regards

irgei

 

 

  Properties connectionProps = new Properties();
   connectionProps.setProperty(ServiceClientFactoryProperties.DSC_DEFAUL T_SOAP_ENDPOINT, "http://server-ip-address:8080");
   connectionProps.setProperty(ServiceClientFactoryProperties.DSC_TRANSP ORT_PROTOCOL,
      ServiceClientFactoryProperties.DSC_SOAP_PROTOCOL);
   connectionProps.setProperty(ServiceClientFactoryProperties.DSC_SERVER _TYPE,
      ServiceClientFactoryProperties.DSC_JBOSS_SERVER_TYPE);
   connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDEN TIAL_USERNAME, "Administrator");
   connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDEN TIAL_PASSWORD, "password");

   UsageRights usageRights = new UsageRights();
   usageRights.setEnabledComments(true);
          
   ReaderExtensionsOptionSpec options = new ReaderExtensionsOptionSpec(usageRights, "my usage rights message");


   ServiceClientFactory factory = ServiceClientFactory.createInstance(connectionProps);
    ReaderExtensionsServiceClient service = new ReaderExtensionsServiceClient(factory);
   Document inDocument = new Document(new File(testBaseDir, "test-input.pdf"), false);

   Document rightsApplied = service.applyUsageRights(inDocument, "", "", options);
   rightsApplied.copyToFile(new File(testBaseDir, "test-output.pdf"));


Viewing all articles
Browse latest Browse all 16271

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>