karlmdavis / ksoap2-android Goto Github PK
View Code? Open in Web Editor NEWA fork of the ksoap2 library (http://ksoap2.sourceforge.net/) to support the Android platform.
Home Page: http://code.google.com/p/ksoap2-android
License: MIT License
A fork of the ksoap2 library (http://ksoap2.sourceforge.net/) to support the Android platform.
Home Page: http://code.google.com/p/ksoap2-android
License: MIT License
Hello,
I want to show a progress bar while downloading a file but I can't know the amount of downloaded byte.
can you help me please.
I'm soap for billing api.
WSDL URL : http://94.206.70.106:8181/cxf/services/UnifiedPartner?wsdl
My request is :
<?xml version="1.0" encoding="UTF-8"?>
<v:Envelope xmlns:v="http://schemas.xmlsoap.org/soap/envelope/" xmlns:c="http://schemas.xmlsoap.org/soap/encoding/" xmlns:d="http://www.w3.org/2001/XMLSchema" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<v:Header />
<v:Body>
<purchaseConsumeProduct xmlns="https://94.206.70.106:8181/">
<userId>97XXXXXXX</userId>
<serviceId>S-KXXXXX</serviceId>
<premiumResourceType>MP-xxx-xx-xxxx-Sub-B2-D-xx</premiumResourceType>
<productId>Daily MAP Test Sub V2 IN</productId>
<purchaseMetas>
<key>du:assetDescription</key>
<value>Subscription</value>
</purchaseMetas>
<!--Zero or more repetitions:-->
<billingMetas>
<key>du:assetID</key>
<value>-</value>
</billingMetas>
<billingMetas>
<key>du:contentType</key>
<value>mobileApp</value>
</billingMetas>
<billingMetas>
<key>du:channel</key>
<value>COMMERCE_API</value>
</billingMetas>
<!--Zero or more repetitions:-->
<usageMetas>
<key>du:externalid</key>
<value>S-XXXXXX</value>
</usageMetas>
</purchaseConsumeProduct>
</v:Body>
</v:Envelope>
But they need like below
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.api.sdp.ericsson.com/">
<soapenv:Header/>
<soapenv:Body>
<ws:purchaseConsumeProduct>//Method name
<userId>97XXXXXXX</userId>
<serviceId>S-KXXXXX</serviceId>
<premiumResourceType>MP-xxx-xx-xxxx-Sub-B2-D-xx</premiumResourceType>
<productId>Daily MAP Test Sub V2 IN</productId>
<purchaseMetas>
<key>du:assetDescription</key>
<value>Subscription</value>
</purchaseMetas>
<!--Zero or more repetitions:-->
<billingMetas>
<key>du:assetID</key>
<value>-</value>
</billingMetas>
<billingMetas>
<key>du:contentType</key>
<value>mobileApp</value>
</billingMetas>
<billingMetas>
<key>du:channel</key>
<value>COMMERCE_API</value>
</billingMetas>
<!--Zero or more repetitions:-->
<usageMetas>
<key>du:externalid</key>
<value>S-XXXXXX</value>
</usageMetas>
</ws:purchaseConsumeProduct>
</soapenv:Body>
</soapenv:Envelope>
How i can achieve above request with Ksoap.I have tried lots of way but not got any success.
Please help me here.
On clean checkout as of today doing a mvn clean install results in two test failures.
testFaultDeserialize(org.ksoap2.SoapFaultTest)
testFaultSerialize(org.ksoap2.SoapFaultTest)
let me know if you need more details.
Background: The client bought a Galaxy S III mini (GT-I8190L), using Android 4.1.2, and wants to run his app... the app connects to a tomcat server which serves soap 1.1.
Under wireless everything goes smoothly, but under 3G the HTTP status 400 is returned, as if java.net.HttpURLConnection simply didn't like the request.
Wrote a few tests with GET method and POST method, both work under wifi, but POST fails with 3G...
I didn't test SSL, but I think google messed it up too.
So, that's the bomb. How do we solve it? I'm out of ideas.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.