Skip to content

Instantly share code, notes, and snippets.

@eduardosanzb
Forked from anonymous/soapexample.md
Created November 16, 2016 21:09
Show Gist options
  • Save eduardosanzb/c4ee0f07c3a42a24a6da581f377f495e to your computer and use it in GitHub Desktop.
Save eduardosanzb/c4ee0f07c3a42a24a6da581f377f495e to your computer and use it in GitHub Desktop.

Its mainly in the prefix of a child node (the envelope is not complete):

        <q1:ReportRequest Created="2016-06-10" ID="1">
            <q1:ns1:Requestor>
     

I'm setting the prefix ns1 in my json

  'ns1:Requestor': [...]

But as you can see, The soap client is adding the prefix q1 automatically to the Requestor node. Any idea why!?

@josep2
Copy link

josep2 commented Nov 16, 2016

Hey, which library are you using to convery JSON to XML?

@eduardosanzb
Copy link
Author

eduardosanzb commented Nov 17, 2016

Hey, I'm using node-soap that handle the transformation, but I found a workaround by modifying the sourcecode, avoiding to set the prefix to the child nodes.

@josep2
Copy link

josep2 commented Nov 17, 2016

Alright, sounds like you got it. Best of luck, it's not the easiest road.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment