K
Khanh
hi all,
We are developing a Pocket PC App for our client for months, and it
is going to delivering phase. But we are finding a big trouble with
calling webservice stably. Could experienced professionals help us?
Our model app as follows: Pocket PC < -- > Webservice < -- >
Database Server (SQL Server 2000, Oracle 7.3.4). Generally, calling
webservice from PDA meets many abnormal phenomenon, it can run
smoothly for a long period (many hours, many days), then SOMETIMES it
can't call webservice. Errors which is often returned are :
..
1) Since we use the mechanism of session from PDA, that means we must
use cookieless mode, we have to try, catch to change Webserivce URL,
then HTTPWebResponse return NOTHING.
Try
intValidLogin = g_wsMobileWebServices.Login(strUserName,
strPassWord)
Catch ex As Net.WebException
Dim httpResponse As HttpWebResponse = CType(ex.Response,
HttpWebResponse)
If httpResponse.StatusCode = HttpStatusCode.Found Then
g_wsMobileWebServices.Url = (New Uri(New
Uri(g_wsMobileWebServices.Url),
httpResponse.Headers("Location")).AbsoluteUri)
intValidLogin = g_wsMobileWebServices.Login(strUserName,
strPassWord)
End If
End try
2) If creating a session successfully , second error is Web exception:
Unable to read data from transport connection.
Dim ds as dataset = g_wsMobileWebServices.GetCustomerData()
The most important thing is these problems do not happen if calling
the identical webservice from Windows Application.
We tried to do as follows for smooth connection:
- Rebuild webservice
- Update webreference from Pocket PC App
- Rebuild Pocket PC App.
But it is still not stably.
FYI: Pocket PC Fujitsu Loox, Webserver Windows Server 2003,
Developing machine WinXP, Active Syn
Could anyone who has much experience instructs us more clearly. Any
help would be very appreciated.
Nguyen Truong Khanh
Project Leader
FPT Software
We are developing a Pocket PC App for our client for months, and it
is going to delivering phase. But we are finding a big trouble with
calling webservice stably. Could experienced professionals help us?
Our model app as follows: Pocket PC < -- > Webservice < -- >
Database Server (SQL Server 2000, Oracle 7.3.4). Generally, calling
webservice from PDA meets many abnormal phenomenon, it can run
smoothly for a long period (many hours, many days), then SOMETIMES it
can't call webservice. Errors which is often returned are :
..
1) Since we use the mechanism of session from PDA, that means we must
use cookieless mode, we have to try, catch to change Webserivce URL,
then HTTPWebResponse return NOTHING.
Try
intValidLogin = g_wsMobileWebServices.Login(strUserName,
strPassWord)
Catch ex As Net.WebException
Dim httpResponse As HttpWebResponse = CType(ex.Response,
HttpWebResponse)
If httpResponse.StatusCode = HttpStatusCode.Found Then
g_wsMobileWebServices.Url = (New Uri(New
Uri(g_wsMobileWebServices.Url),
httpResponse.Headers("Location")).AbsoluteUri)
intValidLogin = g_wsMobileWebServices.Login(strUserName,
strPassWord)
End If
End try
2) If creating a session successfully , second error is Web exception:
Unable to read data from transport connection.
Dim ds as dataset = g_wsMobileWebServices.GetCustomerData()
The most important thing is these problems do not happen if calling
the identical webservice from Windows Application.
We tried to do as follows for smooth connection:
- Rebuild webservice
- Update webreference from Pocket PC App
- Rebuild Pocket PC App.
But it is still not stably.
FYI: Pocket PC Fujitsu Loox, Webserver Windows Server 2003,
Developing machine WinXP, Active Syn
Could anyone who has much experience instructs us more clearly. Any
help would be very appreciated.
Nguyen Truong Khanh
Project Leader
FPT Software