Git Product home page Git Product logo

apex-xml-serializer's People

Contributors

skolakan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

apex-xml-serializer's Issues

json is not serialized in order format

I tried your class for serializing the object to XML. I am facing one problem. While serializing my xml tags are not in order format. Due to that I am getting error when I try to send the SOAP request.

My wrapper class

public class FedexRequestJSON {
	public cls_ProcessShipmentRequest ProcessShipmentRequest;
    
	public class cls_ProcessShipmentRequest {
		public cls_WebAuthenticationDetail WebAuthenticationDetail;
		public cls_ClientDetail ClientDetail;
		public cls_TransactionDetail TransactionDetail;
		public cls_Version Version;
		public cls_RequestedShipment RequestedShipment;
	}
}

My Output on JSON Serialize(I didn't post the complete output just a sample to show how the order was changed)

{
  "ProcessShipmentRequest" : {
    "WebAuthenticationDetail" : {
      "UserCredential" : {
        "Password" : "**",
        "Key" : "***"
      }
    },
    "Version" : {
      "ServiceId" : "ship",
      "Minor" : 0,
      "Major" : 23,
      "Intermediate" : 0
    },

Is it possible to serialize the same order like in Wrapper class order.

NullPointerException when Serialize Array with Null Item

System.NullPointerException: Attempt to de-reference a null object

Class.XMLSerializer.serialize: line 162, column 1
Class.XMLSerializer.serialize: line 183, column 1
Class.XMLSerializer.serialize: line 165, column 1
Class.XMLSerializer.serialize: line 44, column 1
Class.XMLSerializer.serialize: line 57, column 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.