Giter Club home page Giter Club logo

js-soap-client's People

Contributors

badzia avatar gotshub avatar irontoby avatar kevinfernandes avatar mpsoftdev avatar nimf 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  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

js-soap-client's Issues

SOAPClientParameters._serialize does not handle null objects

It is quite common for soap request/response to have null properties.

The _serialize method crashes attempting to serialize "null" as an object.
An explicit check may be needed before attempting to determine if the object is a "date" or an "array".

How is the CC licensed?

You claim this is CC licensed, but you forked it from a GPL project. Did you have permission to relicense the fork?

soapclient resolving array problem?

When array size is 1,soapclient didn't resolving it as array?I defined xsd as follow,did I defined wrong?:

<xs:element name="getPlantIncidentsResponse"> <xs:complexType> <xs:sequence> <xs:element name="Incidents" type="tns:plantIncident" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> </xs:element>

<xs:complexType name="plantIncident">
    <xs:sequence>
        <xs:element name="id" type="xs:string"/>
        <xs:element name="createDate" type="xs:string"/>
        <xs:element name="Location" type="xs:string"/>
        <xs:element name="RootCause" type="xs:string"/>
    </xs:sequence>
</xs:complexType>

Each object property is being wrapped by the outer object type

This code at or about line 143

            else
                for(var p in o)
                {
                    s += "<" + t + ">";
                    s += SOAPClientParameters._serialize(p, o[p]);
                    s += "</" + t + ">";
                }

causes each property to be wrapped in the start/end tag of the outer object. The start/end tags should be outside the "for" loop.

SOAP-ENC:array not supported on all server platforms

SOAP-ENC:array and SOAP-ENC:arrayType are not supported extensions with WCF services.
The WCF service can be modified to support this extension but the default is to use a standard XSD complex sequence, and you may not have access to the server-side code to change the default handling in WCF (or convince the server side developers to do so).

To handle this, I think the _serialize function needs access to the wsdl types in order to determine the proper handling of arrays.

Note, I am not 100% sure, but it appears that if SOAP-ENC:array is used then the actual node names of the items in the array may be irrelevant, but with the WCF complex sequence, the node names are important and can only be determined from the wsdl.

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.