Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6560389
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:27:12+00:00 2026-05-25T13:27:12+00:00

I currently have a script that I am trying to use to access an

  • 0

I currently have a script that I am trying to use to access an api that works fine in my browser (navigate to http://zulutrade.com/TradeHistoryIndividual.aspx?pid=24508 to see it working by viewing the XHR requests in developer tools when you change the number of trades visible in the trade history).

My code is as follows:

function getHistory() {

  var wsdl = SoapService.wsdl("http://zulutrade.com/WebServices/Performance.asmx?WSDL");

  var performanceService = wsdl.getService("PerformanceWebService");

  var param = Xml.element("GetProviderTrades", [
              Xml.attribute("xmlns", "http://zulutrade.com/WebServices/Performance.asmx?WSDL"),
              Xml.element("start",["0"]),
              Xml.element("length",["100"]),
              Xml.element("sortBy",["dc"]),
              Xml.element("sortAscending",[false]),
              Xml.element("providerId",["24508"]),
              Xml.element("currencyIds",["[]"]),
              Xml.element("fromDateStr",["1984-04-24"]),
              Xml.element("toDateStr",["2011-09-10"]),
              Xml.element("validTrades",[true]),
              Xml.element("lotSize",["2"])
            ]);

  var result = performanceService.invokeOperation("GetProviderTrades", [param]);

  Logger.log(result);
}

I have copied the params from the payload data that I see in my browser, but I am getting the following error:

Request failed for http://zulutrade.com/WebServices/Performance.asmx returned code 500. Server response: soap:ServerServer was unable to process request. —> There was an error generating the XML document. —> <>f__AnonymousTypee`2[System.Int32,Z.T[]] cannot be serialized because it does not have a parameterless constructor. (line 21)

Can anyone shed any light on what I am doing wrong? Do I need to supply some kind of header data (maybe a cookie or something)?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T13:27:13+00:00Added an answer on May 25, 2026 at 1:27 pm

    The .NET XmlSerializer requires a parameterless constructor for any type that you ask it to serialize/deserialize so you get this kind of error if you use a C# class that has no default constructor as a parameter or return value for a .asmx Web Service. So it looks as though there could be a problem in the Web service code rather than your JavaScript.

    However the XML namespace for the GetProviderTrades element looks wrong to me (given http://zulutrade.com/WebServices/Performance.asmx?op=GetProviderTrades), try replacing the line:

    Xml.attribute("xmlns", "http://zulutrade.com/WebServices/Performance.asmx?WSDL"),
    

    with:

    Xml.attribute("xmlns", "ZuluTrade.WebServices"),
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have a script that scrapes proxies off websites, but I'm just wondering
I have a SQL script that inserts data (via INSERT statements currently numbering in
I have a batch script that calls a process and currently it waits for
I am trying to access the YouTube API with the Zend libraries that I
I have a classic ASP application that I've been constantly trying to modularize. Currently,
I am currently trying to write a little powershell script (I have no experience
I have a SQL script that is being executed in TOAD. Currently, I have
Here is what im trying to achieve. I have a perl script that looks
I currently have a number of Python scripts that help prep a staging area
I have an IronPython script that looks for current running processes using WMI. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.