Closed mbpz closed 6 years ago
Your web service returns .NET Framework DataSet object which is not supported by other platforms. Of course you can try create soapobject for it but this will be quite hard task. In our EasyWsdl.com generator we have a support for sending/retrieving DataSet object to Android but we have created a special parser for this job. So maybe the easiest solution would be to use the generator
Yeah, definitely use a code generator, not by hand. We used www.wsdl2code.com
Really? So can you give me a example how to use?
You need to click the link and follow the website instructions. It'll generate a bunch of code for you and a way to get data as java objects. I think you just need to tell where the WSDL file is on the server.
My url is in local. Please Select A Valid Wsdl File? Where is the wsdl file? Or how to get the wsdl file?
I try the SoapUI save in a xml file .It still tell me Please Select A Valid Wsdl File.
What's the server you're communicating to? Is it a Windows server?
On Thu, 4 May 2017, 09:22 AndElysion, notifications@github.com wrote:
I try the SoapUI save in a xml file .It still tell me Please Select A Valid Wsdl File.
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/simpligility/ksoap2-android/issues/109#issuecomment-299124081, or mute the thread https://github.com/notifications/unsubscribe-auth/ADF-6OtQK745PdZOCIL6nPpBPdmzmxuAks5r2YrPgaJpZM4NQJSo .
Yes
OK. How did you get the xml that you gave in the first place? Do you have a URL ending in .wsdl?
On Thu, 4 May 2017, 10:23 AndElysion, notifications@github.com wrote:
Yes
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/simpligility/ksoap2-android/issues/109#issuecomment-299136141, or mute the thread https://github.com/notifications/unsubscribe-auth/ADF-6OiEPJORKCwRgTu2MK4mnwFFTgV-ks5r2ZkrgaJpZM4NQJSo .
Yes I open the URL ending in .wsdl and save it as document xml.
Ok. Instead of giving the wsdl file locally, go to www.wsdl2code.com and enter in the url to the WSDL file.
On Thu, 4 May 2017, 10:35 AndElysion, notifications@github.com wrote:
Yes I open the URL ending in .wsdl and save it as document xml.
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/simpligility/ksoap2-android/issues/109#issuecomment-299138648, or mute the thread https://github.com/notifications/unsubscribe-auth/ADF-6NBrKYJ8XA4gj2YWiMpBKQZ8LpB5ks5r2Zv0gaJpZM4NQJSo .
I tried .But the url is in my local.
It can not conneting to .
Try clicking on the file button, then click on "Choose file" to select your local file.
I try the SoapUI save in a xml file .It still tell me Please Select A Valid Wsdl File.
What's the url to download the XML?
It's a local service.
Ah right. What's the WSDL file? Not the XML.
On Thu, 4 May 2017, 14:04 AndElysion, notifications@github.com wrote:
It's a local service.
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/simpligility/ksoap2-android/issues/109#issuecomment-299179003, or mute the thread https://github.com/notifications/unsubscribe-auth/ADF-6NsVO6RJCI8NPnL1oelkhLkNHis6ks5r2czegaJpZM4NQJSo .
If your Web service is local then if you would like to use EasyWSDL.com generator, you can install Android Studio plugin for EASYWSDL generator. Using this plugin you should be able to generate classes from your local Web service. Please ensure to select Enable DataSet support option (support for DataSet requires license for additional library. If you are interested, please contact with easywsdl.com support)
I tried the Android Studio plugin for Easywsdl generator.But It's a Standard.So how to get the Premium plugin?
Result: Total Generated Classes: 3 Total Generated Methods: 10 Time you've saved: 6.5 hours
Warnings: Wsdl2Code Don't Support DataSet Variables , in class Wsdl2Code Don't Support XmlNode Variables , in class The Wsdl2Code Engine Don't Support byref Variables , in class Wsdl2Code Don't Support String& Variables , in class
Hmm, I think @robocik said you have dataset variables, but easywsdl does. I'd recommend you pay for the premium package so you can get those DataSet variables. Perhaps get the 30 day or larger package so you can use again if the server changes. It'll be money well spent!