ECGrid Forums  

Go Back   ECGrid Forums > Electronic Commerce > ECGridOS > ECGridOS Developer

ECGridOS Developer Development related posts.

Reply
 
Thread Tools Display Modes
  #1  
Old 03-24-2010, 11:21 AM
elDub elDub is offline
New Member
 
Join Date: Mar 2010
Posts: 16
Default Optional name for NetworkList

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>
gets me:
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. ---&gt; System.InvalidCastException: Type mismatch.
   at Microsoft.VisualBasic.Strings.Len(Object Expression)
   at api._NetworkInfo(SqlDataReader&amp; 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>
Reply With Quote
  #2  
Old 03-24-2010, 02:38 PM
Todd Gould's Avatar
Todd Gould Todd Gould is offline
Loren Data Corp.
 
Join Date: May 2005
Location: Loren Data Corp.
Posts: 303
Send a message via Skype™ to Todd Gould
Default

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=-
Reply With Quote
  #3  
Old 03-24-2010, 03:41 PM
elDub elDub is offline
New Member
 
Join Date: Mar 2010
Posts: 16
Default

Todd,

That is my problem... it CAN'T be left blank. See my SOAP request and what comes back.

-elDub
Reply With Quote
  #4  
Old 03-24-2010, 03:52 PM
Todd Gould's Avatar
Todd Gould Todd Gould is offline
Loren Data Corp.
 
Join Date: May 2005
Location: Loren Data Corp.
Posts: 303
Send a message via Skype™ to Todd Gould
Default

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=-
Reply With Quote
  #5  
Old 03-24-2010, 03:56 PM
elDub elDub is offline
New Member
 
Join Date: Mar 2010
Posts: 16
Default

It is still happening right now.

-elDub
Reply With Quote
  #6  
Old 03-24-2010, 04:01 PM
Todd Gould's Avatar
Todd Gould Todd Gould is offline
Loren Data Corp.
 
Join Date: May 2005
Location: Loren Data Corp.
Posts: 303
Send a message via Skype™ to Todd Gould
Default

Try one more time, I'm narrowing down the problem. It is definitely a data error on the response, not the request.

-=tg=-
Reply With Quote
  #7  
Old 03-24-2010, 04:05 PM
elDub elDub is offline
New Member
 
Join Date: Mar 2010
Posts: 16
Default

Seems to be working fine now. Thanks!

-elDub
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

Forum Jump


All times are GMT -4. The time now is 03:44 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
ECGrid® is a registered service mark of Loren Data Corp.