Hello,
here i created URL dynamically in my code like this......
String query = "" + ServiceUtils.KEY_methodnameForPlaceOrder + "=" +
ServiceUtils.KEY_PlaceOrderMethodName + "&" + ServiceUtils.KEY_InstanceId +
"=" + request.instanceID + "&" +ServiceUtils.KEY_CustomerId + "="
+request.CustomerID + "&" + ServiceUtils.KEY_TableIdForPlaceOrder + "="
+request.tableID + "&" +ServiceUtils.KEY_QuantityandItemId + "=" +xyz ;
here "xyz" which is at the last of query content jsonarray like
this:[{"id":5,"Quantity":4,"comment":""}]
now whwnever i am create uri usaing URIUtils.CreateUri it will return me
null then what is the problem i don't know?
uri = URIUtils.createURI(ServiceUtils.SCHEME, ServiceUtils.HOST,
ServiceUtils.PORT, ServiceUtils.GetAllMenuCategoriesService_PATH_ABSTRACT,
query, ServiceUtils.FRAGMENT);
can anyonehelp me?
My url is like this::
and finally my url like this:
http://192.168.1.4:55106/Waiter_json.aspx?MethodName=InsertOrderForTable&InstanceId=1&CustomerId=1&TableID=5&quantityAndItemID=[{
"id":5,"Quantity":4,"comment":""}
I have to send this jsonarray to my webservice but it can't work bcz of the
above problem.
--
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