cancel
Showing results for 
Search instead for 
Did you mean: 

PDF form doesnt call Web service when its ONLINE but executes when offline

Former Member
0 Kudos

Hi,

I have created interactive pdf form integrated with web service for offline scenario

The PDF created using Web Dynpro Java. It is deployed into portal and is accessedfrom there.

The pdf has button which executes the Web service.

When the PDf is created in web dynpro application and I execute it when Still on Application it does not do anything.

But If download it and execute it from desktop, It executes.

I have referred to following blog:

http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417800)ID0713077450DB01267361626062944308End...

I am unable to understand this reason.

I think that the Web service should get called when being Online or Offline.

Is it supposed to work it this way ????

Please let me know the why it does not work?

Regards,

Aditya Deshpande

Edited by: Aditya Deshpande on Nov 20, 2009 8:37 AM

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

In case of ONLINE, what error does it give? I also faced similar problem once, but later on realized in case of offline i was giving correct input so it webservice was getting called,but in case of online i was giving wrong inputs so i was getting an error "Error attempting to read file".

Former Member
0 Kudos

Hi,

I am using JavaScript in adobe form to execute the web service.

I am using Try and catch in it. And it does not give any Error.

When I use error.description method.

It gives me UNDEFINED in adobe.

Where did u get the error.. in default trace??

i did not get " giving wrong inputs " .. what does this mean ???

Regards,

Aditya Deshpande

Edited by: Aditya Deshpande on Dec 1, 2009 1:03 PM

Edited by: Aditya Deshpande on Dec 1, 2009 1:18 PM

Former Member
0 Kudos

Hi Aditya,

Take a look at this example from Stefan. It shows you how to process return codes.

http://forms.stefcameron.com/2009/03/23/pre-process-web-service-responses/

Regards,

Juergen

chintan_virani
Active Contributor
0 Kudos

When you open the application do you get login page i.e. have you set the Authentication box for the WD application and if yo9u are logging with a user-id and password then you will need to provide that user-id , appropriate rights to execute the WS.

Have a look at this [link|http://help.sap.com/saphelp_nw04s/helpdata/en/2b/07074155bcf26fe10000000a1550b0/content.htm]

Chintan

Former Member
0 Kudos

Hi All,

Adding to the above issue . There is another issue.

When saving the the online PDf after it is executed online i.e. when throws error.

Now executing it offline, PI ( process integration) throws the error

<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>

TEST/QMNUM. Values missing in queue contex

On further investigation with PI consultant, it is known that the one TAG with input field QMNUM is missing i.e..

Proper TAG:

<QMNUM xmlns="">

Wrong Tag:

<QMNUM>

xmlns="" is missing.

In PI terms, the PAYLOAD of web service changes.

But if we save it normally i.e. without executing it ONLINE. Then it can execute the web service properly.

Can someone help me in this regards.

Thanks and Regards,

Aditya Deshpande

Edited by: Aditya Deshpande on Nov 23, 2009 12:16 PM