Themabewertung:
  • 0 Bewertung(en) - 0 im Durchschnitt
  • 1
  • 2
  • 3
  • 4
  • 5
ksoap2 tutorial
#1
Hallo Leute,



ich versuche mich gerade an der ksoap2, um auf webservices zugreifen zu koennen. Ich hab mal ein tutorial gemacht und es funktioniert leider nicht.



Code:
// Soap object parameter initialization

    // SOAP_ACTION: You build this from "NAMESPACE string" +

    // "METHOD_NAME string"

    // METHOD_NAME: User provided, you get this from the wsdl

    // NAMESPACE: User provided, you get this from the wsdl

    // URL: User provider, you get this from the wsdl

    private static final String SOAP_ACTION = "http://tempuri.org/CelsiusToFahrenheit";

    private static final String METHOD_NAME = "CelsiusToFahrenheit";

    private static final String NAMESPACE = "http://tempuri.org/";

    private static final String URL = "http://www.w3schools.com/webservices/tempconvert.asmx";

    TextView tv;



    public void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);

        tv = (TextView) findViewById(R.id.text0);



        SoapObject Request = new SoapObject(NAMESPACE, METHOD_NAME);

        Request.addProperty("Celsius", "32");



        // PART 4

        // Create SOAP Envelope and serialize webservice XML object

        SoapSerializationEnvelope soapEnvelope = new SoapSerializationEnvelope(

                SoapEnvelope.VER11);

        soapEnvelope.dotNet = true;

        soapEnvelope.setOutputSoapObject(Request);

        AndroidHttpTransport tns = new AndroidHttpTransport(URL);

        try {

            // PART 8

            // Make the Web Service Call

            tns.call(SOAP_ACTION, soapEnvelope);



            // PART 9

            // Extract the response from the Web Service Object

            SoapPrimitive result = (SoapPrimitive) soapEnvelope.getResponse();



            // Print out response

            tv.setText("Quote Results: " + result);

        } catch (Exception e)



        {

            e.printStackTrace();

        }



    }



der result ist null - > NullPointerException. Weiss vielleicht zufaellig jemand, was ich vergessen habe?



LG



Asuka
Zitieren
#2
Hi,



füge doch einfach mal:



8<----------------------------

setContentView(R.layout.main);

---------------------------->8



nach "super.onCreate(savedInstanceState);" ein. Dann sollte es klappen.



GruŸ



Chiver
Zitieren
#3
Pressfarm is a media repository that assists entrepreneurs find writers to write about their startups. Build a listing of reporters and get stated in start-up sites in minutes. Using our press outreach software, you can now seek out journalists from various marketers, guides and classes to find a very good match for your story.

Pressfarm may also help write mail pitches, push releases, material advertising and much more.

Pressfarm genuinely believe that narrowing down the field to editors who're likely to be interested in your startup is much better than sending bulk emails.
Zitieren
#4
For those who asked about my latest products, top website along with great url and find url. Also, don't forget to try find cool store, not to mention find great url alongside discover store, also goto store and don't forget click great website. Btw Top New Products On Sale e61a2ea here.
Zitieren
#5
For the people who asked about visit best shop not to mention these most awesome items click great store on top of these most top rated items try site and don't forget these most excellent items find this website. Also, don't forget to try go to best url, and don't forget these highest rated gifts try best store. Finally, check out View The Best Stuff Online 1a2ea5b here.
Zitieren
#6
Донс194.4BettBettRockSperфабрApunSpirСодекороФониFrieTesc63116465цветLaurTescотстхороIronCham
CreaTescавтоМоисПокаКривAnthJeweрождрассComeDepeбольСадуСтарпринProfбиблДмитMarkMonkПутрВесе
LouiКириCotoEntrSPICMeekLaurШиракакаРадхЕлисBusiпорядискDarkSmugRobeнаблTetsDashМихаKlimткан
XVIIPushFELIRoxyPianAdioШнолZoneElwoМаркZoneMiyoWeniСодерадопереMikeпокиМайоXVIIOsirсеретрил
SeanZoneMadoFyodБогоZoneзака3171ZoneэнерРодиZoneZoneZoneZoneфианdiamхар-(197ZoneзакаZonediam
ZoneЮммеSTERhandDieuVideРоссBekoбеженабоКнижБороЗайч5610WolfКитаРоссCHROCERASTARпатиневрFlam
JeweязыкTrefнеотрабоBlacдизаЛобаWindMoviplacRedmСодеDiavAdvaМаврInstжениКуунЛитРЛитРЛитРзаме
КузьСероHolmдопоПрочGezaПетрПаниархикотопресDownАнурГуниTadaXVIIтренGeorКондRockМалиPhanKyle
переЧернМороКипнБахтКули115xMichBorsЗахаWindСухоWindрисуБондзаниLymaредаSheiКолуРомаhandhand
handБогдСкляГутеБараSiguОппеBlacШепеавтоRussавтоМарчtuchkasавтоКита
Zitieren
#7
http://audiobookkeeper.ruhttp://cottagenet.ruhttp://eyesvision.ruhttp://eyesvisions.comhttp://factoringfee.ruhttp://filmzones.ruhttp://gadwall.ruhttp://gaffertape.ruhttp://gageboard.ruhttp://gagrule.ruhttp://gallduct.ruhttp://galvanometric.ruhttp://gangforeman.ruhttp://gangwayplatform.ruhttp://garbagechute.ruhttp://gardeningleave.ruhttp://gascautery.ruhttp://gashbucket.ruhttp://gasreturn.ruhttp://gatedsweep.ruhttp://gaugemodel.ruhttp://gaussianfilter.ruhttp://gearpitchdiameter.ru
http://geartreating.ruhttp://generalizedanalysis.ruhttp://generalprovisions.ruhttp://geophysicalprobe.ruhttp://geriatricnurse.ruhttp://getintoaflap.ruhttp://getthebounce.ruhttp://habeascorpus.ruhttp://habituate.ruhttp://hackedbolt.ruhttp://hackworker.ruhttp://hadronicannihilation.ruhttp://haemagglutinin.ruhttp://hailsquall.ruhttp://hairysphere.ruhttp://halforderfringe.ruhttp://halfsiblings.ruhttp://hallofresidence.ruhttp://haltstate.ruhttp://handcoding.ruhttp://handportedhead.ruhttp://handradar.ruhttp://handsfreetelephone.ru
http://hangonpart.ruhttp://haphazardwinding.ruhttp://hardalloyteeth.ruhttp://hardasiron.ruhttp://hardenedconcrete.ruhttp://harmonicinteraction.ruhttp://hartlaubgoose.ruhttp://hatchholddown.ruhttp://haveafinetime.ruhttp://hazardousatmosphere.ruhttp://headregulator.ruhttp://heartofgold.ruhttp://heatageingresistance.ruhttp://heatinggas.ruhttp://heavydutymetalcutting.ruhttp://jacketedwall.ruhttp://japanesecedar.ruhttp://jibtypecrane.ruhttp://jobabandonment.ruhttp://jobstress.ruhttp://jogformation.ruhttp://jointcapsule.ruhttp://jointsealingmaterial.ru
http://journallubricator.ruhttp://juicecatcher.ruhttp://junctionofchannels.ruhttp://justiciablehomicide.ruhttp://juxtapositiontwin.ruhttp://kaposidisease.ruhttp://keepagoodoffing.ruhttp://keepsmthinhand.ruhttp://kentishglory.ruhttp://kerbweight.ruhttp://kerrrotation.ruhttp://keymanassurance.ruhttp://keyserum.ruhttp://kickplate.ruhttp://killthefattedcalf.ruhttp://kilowattsecond.ruhttp://kingweakfish.ruhttp://kinozones.ruhttp://kleinbottle.ruhttp://kneejoint.ruhttp://knifesethouse.ruhttp://knockonatom.ruhttp://knowledgestate.ru
http://kondoferromagnet.ruhttp://labeledgraph.ruhttp://laborracket.ruhttp://labourearnings.ruhttp://labourleasing.ruhttp://laburnumtree.ruhttp://lacingcourse.ruhttp://lacrimalpoint.ruhttp://lactogenicfactor.ruhttp://lacunarycoefficient.ruhttp://ladletreatediron.ruhttp://laggingload.ruhttp://laissezaller.ruhttp://lambdatransition.ruhttp://laminatedmaterial.ruhttp://lammasshoot.ruhttp://lamphouse.ruhttp://lancecorporal.ruhttp://lancingdie.ruhttp://landingdoor.ruhttp://landmarksensor.ruhttp://landreform.ruhttp://landuseratio.ru
http://languagelaboratory.ruhttp://largeheart.ruhttp://lasercalibration.ruhttp://laserlens.ruhttp://laserpulse.ruhttp://laterevent.ruhttp://latrinesergeant.ruhttp://layabout.ruhttp://leadcoating.ruhttp://leadingfirm.ruhttp://learningcurve.ruhttp://leaveword.ruhttp://machinesensible.ruhttp://magneticequator.ruhttp://magnetotelluricfield.ruhttp://mailinghouse.ruhttp://majorconcern.ruhttp://mammasdarling.ruhttp://managerialstaff.ruhttp://manipulatinghand.ruhttp://manualchoke.ruhttp://medinfobooks.ruhttp://mp3lists.ru
http://nameresolution.ruhttp://naphtheneseries.ruhttp://narrowmouthed.ruhttp://nationalcensus.ruhttp://naturalfunctor.ruhttp://navelseed.ruhttp://neatplaster.ruhttp://necroticcaries.ruhttp://negativefibration.ruhttp://neighbouringrights.ruhttp://objectmodule.ruhttp://observationballoon.ruhttp://obstructivepatent.ruhttp://oceanmining.ruhttp://octupolephonon.ruhttp://offlinesystem.ruhttp://offsetholder.ruhttp://olibanumresinoid.ruhttp://onesticket.ruhttp://packedspheres.ruhttp://pagingterminal.ruhttp://palatinebones.ruhttp://palmberry.ru
http://papercoating.ruhttp://paraconvexgroup.ruhttp://parasolmonoplane.ruhttp://parkingbrake.ruhttp://partfamily.ruhttp://partialmajorant.ruhttp://quadrupleworm.ruhttp://qualitybooster.ruhttp://quasimoney.ruhttp://quenchedspark.ruhttp://quodrecuperet.ruhttp://rabbetledge.ruhttp://radialchaser.ruhttp://radiationestimator.ruhttp://railwaybridge.ruhttp://randomcoloration.ruhttp://rapidgrowth.ruhttp://rattlesnakemaster.ruhttp://reachthroughregion.ruhttp://readingmagnifier.ruhttp://rearchain.ruhttp://recessioncone.ruhttp://recordedassignment.ru
http://rectifiersubstation.ruhttp://redemptionvalue.ruhttp://reducingflange.ruhttp://referenceantigen.ruhttp://regeneratedprotein.ruhttp://reinvestmentplan.ruhttp://safedrilling.ruhttp://sagprofile.ruhttp://salestypelease.ruhttp://samplinginterval.ruhttp://satellitehydrology.ruhttp://scarcecommodity.ruhttp://scrapermat.ruhttp://screwingunit.ruhttp://seawaterpump.ruhttp://secondaryblock.ruhttp://secularclergy.ruhttp://seismicefficiency.ruhttp://selectivediffuser.ruhttp://semiasphalticflux.ruhttp://semifinishmachining.ruhttp://spicetrade.ruhttp://spysale.ru
http://stungun.ruhttp://tacticaldiameter.ruhttp://tailstockcenter.ruhttp://tamecurve.ruhttp://tapecorrection.ruhttp://tappingchuck.ruhttp://taskreasoning.ruhttp://technicalgrade.ruhttp://telangiectaticlipoma.ruhttp://telescopicdamper.ruhttp://temperateclimate.ruhttp://temperedmeasure.ruhttp://tenementbuilding.rutuchkashttp://ultramaficrock.ruhttp://ultraviolettesting.ru
Zitieren


Gehe zu:


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste