simpligility / ksoap2-android

ksoap2-android - SOAP support for Android
http://simpligility.github.io/ksoap2-android/
Other
544 stars 247 forks source link

How to solve? #109

Closed mbpz closed 6 years ago

mbpz commented 7 years ago
<_x0032_0170421144049 xmlns=""> 20170422 11010405 1 3 20170422 11020001 1 999 OrderInfo_31301701318557_20170429175900 Above is a webservice request. How to make a soapobject request like this in android?
robocik commented 7 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

Kisty commented 7 years ago

Yeah, definitely use a code generator, not by hand. We used www.wsdl2code.com

mbpz commented 7 years ago

Really? So can you give me a example how to use?

Kisty commented 7 years ago

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.

mbpz commented 7 years ago

My url is in local. Please Select A Valid Wsdl File? Where is the wsdl file? Or how to get the wsdl file?

mbpz commented 7 years ago

I try the SoapUI save in a xml file .It still tell me Please Select A Valid Wsdl File.

Kisty commented 7 years ago

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 .

mbpz commented 7 years ago

Yes

Kisty commented 7 years ago

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 .

mbpz commented 7 years ago

Yes I open the URL ending in .wsdl and save it as document xml.

Kisty commented 7 years ago

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 .

mbpz commented 7 years ago

I tried .But the url is in my local.

mbpz commented 7 years ago

It can not conneting to .

Kisty commented 7 years ago

Try clicking on the file button, then click on "Choose file" to select your local file.

mbpz commented 7 years ago

I try the SoapUI save in a xml file .It still tell me Please Select A Valid Wsdl File.

Kisty commented 7 years ago

What's the url to download the XML?

mbpz commented 7 years ago

It's a local service.

Kisty commented 7 years ago

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 .

robocik commented 7 years ago

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)

mbpz commented 7 years ago

I tried the Android Studio plugin for Easywsdl generator.But It's a Standard.So how to get the Premium plugin?

mbpz commented 7 years ago

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

Kisty commented 7 years ago

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!