K
Ken Yee
Is there any way to debug into the web service proxy in asp.net 2.x?
You used to be able to do this in asp.net 1.1 and you could fix the proxy
if need be. This seems like a bug in the proxy generator
This API works fine most of the time, but occasionally get stuck where it
always gives an HTTP 400 Bad Request error for a certain data structure
that looks fine to me (they're all serializable objects of null, integer,
string, and datetime).
Stack dump is fairly useless:
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse
(SoapClientMessage message, WebResponse response, Stream responseStream,
Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
at Mycode.ReplicationService.addObject(ReplicationTable tableName,
ReplObj obj) in F:\work\ASSEMBLYSRC\Site\Web References\Replication
\Reference.vb:line 354
ReplObj is a simple array of name/value pairs.
When I look at the exception in the debugger, the targetsite exception
states:
Method may only be called on a Type for which Type.IsGenericParameter is
true.
at System.RuntimeType.get_DeclaringMethod()
Well..that's not too useful w/o me knowing what it's trying to parse and
what method and type it's having problems with :-(
Any other suggestions on what to do with this short of sticking a network
analyzer on it and making sure the soap/xml packets look ok? It's the
latest version of asp.net 2.0 if that matters...
ken
You used to be able to do this in asp.net 1.1 and you could fix the proxy
if need be. This seems like a bug in the proxy generator
This API works fine most of the time, but occasionally get stuck where it
always gives an HTTP 400 Bad Request error for a certain data structure
that looks fine to me (they're all serializable objects of null, integer,
string, and datetime).
Stack dump is fairly useless:
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse
(SoapClientMessage message, WebResponse response, Stream responseStream,
Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
at Mycode.ReplicationService.addObject(ReplicationTable tableName,
ReplObj obj) in F:\work\ASSEMBLYSRC\Site\Web References\Replication
\Reference.vb:line 354
ReplObj is a simple array of name/value pairs.
When I look at the exception in the debugger, the targetsite exception
states:
Method may only be called on a Type for which Type.IsGenericParameter is
true.
at System.RuntimeType.get_DeclaringMethod()
Well..that's not too useful w/o me knowing what it's trying to parse and
what method and type it's having problems with :-(
Any other suggestions on what to do with this short of sticking a network
analyzer on it and making sure the soap/xml packets look ok? It's the
latest version of asp.net 2.0 if that matters...
ken