PC Review


Reply
Thread Tools Rate Thread

Catching SoapException

 
 
=?Utf-8?B?VG9tIEg=?=
Guest
Posts: n/a
 
      10th Sep 2004
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

 
Reply With Quote
 
 
 
 
Mark Ihimoyan [MSFT]
Guest
Posts: n/a
 
      11th Sep 2004
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" <(E-Mail Removed)> wrote in message
news:26EC6919-09E0-4C84-A907-(E-Mail Removed)...
> 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
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
catch Custom SoapException Giulio Microsoft ASP .NET 0 6th Jun 2006 04:39 PM
SOAPException and Browser Jerry Q Microsoft ASP .NET 0 16th Jan 2006 04:10 PM
SoapException Dan Diephouse Microsoft Dot NET Compact Framework 7 30th Aug 2004 06:56 PM
SoapException when connecting to Oracle sidney Microsoft ADO .NET 4 3rd Jan 2004 01:00 AM
Inherit from soapException Flare Microsoft ASP .NET 9 24th Oct 2003 09:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:04 PM.