Catching SoapException

G

Guest

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.
 
M

Mark Ihimoyan [MSFT]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top