Ummm... first suggestion

  soap.createClient(url, *function*(err, client) {

      if (err) {

           console.log(err);

           return;

      }

      client.GetGeoIP(args, *function*(err, result) {

          console.log(result);

      });

  });


On Tue, Sep 17, 2013 at 3:35 PM, Reza Razavipour
<[email protected]>wrote:

> Thanks to all who helped me get milewise/node-soap compiled and installed
> :)
>
> Now I adding creating a client from the wsdl file and I get the following
> error:
>
> TypeError: Cannot call method 'GetGeoIP' of undefined
>
>     at exports.list
> (/Users/rrazavipour-lp/Documents/workspace/Astute/routes/user.js:25:15)
>
>     at options (/Users/rrazavipour-lp/node_modules/soap/lib/soap.js:46:9)
>
>     at endpoint (/Users/rrazavipour-lp/node_modules/soap/lib/soap.js:30:24)
>
>     at exports.open_wsdl
> (/Users/rrazavipour-lp/node_modules/soap/lib/wsdl.js:981:17)
>
>     at Request._callback
> (/Users/rrazavipour-lp/node_modules/soap/lib/http.js:46:13)
>
>     at Request.init.self.callback
> (/Users/rrazavipour-lp/node_modules/soap/node_modules/request/request.js:129:22)
>
>     at Request.EventEmitter.emit (events.js:117:20)
>
>     at ClientRequest.Request.init.self.clientErrorHandler
> (/Users/rrazavipour-lp/node_modules/soap/node_modules/request/request.js:239:10)
>
>     at ClientRequest.EventEmitter.emit (events.js:95:17)
>     at Socket.socketErrorListener (http.js:1528:9)
>
> the WSDL has:
> <wsdl:operation name="GetGeoIP">
> <http:operation location="/GetGeoIP"/>
> <wsdl:input>
> <http:urlEncoded/>
> </wsdl:input>
> <wsdl:output>
> <mime:mimeXml part="Body"/>
> </wsdl:output>
> </wsdl:operation>
>
> and my code is ultra simple...
>
>  *var* soap = require('soap');
>
>   *var* url = 'http://http://www.webservicex.net/geoipservice.asmx?WSDL';
>
>   *var* args = {name: 'value'};
>
>   soap.createClient(url, *function*(err, client) {
>
>       client.GetGeoIP(args, *function*(err, result) {
>
>           console.log(result);
>
>       });
>
>   });
>
>
> What am I missing?
>
> Thanks
>
> Reza
>
>
>  --
> --
> 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
>
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to