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

SOLVED

Web Service Problems in ES2

Avatar

Level 4

Running LC ES2 SP1 on Windows 2008 R2 32-bit server.

I have a form that has multiple web service connections to processes I created in workbench.  I can connect to them fine in workbench and some of them work fine on my form.  I am using the WSDL format http://server:port/soap/services/web%20services/getinfo?wsdl in the data view for the wsdl connection in designer. 

Most of my data connections work like this but some come up with a java error that says:

GeneralError: Operation failed.
XFAObject.execute:1:XFA:topmostSubform[0]:Page1[0]:subformStatChngForm[0]:subformEmployeeInfo[0]:initialize
Error attempting to read from
filehttp://server:port/soap/services/web%20services/getinfo?wsdl

I don't know why it shows "filehttp" or even where that came from.

In my form on the initialize event of the subform I have xfa.connectionSet.GetInfo.execute(0);

I swear ES2 is driving me nuts.  I much rather go back to ES.  Is there any sort of documentation for ES2 and web services?

Thanks!

John

1 Accepted Solution

Avatar

Correct answer by
Level 10

From a technical perspective it does not matter .....from a maintenance perspective it is probably easier to keep them all together.

Paul

View solution in original post

10 Replies

Avatar

Level 10

In workbench if you click on the start point in the process diagram then it will show you all of the defined endpoints. Copy and paste the URL from the SOAP end point into your data connection.

Paul

Avatar

Level 4

Do I need to add a start point for my web service process that I created in 8.2 and carried over into ES2?  I have a form process that I added the Start Point to but wasn't sure about the web service and database calls processes that I created.

Thanks,

John

Avatar

Level 10

No the web service start point will be added automatically ...but the structure of the call has cahnnged. Thats why I

suggested the copy and paste method.

Paul

Avatar

Level 4

Right now I have my web services and data connections in a separate Application in Workbench.  Do you suggest that they remain there or should they be in my application that contains my form and main workflow process?

Thanks,

John

Avatar

Correct answer by
Level 10

From a technical perspective it does not matter .....from a maintenance perspective it is probably easier to keep them all together.

Paul

Avatar

Level 4

Paul,

I am still having an issue with the web services.  It seems though that they are failing on the initialize event of my form.  I normally call my web services with xfa.connectionSet.GetInfo.execute(0);.  This worked in ES 8.2.1.3 but now with ES2 SP1 it's not working.

Any thoughts on this?

Thanks,

John

Avatar

Level 10

I have not seen this type of behaviour .....I suggest that you put the web service button on the form (drag it from the Data Connection tree)  and use script to cause the click event on the button. You can hide the button of course. The script woudl be:

buttonName.execEvent("click")

Let me know the result please.

Paul

Avatar

Level 4

This doesn't work either.  I am still getting the error that it can not read from "filehttp://server:8080/soap/services/getUserInfo?wsdl".  Where is "filehttp" coming from?

Thanks,

John

Avatar

Level 10

I do not know where that is coming from ....I have not seen that error before.

I suggest that you bring up the orchestration in work bench that is the web service. Then open the start point and copy the soap end point wsdl back into your data connection definition.

If that does not work then I can load it on my system and see if I get the same errors. Are you willing to send me the lca files and the forms?

Paul

Avatar

Level 10

Upon further review (I sound like an NFL referee), I see that your wsdl is incorrect ...you have not replcaed the server part with the name of your server. I woudl do that copy and paste of the wsdl from the start point like I mentioned earlier.

paul