Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix to request template #36

Open
loelsonk opened this issue Jan 22, 2017 · 0 comments
Open

Fix to request template #36

loelsonk opened this issue Jan 22, 2017 · 0 comments

Comments

@loelsonk
Copy link

Hi, first of all I am new to github community. I finally integrated my express server with easysoap.

I found a bug inside request.tpl file that made my soapCall respond with an error.

Response from soap server (nusoap php):
{ Fault: [ { faultcode: 'SOAP-ENV:Client' }, { faultactor: '' }, { faultstring: 'error in msg parsing:\nXML error parsing SOAP payload on line 38: Attribute redefined' }, { detail: '' } ] }

Which basically means attibute xmlns:SOAP-ENV is being duplicated.

Removing line:3 xmlns:SOAP-ENV="<%= envelope.soap_env%>" fixes the problem for me. Not sure if it is the correct fix, Perhaps it is better to move this line to else statement like so:

<% if (envelope.namespaces !== null) { %> <% _.each(envelope.namespaces, function(namespace) { %> <% if (namespace.full !== void 0) { %> xmlns:<%=namespace.short%>="<%=namespace.full%>" <% } %> <% }); %> <% } else { %> xmlns:SOAP-ENV="<%= envelope.soap_env%>" <% } %>

#I've created a pull request for this #35

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant