New to node and soap.
Trying a simple test with node-soap:

    var url = 'http://www.webservicex.net/periodictable.asmx?WSDL';

    var args =   {ElementName:'Hydrogen'};

    soap.createClient(url, function(err, client) {
        console.log(JSON.stringify(client.describe()));
        client.GetAtomicNumber(args, function(err, result) {
            console.log(JSON.stringify(result));
            console.log(err);
        });
    });


This logs the following:
{"periodictable":{"periodictableSoap":{"GetAtoms":{"input":{},"output":
{"GetAtomsResult[]":"s:string"}},"GetAtomicWeight":{"input":
{"ElementName[]":"s:string"},"output":
{"GetAtomicWeightResult[]":"s:string"}},"GetAtomicNumber":{"input":
{"ElementName[]":"s:string"},"output":
{"GetAtomicNumberResult[]":"s:string"}},"GetElementSymbol":{"input":
{"ElementName[]":"s:string"},"output":
{"GetElementSymbolResult[]":"s:string"}}},"periodictableSoap12":
{"GetAtoms":{"input":{},"output":
{"GetAtomsResult[]":"s:string"}},"GetAtomicWeight":{"input":
{"ElementName[]":"s:string"},"output":
{"GetAtomicWeightResult[]":"s:string"}},"GetAtomicNumber":{"input":
{"ElementName[]":"s:string"},"output":
{"GetAtomicNumberResult[]":"s:string"}},"GetElementSymbol":{"input":
{"ElementName[]":"s:string"},"output":
{"GetElementSymbolResult[]":"s:string"}}}}}
null
[Error: soap:Server: System.Web.Services.Protocols.SoapException:
Server was unable to process request. ---
>System.Data.SqlClient.SqlException: Procedure or function
'GetAtomicNumber' expects parameter '@ElementName', which was not
supplied.at WebServicex.periodictable.GetAtomicNumber(String
ElementName)--- End of inner exception stack trace ---: [object
Object]]


I always get the 'parameter not supplied' error no matter what service
I connect to. I've tried several variations of the args json but
nothing seems to work. Is there something obvious I'm missing?

Thanks.

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to