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
BedrockMission!

Learn More

View all

Sign in to view all badges

Handle Complex objects on WSDL!

Avatar

31-12-2008

Hi

I am new to Adobe LiveCycle and trying the trail version. I did have a web service which has a web method that accepts a Person with order collection object as well as it out puts the same.
Here is my person object:

Name,Age,Order[]

Order has ID,Item

When i try to make a data connection and drag and drop fields on to the form, For Order[] It is not holding all the collection values. It is just sending the last collection element values in the order[0]. Always on webservice I am getting ORder[0] element only.

Am I missing something on PDF Forms to set? Can Any one guide me,please?

thanks

Here is my WSDL Types:

-
-

-
-
-




-
-
-





-
-
-
-


-
-
-








-
-
-


-
-
-









Replies

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

05-01-2009

PDF Forms only support simple types through a web service interface.

Avatar

Avatar
Level 2
Tomaž_K_
Level 2

Likes

0 likes

Total Posts

11 posts

Correct Reply

0 solutions
View profile

Avatar
Level 2
Tomaž_K_
Level 2

Likes

0 likes

Total Posts

11 posts

Correct Reply

0 solutions
View profile
Tomaž_K_
Level 2

12-01-2009

So where does that leave us?



Are you saying that there's no way to access a web service with complex input and output messages? Not even with custom written Javascript?

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

13-01-2009

There is no way to create the complex object on the client side. You cannot do a:



var test = new complexObjectType



so I do not see how you can define this new obejct on the client.

Avatar

Avatar
Level 2
Tomaž_K_
Level 2

Likes

0 likes

Total Posts

11 posts

Correct Reply

0 solutions
View profile

Avatar
Level 2
Tomaž_K_
Level 2

Likes

0 likes

Total Posts

11 posts

Correct Reply

0 solutions
View profile
Tomaž_K_
Level 2

14-01-2009

Is it possible to do this with the help of an arrray?



I'm trying to access a web service with document/literal encoding. The problem is that both input and output messages are of complex type.



I also tried using SOAP.connect instead of SOAP.request. I managed to pass a string to my web service and successfully receive the response. So I guess I'll have to go with that.

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

14-01-2009

Strings and simple types are all that you can use.

Avatar

14-01-2009

Thanks for your reply.



Well,Here is the way I got the Complex Type "Person" using PDF (ADOBE LIVECYCLE DESIGNER 8.2),which i mentioned above.



I did drag and drop Name,Age.



And for Order Complex Type - > What I did is I create a sub form and drag ID & Item column into that subform. And bind Subform using object window ->Binding ->"Import/Export Binding (Execute)" to Order object which is in Request. And copy this the number of times that i need on the form.



When I clicked on Execute button the Web Service is getting the appropriate Order collection.



As I said,I am newbie to PDF forms. I have no idea how to bind this using code/script. I will let you guys figure out this.



Hopefully this helps.