![]() |
|
ECGridOS Developer Development related posts. |
![]() |
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
![]()
What should I be passing in Name tag when trying to list all networks?
My request of: Code:
<?xml version='1.0' ?> <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"> <env:Header /> <env:Body> <ecg:NetworkList xmlns:ecg="http://ecgridos.net/"> <ecg:SessionID>[session-id]</ecg:SessionID> <ecg:Name></ecg:Name> </ecg:NetworkList> </env:Body> </env:Envelope> Code:
<?xml version="1.0" encoding="UTF-8"?> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <soap:Fault> <soap:Code> <soap:Value>soap:Receiver</soap:Value> </soap:Code> <soap:Reason> <soap:Text xml:lang="en">System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.InvalidCastException: Type mismatch. at Microsoft.VisualBasic.Strings.Len(Object Expression) at api._NetworkInfo(SqlDataReader& reader) at api._NetworkSearch(String Name, Boolean ShowInactive, Boolean ShowOutageOnly) at api.NetworkList(String SessionID, String Name) --- End of inner exception stack trace ---</soap:Text> </soap:Reason> <soap:Detail/> </soap:Fault> </soap:Body> </soap:Envelope> |
#2
|
||||
|
||||
![]()
It can be left blank. The Name parameter allows you to use the function to search for specific networks rather than a complete list.
-=tg=- |
#3
|
|||
|
|||
![]()
Todd,
That is my problem... it CAN'T be left blank. See my SOAP request and what comes back. -elDub |
#4
|
||||
|
||||
![]()
I think there might be bad data in the response, not in the request.
There was a new network added yesterday, and I think that record caused the problem. Let me know if it has been corrected. Thanks. -=tg=- |
#5
|
|||
|
|||
![]()
It is still happening right now.
-elDub |
#6
|
||||
|
||||
![]()
Try one more time, I'm narrowing down the problem. It is definitely a data error on the response, not the request.
-=tg=- |
#7
|
|||
|
|||
![]()
Seems to be working fine now. Thanks!
-elDub |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|