This web service is used by several services (dotNet applications and
iPhone) and therefore cannot be changed, also the dataset parameter is
sensible for the purpose.

I have decided to create a wrapper function in the web service that accepts
in a string representation of the dataset, this function will then create
the dataset from the xml string and then call the original service.

its just a shame that KSoap cannot handle this.

Thanks
Dave


2009/10/21 gjs <[email protected]>

>
> Hi,
>
> Or modify the webservice to accept something more sensible...
>
> Regards
>
> On Oct 20, 7:45 pm, Dave Gracie <[email protected]> wrote:
> > Thats actually the first thing I tried. I passed in the ms soap version
> of
> > the dataset but still didnt work.
> >
> > I think I only have one option and that is to build up the soap request
> > (xml) manually and post it myself, removing teh need for KSoap.
> >
> > 2009/10/19 gjs <[email protected]>
> >
> >
> >
> > > Hi again,
> >
> > > You could reverse engineer this to some extent by generating a proxy
> > > for a client of the webservice then use ,something like wire shark to
> > > monitor/capture what is passed between the client and the webservice.
> > > I guess it might be an xml representation of the Dataset that gets
> > > passed. You can facilitate this if you have an instance of a Dataset
> > > by outputing/saving itself in XML format. This would all be done in
> > > a .net environment. After this you could work out what an android
> > > implementation of a client would need to pass and whether ksoap can
> > > help. As you probably know a ms Dataset is a heavy weight
> > > representation of a database or partial database including a schema
> > > definition, an object that cannot be 'instantiated' in java, which is
> > > generally used in a homogeneous .net environment.
> >
> > > Webservices like a lot of other things suffer a Microsoft
> > > implementation and other open source implementations which are by (ms)
> > > design deliberately incompatible...
> >
> > > Regards
> >
> > > On Oct 19, 10:47 pm, Dave Gracie <[email protected]> wrote:
> > > > I might try emailing the guy who did the android ksoap port directly.
> >
> > > > the second parameter is just the value of the parameter. My issue is
> what
> > > > structure / format should that value be to correctly send a dataset.
> >
> > > > Thanks for the help.
> > > > Dave
> >
> > > > 2009/10/19 konic <[email protected]>
> >
> > > > > You may try to ask this question directly to the android port of
> ksoap
> > > > > (http://code.google.com/p/ksoap2-android/)
> > > > > Next, if you look in ksoap2 docs (
> http://ksoap2.sourceforge.net/doc/
> > > > > api/org/ksoap2/serialization/SoapObject.html<
> > >http://ksoap2.sourceforge.net/doc/%0Aapi/org/ksoap2/serialization/Soa..
> .>
> > > > > )
> > > > > you'll see that in fact second parameter in addProperty() is
> Object.
> >
> > > > > On 19 окт, 04:56, Dave <[email protected]> wrote:
> > > > > > Hi
> >
> > > > > > Thanks for the response. Its not an issue with the webservice as
> this
> > > > > > works fine. the issue is with how I go about creating the ksoap
> > > > > > parameter to be passed to the webservice. Simple types suck as
> > > > > > strings, ints etc.. are fine. but the complex type of a dataset
> just
> > > > > > isnt as straight forward.
> >
> > > > > > I just thought that someone may have had this problem with ksoap
> > > > > > before.
> >
> > > > > > Thanks
> > > > > > Dave
> >
> > > > > > On Oct 19, 7:45 am, gjs <[email protected]> wrote:
> >
> > > > > > > Hi,
> >
> > > > > > > I'd think your asking in the wrong forum, a (microsoft
> proprietary)
> > > > > > > Dataset object is usually associated with .net development.
> >
> > > > > > > Where would your microsoft Dataset object be coming from for
> you to
> > > > > > > send it from an android device to a dotnet webservice ?
> >
> > > > > > > Suggest you try more googling eg -
> >
> > >http://www.blackberryforums.com/developer-forum/178964-25-00-someone-.
> > > > > ..
> >
> > > > > > >http://osdir.com/ml/java.enhydra.ksoap/2003-07/msg00009.html
> >
> > > > > > > Regards
> >
> > > > > > > On Oct 19, 6:47 am, Dave <[email protected]> wrote:
> >
> > > > > > > > Folks
> >
> > > > > > > > I know there are quite a few examples of accessing dotnet
> > > webservices
> > > > > > > > that return a dataset. I cannot find any examples there the
> > > > > webservice
> > > > > > > > method requires a dataset as a parameter. i.e.
> >
> > > > > > > > dotNet webservice:
> >
> > > > > > > > <WebMethod()> _
> > > > > > > > Public Function TestWS(ByVal ds As DataSet) As String
> > > > > > > >    Return ds.Tables.Count & " Tables in dataset"
> > > > > > > > End Function
> >
> > > > > > > > I have tried adding the parameter of xml string of the
> dataset by
> > > > > > > > capturing the http post content of a dotNet web page and
> > > extracting
> > > > > > > > the relevant section for the parameter without any success.
> This
> > > > > > > > included the schema but neither having this there or not made
> any
> > > > > > > > difference.
> >
> > > > > > > > I have also just tried creating a simple xml structure but
> still
> > > > > > > > nothing.
> >
> > > > > > > >    rpc.addProperty("ds","<ds><t1><f1>blah</f1></t1></ds>");
> >
> > > > > > > > If anyone has any ideas it would be appreciated, I really
> dont
> > > want
> > > > > to
> > > > > > > > go down the route of creating the soap xml and posting it
> myself.
> >
> > > > > > > > Thanks in advance
> > > > > > > > Dave
> >
>

--~--~---------~--~----~------------~-------~--~----~
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