{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/38f9e2bde80f6645036885d233609d69?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"38f9e2bde80f6645036885d233609d69","url":"https://api.github.com/users/jafl","login":"jafl","id":31708},"labels":[],"assignee":null,"updated_at":"2011-11-15T22:13:39Z","comments":5,"closed_at":null,"url":"https://api.github.com/repos/milewise/node-soap/issues/6","body":"Here is my wsdl:\r\n\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<wsdl:definitions name=\"HelloWorldImplService\" targetNamespace=\"http://impl.ws.test.com/\" xmlns:ns1=\"http://ws.test.com/\" xmlns:ns2=\"http://cxf.apache.org/bindings/xformat\" xmlns:soap=\"http://schemas.xmlsoap.org/wsdl/soap/\" xmlns:tns=\"http://impl.ws.test.com/\" xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\r\n\t<wsdl:types>\r\n\t\t<xs:schema attributeFormDefault=\"unqualified\" elementFormDefault=\"unqualified\" targetNamespace=\"http://ws.test.com/\" xmlns:tns=\"http://ws.test.com/\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\">\r\n\t\t\t<xs:element name=\"greet\" type=\"tns:greet\"/>\r\n\t\t\t<xs:element name=\"greetResponse\" type=\"tns:greetResponse\"/>\r\n\t\t\t<xs:complexType name=\"greet\">\r\n\t\t\t\t<xs:sequence>\r\n\t\t\t\t\t<xs:element minOccurs=\"0\" name=\"name\" type=\"xs:string\"/>\r\n\t\t\t\t</xs:sequence>\r\n\t\t\t</xs:complexType>\r\n\t\t\t<xs:complexType name=\"greetResponse\">\r\n\t\t\t\t<xs:sequence>\r\n\t\t\t\t\t<xs:element minOccurs=\"0\" name=\"return\" type=\"xs:string\"/>\r\n\t\t\t\t</xs:sequence>\r\n\t\t\t</xs:complexType>\r\n\t\t</xs:schema>\r\n\t</wsdl:types>\r\n\t<wsdl:portType name=\"HelloWorld\">\r\n\t\t<wsdl:operation name=\"greet\">\r\n\t\t\t<wsdl:input message=\"ns1:greet\" name=\"greet\">\r\n\t\t\t</wsdl:input>\r\n\t\t\t<wsdl:output message=\"ns1:greetResponse\" name=\"greetResponse\">\r\n\t\t\t</wsdl:output>\r\n\t\t</wsdl:operation>\r\n\t</wsdl:portType>\r\n\r\n\t<wsdl:message name=\"greet\">\r\n\t\t<wsdl:part element=\"ns1:greet\" name=\"parameters\">\r\n\t\t</wsdl:part>\r\n\t</wsdl:message>\r\n\t<wsdl:message name=\"greetResponse\">\r\n\t\t<wsdl:part element=\"ns1:greetResponse\" name=\"parameters\">\r\n\t\t</wsdl:part>\r\n\t</wsdl:message>\r\n\t<wsdl:binding name=\"HelloWorldImplServiceSoapBinding\" type=\"ns1:HelloWorld\">\r\n\t\t<soap:binding style=\"document\" transport=\"http://schemas.xmlsoap.org/soap/http\"/>\r\n\t\t<wsdl:operation name=\"greet\">\r\n\t\t\t<soap:operation soapAction=\"\" style=\"document\"/>\r\n\t\t\t<wsdl:input name=\"greet\">\r\n\t\t\t\t<soap:body use=\"literal\"/>\r\n\t\t\t</wsdl:input>\r\n\t\t\t<wsdl:output name=\"greetResponse\">\r\n\t\t\t\t<soap:body use=\"literal\"/>\r\n\t\t\t</wsdl:output>\r\n\t\t</wsdl:operation>\r\n\t</wsdl:binding>\r\n\t<wsdl:service name=\"HelloWorldImplService\">\r\n\t\t<wsdl:port binding=\"tns:HelloWorldImplServiceSoapBinding\" name=\"HelloWorldImplPort\">\r\n\t\t\t<soap:address location=\"http://.../HelloWorld\"/>\r\n\t\t</wsdl:port>\r\n\t</wsdl:service>\r\n</wsdl:definitions>\r\n\r\nThe usual ugly mess :(\r\n\r\nMy code is:\r\n\r\nvar soap = require('soap');\r\nsoap.createClient('./HelloWorld.wsdl', function(err, client)\r\n{\r\n\tclient.greet(\r\n\t{\r\n\t\tname: 'jafl'\r\n\t},\r\n\tfunction(err, result)\r\n\t{\r\n\t\tconsole.log(err);\r\n\t\tconsole.log(result);\r\n\t});\r\n});\r\n\r\nThe request sent by node-soap is:\r\n\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:ns0=\"http://impl.ws.test.com/\"><soap:Header></soap:Header><soap:Body><ns0:greet><ns0:name>jafl</ns0:name></ns0:greet></soap:Body></soap:Envelope>\r\n\r\nThis is the first problem:  It should be <name>, not <ns0:name>\r\n\r\nHowever, I still get a response.  The response received is:\r\n\r\n<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"><soap:Body><ns1:greetResponse xmlns:ns1=\"http://ws.test.com/\"><return>Hello, null!</return></ns1:greetResponse></soap:Body></soap:Envelope>\r\n\r\nThe second problem is that this generates the following error, printed by my console.log(err) statement:\r\n\r\n{ stack: [Getter/Setter],\r\n  arguments: [ 'indexOf', undefined ],\r\n  type: 'non_object_property_call',\r\n  message: [Getter/Setter] }\r\n","html_url":"https://github.com/milewise/node-soap/issues/6","number":6,"title":"Error calling service","id":1766688,"created_at":"2011-09-28T17:56:17Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/3311d85f391fa51f8e5f8990412fd35d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"3311d85f391fa51f8e5f8990412fd35d","url":"https://api.github.com/users/milewise","login":"milewise","id":569623},"updated_at":"2011-11-15T22:13:39Z","url":"https://api.github.com/repos/milewise/node-soap/issues/comments/2752287","body":"Is there a URL for an endpoint I can use to test this WSDL?","id":2752287,"created_at":"2011-11-15T22:13:39Z"}}