FOrgot to mention this is a .NET Webservice running on my local
environment.



On Sep 2, 4:31 pm, Francisco <[EMAIL PROTECTED]> wrote:
> Hi everybody!
>
> I finally was able to call the web service i wanted from my
> application, i have a problem now.
>
> The String i get from the response method is removing my xml tags. I
> get Strings like the following:
>
> <?xml version="1.0" encoding="utf-8"?>
> <string xmlns="http://tempuri.org/";>&lt;STKDV&gt;&lt;TABLEDEF
> NAME="authors"&gt;
>
> Instead of:
>
>   <?xml version="1.0" encoding="utf-8" ?>
>   <string xmlns="http://tempuri.org/";><STKDV><TABLEDEF NAME="authors">
>
> Does anyboydy knows hows to aviod this or why is this happening? if i
> call the web service from ksoap this doesnt happens but my ksoap
> project doest work since the new SDK.
>
> Any help that you could give me will be appreciated.
>
> Thanks
>
> Francisco Ortega
>
> On Sep 2, 12:20 pm, Francisco <[EMAIL PROTECTED]> wrote:
>
>
>
> > Thanks a Lot Mark!
>
> > I Finally was able to make it work! i had a while without working with
> > the new SDKs so i didnt know that permission was added. Thank you!.
> > By the way. I am getting a new error now.
>
> > <?xml version="1.0" encoding="utf-8"?><soap:Envelope
> > xmlns:soap="http://www.w3.org/2003/05/soap-envelope"; 
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> > xmlns:xsd="http://www.w3.org/2001/
> > XMLSchema"><soap:Body><soap:Fault><soap:Code><soap:Value>soap:Receiver</
> > soap:Value></soap:Code><soap:Reason><soap:Text
> > xml:lang="en">System.Web.Services.Protocols.SoapException: Server was
> > unable to process request. ---&gt; System.Xml.XmlException: Root
> > element is missing.
> >    at System.Xml.XmlTextReaderImpl.Throw(Exception e)
> >    at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
> >    at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
> >    at System.Xml.XmlTextReaderImpl.Read()
> >    at System.Xml.XmlTextReader.Read()
> >    at
> > System.Web.Services.Protocols.SoapServerProtocol.SoapEnvelopeReader.Read()
> >    at System.Xml.XmlReader.MoveToContent()
> >    at
> > System.Web.Services.Protocols.SoapServerProtocol.SoapEnvelopeReader.MoveToC­­ontent()
> >    at
> > System.Web.Services.Protocols.SoapServerProtocolHelper.GetRequestElement()
> >    at
> > System.Web.Services.Protocols.Soap12ServerProtocolHelper.RouteRequest()
> >    at
> > System.Web.Services.Protocols.SoapServerProtocol.RouteRequest(SoapServerMes­­sage
> > message)
> >    at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
> >    at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type
> > type, HttpContext context, HttpRequest request, HttpResponse response,
> > Boolean&amp; abortProcessing)
> >    --- End of inner exception stack trace ---</soap:Text></
> > soap:Reason><soap:Detail /></soap:Fault></soap:Body></soap:Envelope>
>
> > Do you have any idea why this could be happening? My web service
> > returns the following:
> >   <?xml version="1.0" encoding="utf-8" ?> <string xmlns="http://
> > tempuri.org/">
> > <STKDV><TABLEDEF NAME="authors"><COLUMNS><COL NAME="au_id" DBTYPE
> > ="varchar"/><COL NAME="au_lname" DBTYPE ="varchar"/><COL
> > NAME="au_fname" DBTYPE ="varchar"/><COL NAME="phone" DBTYPE 
> > ="varchar"/><COL NAME="address" DBTYPE ="varchar"/><COL NAME="city" DBTYPE
>
> > ="varchar"/><COL NAME="state" DBTYPE ="varchar"/><COL NAME="zip"
> > DBTYPE ="varchar"/><COL NAME="contract" DBTYPE ="integer"/></COLUMNS>
> > <ROWS><ROW>
> > <C>172-32-1176</C><C>White</C><C>Johnson</C><C>408 496-7223</
> > C><C>10932 Bigge Rd.</C><C>Menlo Park</C><C>CA</C><C>94025</C><C>True</
> > C></ROW><ROW><C>213-46-8915</C><C>Green</C><C>Marjorie</C><C>415
> > 986-7020</C><C>309 63rd St. #411</C><C>Oakland</C><C>CA</C><C>94618</
> > C><C>True</C>
> > </ROW></ROWS></TABLEDEF></STKDV></string>
>
> > On Sep 2, 10:59 am, Mark Murphy <[EMAIL PROTECTED]> wrote:
>
> > > Francisco wrote:
> > > > I have just double checked and i always get a SocketException with an
> > > > "Unknown error" Detailed messase.
>
> > > > Do you have any idea what could it be?
>
> > > Do you have the INTERNET permission in your AndroidManifest.xml? I think
> > > that, er, manifests as this error.
>
> > > <uses-permission android:name="android.permission.INTERNET" />
>
> > > --
> > > Mark Murphy (a Commons Guy)http://commonsware.com
> > > Warescription: All titles, revisions, & ebook formats, just $35/year- 
> > > Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
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