{"action":"created","issue":{"url":"https://api.github.com/repos/vpulim/node-soap/issues/838","repository_url":"https://api.github.com/repos/vpulim/node-soap","labels_url":"https://api.github.com/repos/vpulim/node-soap/issues/838/labels{/name}","comments_url":"https://api.github.com/repos/vpulim/node-soap/issues/838/comments","events_url":"https://api.github.com/repos/vpulim/node-soap/issues/838/events","html_url":"https://github.com/vpulim/node-soap/pull/838","id":154893757,"number":838,"title":"Soap request with complexType throws AssertError","user":{"login":"phanikiranwtc","id":6592889,"avatar_url":"https://avatars.githubusercontent.com/u/6592889?v=3","gravatar_id":"","url":"https://api.github.com/users/phanikiranwtc","html_url":"https://github.com/phanikiranwtc","followers_url":"https://api.github.com/users/phanikiranwtc/followers","following_url":"https://api.github.com/users/phanikiranwtc/following{/other_user}","gists_url":"https://api.github.com/users/phanikiranwtc/gists{/gist_id}","starred_url":"https://api.github.com/users/phanikiranwtc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phanikiranwtc/subscriptions","organizations_url":"https://api.github.com/users/phanikiranwtc/orgs","repos_url":"https://api.github.com/users/phanikiranwtc/repos","events_url":"https://api.github.com/users/phanikiranwtc/events{/privacy}","received_events_url":"https://api.github.com/users/phanikiranwtc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":22,"created_at":"2016-05-15T06:45:18Z","updated_at":"2016-05-19T11:35:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/vpulim/node-soap/pulls/838","html_url":"https://github.com/vpulim/node-soap/pull/838","diff_url":"https://github.com/vpulim/node-soap/pull/838.diff","patch_url":"https://github.com/vpulim/node-soap/pull/838.patch"},"body":"Below is the sample of the one operation from my wsdl\r\n\r\n```\r\n<wsdl:operation name=\"queryData\">\r\n<wsdl:input name=\"queryDataRequest\" message=\"tns:queryDataRequest\"/>\r\n<wsdl:output name=\"queryDataResponse\" message=\"tns:queryDataResponse\"/>\r\n</wsdl:operation>\r\n\r\n<wsdl:message name=\"queryDataRequest\">\r\n<wsdl:part name=\"ModelCRUDRequest\" element=\"tns:ModelCRUDRequest\"/>\r\n</wsdl:message>\r\n\r\n\r\n<xsd:complexType name=\"ModelCRUDRequest\">\r\n<xsd:sequence>\r\n<xsd:element maxOccurs=\"1\" minOccurs=\"1\" name=\"ModelCRUD\" type=\"tns:ModelCRUD\"/>\r\n<xsd:element maxOccurs=\"1\" minOccurs=\"1\" name=\"ADLoginRequest\" type=\"tns:ADLoginRequest\"/>\r\n</xsd:sequence>\r\n</xsd:complexType>\r\n\r\n\r\n<xsd:complexType name=\"ModelCRUD\">\r\n<xsd:sequence>\r\n<xsd:element name=\"serviceType\" type=\"xsd:string\"/>\r\n<xsd:element name=\"TableName\" type=\"xsd:string\"/>\r\n<xsd:element name=\"RecordID\" type=\"xsd:int\"/>\r\n<xsd:element name=\"Filter\" type=\"xsd:string\"/>\r\n<xsd:element name=\"Action\">\r\n<xsd:simpleType>\r\n<xsd:restriction base=\"xsd:string\">\r\n<xsd:enumeration value=\"Create\"/>\r\n<xsd:enumeration value=\"Read\"/>\r\n<xsd:enumeration value=\"Update\"/>\r\n<xsd:enumeration value=\"Delete\"/>\r\n</xsd:restriction>\r\n</xsd:simpleType>\r\n</xsd:element>\r\n<xsd:element maxOccurs=\"1\" minOccurs=\"0\" name=\"DataRow\" type=\"tns:DataRow\"/>\r\n</xsd:sequence>\r\n</xsd:complexType>\r\n\r\n<xsd:complexType name=\"ADLoginRequest\">\r\n<xsd:sequence>\r\n<xsd:element name=\"user\" type=\"xsd:string\"/>\r\n<xsd:element name=\"pass\" type=\"xsd:string\"/>\r\n<xsd:element name=\"lang\" type=\"xsd:string\"/>\r\n<xsd:element name=\"ClientID\" type=\"xsd:int\"/>\r\n<xsd:element name=\"RoleID\" type=\"xsd:int\"/>\r\n<xsd:element name=\"OrgID\" type=\"xsd:int\"/>\r\n<xsd:element name=\"WarehouseID\" type=\"xsd:int\"/>\r\n<xsd:element name=\"stage\" type=\"xsd:int\"/>\r\n</xsd:sequence>\r\n</xsd:complexType>\r\n```\r\n\r\n\r\nfor the above operation the input envelop should be generated as below\r\n\r\n` <tns:createData><tns:ModelCRUDRequest><tns:ModelCRUD><tns:serviceType>CreateInterest</tns:serviceType><tns:TableName>WTC_EmployeeInterest</tns:TableName><tns:RecordID>0</tns:RecordID><tns:Filter></tns:Filter><tns:Action>Create</tns:Action><tns:DataRow><tns:field column=\"C_BPartner_ID\"><tns:val>1001047</tns:val></tns:field><tns:field column=\"Interest\"><tns:val>Cooking</tns:val></tns:field></tns:DataRow></tns:ModelCRUD><tns:ADLoginRequest><tns:user>WTCAdmin</tns:user><tns:pass>WTCAdmin</tns:pass><tns:lang>192</tns:lang><tns:ClientID>11</tns:ClientID><tns:RoleID>102</tns:RoleID><tns:OrgID>1000001</tns:OrgID><tns:WarehouseID>1000000</tns:WarehouseID><tns:stage>0</tns:stage></tns:ADLoginRequest></tns:ModelCRUDRequest></tns:createData>`\r\n\r\n\r\nwhere as the current version throws AssertError.\r\n\r\nWhich is fixed in this commit.\r\n"},"comment":{"url":"https://api.github.com/repos/vpulim/node-soap/issues/comments/220299071","html_url":"https://github.com/vpulim/node-soap/pull/838#issuecomment-220299071","issue_url":"https://api.github.com/repos/vpulim/node-soap/issues/838","id":220299071,"user":{"login":"herom","id":2472487,"avatar_url":"https://avatars.githubusercontent.com/u/2472487?v=3","gravatar_id":"","url":"https://api.github.com/users/herom","html_url":"https://github.com/herom","followers_url":"https://api.github.com/users/herom/followers","following_url":"https://api.github.com/users/herom/following{/other_user}","gists_url":"https://api.github.com/users/herom/gists{/gist_id}","starred_url":"https://api.github.com/users/herom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/herom/subscriptions","organizations_url":"https://api.github.com/users/herom/orgs","repos_url":"https://api.github.com/users/herom/repos","events_url":"https://api.github.com/users/herom/events{/privacy}","received_events_url":"https://api.github.com/users/herom/received_events","type":"User","site_admin":false},"created_at":"2016-05-19T11:35:01Z","updated_at":"2016-05-19T11:35:01Z","body":"Thanks a ton @phanikiranwtc :+1: \r\n\r\nCould you please squash your commits and rebase onto master? see our [Guidelines on Submitting a Pull Request](https://github.com/vpulim/node-soap/blob/master/CONTRIBUTING.md#submitting-a-pull-request)"}}