i'm currently write a webservice with cxf and i want to consume it
with android.
so i decided to use ksoap2 (with se standard extension).

my android code :

SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
                                request.addProperty("register", "test"); // 
what kind of name may
i need to use?
                        SoapSerializationEnvelope envelope = new
SoapSerializationEnvelope(SoapEnvelope.VER11);
                        envelope.setOutputSoapObject(request);
                        Transport androidHttpTransport = new HttpTransportSE
(URL);
                        androidHttpTransport.debug = true;
                        try {
                                androidHttpTransport.call(SOAP_ACTION, 
envelope);
                            Object result = envelope.bodyIn;
...


my android client send this xml request :

<v:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance";
xmlns:d="http://www.w3.org/2001/XMLSchema"; xmlns:c="http://
schemas.xmlsoap.org/soap/encoding/" xmlns:v="http://
schemas.xmlsoap.org/soap/envelope/"><v:Header /><v:Body><register
id="o0" c:root="1"><register i:type="d:string">test</register></
register></v:Body></v:Envelope>

but my service throw in exception with this message :

INFO  LoggerInterceptor -
------------------------------------------------
| class :
[EMAIL PROTECTED]
| method name : register
| arguments :
| 0 -> null
| exception : parameter is null
| time execution : 0 ms
------------------------------------------------

how may i recieve "test" instead of null from parameter value?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to