Re: Problem calling webservice from CF
From: Ginny Caughey [MVP] (ginny.caughey.online_at_wasteworks.com)
Date: 10/19/04
- Next message: Zac Maclean: "End User Installs"
- Previous message: Ginny Caughey [MVP]: "Re: ComboBox ItemData?"
- In reply to: Bob Flanders: "Re: Problem calling webservice from CF"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 19 Oct 2004 10:34:50 -0400
Bob,
The download site for sp2 describes how to install it:
http://www.microsoft.com/downloads/details.aspx?FamilyID=10600643-09b3-46d8-ba28-bc494bc20d26&displaylang=en
Copy the x86 cab file for sp2 to the emulator (the easiest way is to
temporarily include it in a project as Content) and then run it.
-- Ginny Caughey .Net Compact Framework MVP "Bob Flanders" <noshpam911@hotmail.com> wrote in message news:e1dfb4aa.0410182135.4e021bb@posting.google.com... > Alex, > > Thank you for your speedy response. I've had a reasonbly long > development career, but am quite new at CF development ... just > started this past weekend. > > I have the latest/greatest service pack for CF, but don't quite see > how to get it to load over to the emulator. (I got it from a CD that > MS gave out at a tech seminar they did on Friday in Virginia...) it > had an executable that contained a bunch of netcf.all...cab and > netcf.core...cab files. > > How do you install the things? I tried backing up and overlaying the > similarly-named files in the "program files\microsoft > vs2003\compact...\v1.0.5000" directory, but that don't seem to do the > trick. > > Can you point at some directions on how to install the upgrades, or do > I have to (somehow) copy the cab to the device? If so, how? (I can > establish a connection with the emulator through ActiveSync, but it > doesn't let me copy the file over.) > > Cheers, > -- Bob > > "Alex Feinman [MVP]" <public_news@alexfeinman.com> wrote in message > news:<u53OeeMtEHA.2072@tk2msftngp13.phx.gbl>... >> I think the Element is a reference to a part of the wsdl. >> You may want to upgrade your CF runtime to at least SP2 (you are running >> RTM >> build) or better yet to SP3 beta >> >> -- >> Alex Feinman >> --- >> Visit http://www.opennetcf.org >> "Bob Flanders" <noshpam911@hotmail.com> wrote in message >> news:e1dfb4aa.0410171620.60e4e83a@posting.google.com... >> > Hi all .. >> > >> > I have written a web service using good ol' VS 2003 that works well >> > when consumed by standard .NET Framework clients, but fails when run >> > under the .NETcf. >> > >> > At the highest level, the call fails with an "'Element' is an invalid >> > node type". Using a proxy-server, I've intercepted the request and >> > response. The call gets to the service fine, and the response appears >> > to be in good form. >> > >> > Here's the request: >> > >> > POST /cows/service.asmx HTTP/1.1 >> > User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS .NET CF Web Services >> > Client Protocol 1.0.2268.0) >> > Cache-Control: No-Transform >> > SOAPAction: "urn:test/GetClaimOptions" >> > Content-Type: text/xml; charset=utf-8 >> > Content-Length: 366 >> > Connection: Keep-Alive >> > Expect: 100-continue >> > Host: voyager >> > >> > <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" >> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><GetClaimOptions >> > xmlns="urn:test"><user><UserName>e501499ef0bc81ac</UserName><Password>c8218e2e8e586bd9f27b4af67c82d3a4</Password></user></GetClaimOptions></soap:Body></soap:Envelope> >> > >> > And here's the response: >> > >> > HTTP/1.1 100 Continue >> > Server: Microsoft-IIS/5.1 >> > Date: Sun, 17 Oct 2004 21:16:08 GMT >> > X-Powered-By: ASP.NET >> > >> > HTTP/1.1 200 OK >> > Server: Microsoft-IIS/5.1 >> > Date: Sun, 17 Oct 2004 21:16:08 GMT >> > X-Powered-By: ASP.NET >> > X-AspNet-Version: 1.1.4322 >> > Cache-Control: private, max-age=0 >> > Content-Type: text/xml; charset=utf-8 >> > Content-Length: 803 >> > >> > <?xml version="1.0" encoding="utf-8"?><soap:Envelope >> > xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" >> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Header><wsu:Timestamp >> > xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility"><wsu:Created>2004-10-17T21:16:09Z</wsu:Created><wsu:Expires>2004-10-17T21:21:09Z</wsu:Expires></wsu:Timestamp></soap:Header><soap:Body><GetClaimOptionsResponse >> > xmlns="urn:test"><GetClaimOptionsResult><Errors >> > /><ClaimOptions><ClaimOption><Code>DCP</Code><Description>Discounted</Description></ClaimOption><ClaimOption><Code>IRC</Code><Description>Individualized</Description></ClaimOption></ClaimOptions></GetClaimOptionsResult></GetClaimOptionsResponse></soap:Body></soap:Envelope> >> > >> > The response contains an array of ClaimOption objects that are defined >> > as follows: >> > >> > public class ClaimOption >> > { >> > public string Code; >> > public string Description; >> > } >> > >> > I see no 'Element' node in the response, so I'm not sure why the call >> > fails. >> > >> > I suspect there's some issue with the XmlSerialization. >> > >> > Note: I have no problem calling another web service method that takes >> > a stiring and returns an encrypted version of that string (no complex >> > type passed.) >> > >> > Any thoughts? >> > >> > TIA, >> > -- Bob
- Next message: Zac Maclean: "End User Installs"
- Previous message: Ginny Caughey [MVP]: "Re: ComboBox ItemData?"
- In reply to: Bob Flanders: "Re: Problem calling webservice from CF"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|