if I change the wsdl function to some invalid, I get an exception about a 
bad function 
so the GetQuote is correct and the result, not the error, is 
GetQuoteResult [ exception].

Any ideas? I am really stumped.




On Tuesday, September 17, 2013 11:35:52 AM UTC-7, Reza Razavipour 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 nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
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 nodejs+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to