WISH: WSDL Class Builder

varisol

New Member
Licensed User
Longtime User
Hi everybody

This one ist one of the most time saving features, I can imagine, when writing applications for mobile devices which usually operate via webservices with backend applications: I desperatly hope for a class generator by WSDL files for basic4android just like referencing webservices in visual studio. In my case I try to write applications for storagemangement using tons of published webservices of ms dynamics nav.

I hope this productivity boosting feature is on the radar at Anyware Software.

Regards,
Walter
 

robh

Member
Licensed User
Longtime User
wsdl class builder

Loving this product, I also have to interacting with soap webservices and am finding the task of parsing the response xml to be the most time consuming(and frustrating) element of development. It would be great if there was something similar to the proxy class wsdl builder tool in visual studio. Failing that, is there an easy way to parse the returned xml in one single operation rather than rely on the very primitive xml parser as I am currently following this pattern.

Initialize class
Start of xml parse loop
Inspect element name
Assign text value to matching class property
End of loop

The above seems a little messy especially when dealing with lots of nested collections as I have to start including all kinds of conditional checks on element names and manipulate my classes. Ideally it would be great to be able to write some kind of generic parser that builds/populates a class automatically,anybody know if this could this be achieved?
 

Jost aus Soest

Active Member
Licensed User
Longtime User
Searched: WSDL to B4A

@Erel: I think, the OP is looking for something like a WSDL to B4A pre-compiler!

This feature exists for example for Java, where you enter the URL of a Webservice, the WSDL-file behind the scenes is automagically analyzed and finally it produces a ready to use Java class with real properties and methods.

So it's no more necessary to do any internet call, xml parsing and/or string arithmetics by own code. (You can use the generated class much like a B4A-library.)

Some hints:
Apache CXF -- WSDL to Java
WebServices - Axis
 

Steini1980

Active Member
Licensed User
Longtime User
Hi Erel,

is something like this on your Roadmap or is something like this implemented yet? I'm thinking about creating an external Service to Build automatically a B4A wrapper class based on WSDL.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…