Re: Catching SoapException

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Tom H (TomH_at_discussions.microsoft.com)
Date: 09/13/04


Date: Mon, 13 Sep 2004 14:19:01 -0700

Mark,

Update on the WebException that was thrown in the emulator when running SP2:
After installing SP2 on the emulator, I had to update my Connections
settings to only connect to "My Work Network" since my end point is not
public. Once that correction was made, the result was the same as the device.

Regards.

"Tom H" wrote:

> Mark,
>
> Thanks for your reply.
>
> I performed additional testing using different CF versions on both the
> emulator and device. It was definitely a CF version issue. When I started,
> the emulator was running version 1.0.2268.0 (RTM) and the device was running
> version 1.0.3111.0 (SP1). As I said in my previous post, the emulator
> correctly displayed the SoapException message but the device did not.
>
> Here are the results of my tests:
> CF version 1.0.2268.0 (RTM) - SoapException message correctly displayed in
> the emulator. Running the code sample below on the emulator the debugger
> shows "ex" as type System.Exception whose value is
> {System.Web.Services.Protocols.SoapException}. I could not test this version
> of the CF on the device since SP1 is in ROM.
>
> CF version 1.0.3111.0 (SP1) - SoapException message not displayed on the
> emulator nor the device. Running the code sample below on both the device
> and the emulator the debugger shows "ex" as type System.Exception whose value
> is {System.Xml.XmlException}.
>
> CF version 1.0.3316.0 (SP2) - SoapException message correctly displayed on
> the device but not the emulator. Running the code sample below on the device
> the debugger shows "ex" as type System.Exception whose value is
> {System.Web.Services.Protocols.SoapException}. The emulator showed "ex" as
> type System.Exception whose value is {System.Net.WebException}.
>
> I intend to deploy the completed app to SP2 devices but I'm curious as to
> why it wouldn't work in the emulator after I upgraded the emulator to SP2.
>
> "Mark Ihimoyan [MSFT]" wrote:
>
> > This does not seem to be a known issue.
> > Do you mind posting some more information that could help me set up a repro
> > so I can look deeper into this.
> > e.g. your end point (if it is publicly exposed), sample client code that
> > calls the method that throws the web exception, if you have this running
> > under a soap trace you could also post the soap message that is returned
> > from the server.
> >
> > BTW what are you using the same version of CF on both device and emulator?
> >
> > Thanks.
> >
> > "Tom H" <TomH@discussions.microsoft.com> wrote in message
> > news:26EC6919-09E0-4C84-A907-DE0B2900F6FF@microsoft.com...
> > > I'm developing a PPC 2003 client that consumes a web service that simply
> > > returns the text entered into a text box. It's a trivial app we are using
> > to
> > > test WLAN communications between the client and our server (iSeries
> > > WebSphere). Everything is working correctly except the remote exceptions
> > > thrown as soap exceptions.
> > >
> > > What I don't understand why I can catch the SoapException in the PPC 2003
> > > emulator but not on the PPC 2003 device.
> > >
> > > Here's the client code:
> > > Dim WebSvc As New WebReference.WebServiceTestService
> > >
> > > Try
> > > Me.TextBox2.Text = WebSvc.SendRequest(Me.TextBox1.Text)
> > > Catch ex As Exception
> > > MessageBox.Show(ex.Message)
> > > End Try
> > >
> > > When running in the emulator the debugger shows ex.Message with the
> > correct
> > > value "java.rmi.RemoteException: My test error message."
> > >
> > > When running on the device the debugger show ex.Message with the value "A
> > > namespace for the prefix has not been declared."
> > >
> > > Thanks in advance.
> > > --
> > > Thomas Hall
> > >
> >
> >
> >



Relevant Pages

  • Re: Pocket PC Emulator does NOT work with windows xp sp2
    ... I will parse this information as soon as the project is over. ... The following is to amd/ microsoft/microsoft pocket pc / hp designers. ... emulator environment has been disabled MUST ... >> get devices disabled when windows xp pro sp2 boots. ...
    (microsoft.public.pocketpc.developer)
  • Re: Is SP2 Installed?
    ... I was able to install SP2 on my device by downloading and ... running the SP2 redistributable installer. ... How do I update the Pocket PC 2003 Emulator running ... I have read say to copy the CAB file to the emulator then run it on the ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Deploy VB.NET 2003 to Pocket PC 2002 & 2003
    ... yes i am using XP Sp2 but already disabled the firewall ... ... After i install the loopback adapter i had got LAN 3- ... > in the XP SP2 Security Center, hard reset your emulator, and give it another ...
    (microsoft.public.pocketpc.developer)
  • Re: Backcolor issue... Compact FrameWork 1.0 SP2, VS2003 and Pocke
    ... Sounds like you need to update the emulator with SP2. ... One way is to include the appropriate CAB file as ... > "Tim Wilson" wrote: ...
    (microsoft.public.pocketpc.developer)
  • Re: How can we apply .NETCF SP2 to CF included in visual studio 2003?
    ... Since SP2 makes no difference to the available methods and properties in the ... Compact Framework the only thing you need to do is install SP2 on your ... on your developer machine you should be able to find the following cab file ... version of SP2 that is used on the PPC 2002 emulator. ...
    (microsoft.public.pocketpc.developer)