Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Invoking Webservice with input as Document

Avatar

Level 1

hi i am following steps from

http://help.adobe.com/en_US/livecycle/9.0/workbenchHelp/help.htm?content=003896.html

my web method is

  @RemoteMethod(transactionAttribute = Constants.TransactionAttribute.REQUIRED)

  @LocalMethod(transactionAttribute = Constants.TransactionAttribute.REQUIRED)

  @ServiceEndpointMethod(transactionAttribute = Constants.TransactionAttribute.REQUIRED)

  @WebMethod()

  public String testService2(org.w3c.dom.Document domDocument)  {

System.out.println("--------------------------------");

        System.out.println(domDocument.toString());

        System.out.println("----------------------------");

        return "sucesss2";

  }

and i am using "invoke web service " in my livecycle process.

now i am tyring to load attachment in webservice setting but not able to get any rows added.

where as i added attachment by add attachment button but it is not working with

my test soap test input

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:res="http://resource.resource.domain.services.nyss.ktv.tdc.com" xmlns:java="java:com.adobe.idp" xmlns:ser="http://adobe.com/idp/services">

   <soapenv:Header/>

   <soapenv:Body>

      <res:testService1>

         <res:adobeDoc>

            <res:attachmentID>part0</res:attachmentID>

         </res:adobeDoc>

      </res:testService1>

   </soapenv:Body>

</soapenv:Envelope>

it gives error

  <faultstring>java.lang.InstantiationException: com.adobe.idp.Document</faultstring>

         <detail>

            <bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">com.bea.xml.XmlRuntimeException: java.lang.InstantiationException: com.adobe.idp.Document

          at com.bea.staxb.runtime.internal.ClassLoadingUtils.newInstance(ClassLoadingUtils.java:137)

please help me how to add attachment in my case

0 Replies