Re: Catching SoapException
From: Tom H (TomH_at_discussions.microsoft.com)
Date: 09/13/04
- Next message: Serg Kuryata [MS]: "RE: Transparent control background - wrong layers displayed"
- Previous message: Peter Foot [MVP]: "Re: problem using OpenNetCF SDF Process class"
- In reply to: Tom H: "Re: Catching SoapException"
- Messages sorted by: [ date ] [ thread ]
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
> > >
> >
> >
> >
- Next message: Serg Kuryata [MS]: "RE: Transparent control background - wrong layers displayed"
- Previous message: Peter Foot [MVP]: "Re: problem using OpenNetCF SDF Process class"
- In reply to: Tom H: "Re: Catching SoapException"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|