Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Problem With Web service

Problem With Web service

Scheduled Pinned Locked Moved ASP.NET
helpcsswcfsysadminxml
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    prabhakar dwivedi
    wrote on last edited by
    #1

    Hi all I am accessing a web service method, while accessing this i gt Error message like Server was unable to process request. --> Length cannot be less than zero. Parameter name: length:mad::mad::mad::mad::mad::mad: Please help me out what is the problem Web service methos is below obj.Exe(string Command,object[] FieldName,object[] Fieldvalue) soap:Body <Ex xmlns="http://tempuri.org/"> <Name>string</Name> <FieldNames> <anyType /> <anyType /> </FieldNames> <FieldValues> <anyType /> <anyType /> </FieldValues> </SBP_Execute> </soap:Body> </soap:Envelope> Please let me know the problem why the error come :( :( :( :( :( :( :( Thanks & regard Prabhakar dwivedi

    prabhakar dwivedi

    S 1 Reply Last reply
    0
    • P prabhakar dwivedi

      Hi all I am accessing a web service method, while accessing this i gt Error message like Server was unable to process request. --> Length cannot be less than zero. Parameter name: length:mad::mad::mad::mad::mad::mad: Please help me out what is the problem Web service methos is below obj.Exe(string Command,object[] FieldName,object[] Fieldvalue) soap:Body <Ex xmlns="http://tempuri.org/"> <Name>string</Name> <FieldNames> <anyType /> <anyType /> </FieldNames> <FieldValues> <anyType /> <anyType /> </FieldValues> </SBP_Execute> </soap:Body> </soap:Envelope> Please let me know the problem why the error come :( :( :( :( :( :( :( Thanks & regard Prabhakar dwivedi

      prabhakar dwivedi

      S Offline
      S Offline
      SeMartens
      wrote on last edited by
      #2

      Hi, shouldn't the tags be named and ? The server is throwing an error because you didn't set the arrays correctly. Regards Sebastian

      It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.

      P 1 Reply Last reply
      0
      • S SeMartens

        Hi, shouldn't the tags be named and ? The server is throwing an error because you didn't set the arrays correctly. Regards Sebastian

        It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.

        P Offline
        P Offline
        prabhakar dwivedi
        wrote on last edited by
        #3

        Hi Sebastian, i have set all the array Correctly like object[] _fieldNames = new object[11]; object[] _fieldValues = new object[11]; _fieldNames[0] = "Set"; _fieldValues[0] = 1; Output = call.Ex("A", _fieldNames, _fieldValues); Can u tell me where i am wrong thanks

        prabhakar dwivedi

        S 1 Reply Last reply
        0
        • P prabhakar dwivedi

          Hi Sebastian, i have set all the array Correctly like object[] _fieldNames = new object[11]; object[] _fieldValues = new object[11]; _fieldNames[0] = "Set"; _fieldValues[0] = 1; Output = call.Ex("A", _fieldNames, _fieldValues); Can u tell me where i am wrong thanks

          prabhakar dwivedi

          S Offline
          S Offline
          SeMartens
          wrote on last edited by
          #4

          Well it seems that the client "call" you are using doesn't generate the correct soap-request. Look at the wsdl of the webservice and compare if the soap-request matches the wsdl. If not, the problem is the "call" object. How did you created it?

          It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups