Hello Jmd
i belive ur trying to consume .net web service with method name getsales()
in android
if true try

public String getUsername()
{
String strusername="";
try
{

final String METHOD_NAME = "getUserName";
final String NAMESPACE = AndroidLogin.ActualServerUrl + "FIQServer.jws/";
final String SOAP_ACTION = AndroidLogin.ActualServerUrl +
"FIQServer.jws/getUserName";
final String URL =AndroidLogin.ActualServerUrl + "FIQServer.jws?wsdl";

SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); //set up
request
String strUserNo=AndroidLogin.userNo.toString().trim();
request.addProperty("userNo",strUserNo);
SoapSerializationEnvelope envelope = new
SoapSerializationEnvelope(SoapEnvelope.VER11 ); //put all required data
into a soap envelope
envelope.setOutputSoapObject(request);
HttpTransportSE     httpTransport = new HttpTransportSE(URL);
httpTransport.debug = true;
httpTransport.call(SOAP_ACTION, envelope);

strusername=envelope.getResponse().toString();

String[] strname=strusername.split(" ");

strusername=strname[0];

}

catch(Exception e)
{}
return strusername;


}


else
use google ()

Tx
RK

On Wed, Oct 3, 2012 at 5:32 PM, Re JMD <[email protected]> wrote:

> I'm trying use SoapSerializationEnvelope but in object serialized i can't
> get properties of another object, the list of objects returned contains
> this references:
>
>         [WebMethod]
>         public List<estabelecimento> getSales()
>         {
>             Teste teste = new Teste();
>             List<Sales> saleslist= teste.getSales();
>
>             return saleslist;
>         }
>
>
>
> 2012/10/3 TreKing <[email protected]>
>
>> On Tue, Oct 2, 2012 at 10:23 PM, Re JMD <[email protected]> wrote:
>>
>>> How to get this information to webservice, is there any way to serialize
>>> the object?
>>
>>
>> This has zero to do with Android.
>>
>>
>> -------------------------------------------------------------------------------------------------
>> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
>> transit tracking app for Android-powered devices
>>
>>  --
>> 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]
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>  --
> 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]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to