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

How we can add attributes like xsi:type and xmlns:urn #64

Open
nishankkumar1994 opened this issue Oct 9, 2019 · 1 comment
Open

How we can add attributes like xsi:type and xmlns:urn #64

nishankkumar1994 opened this issue Oct 9, 2019 · 1 comment

Comments

@nishankkumar1994
Copy link

nishankkumar1994 commented Oct 9, 2019

Hi @lula,
I am using this where VMBox is class having some attributes...
const vmBoxQuery = new VMBox();
await (provisionClient as any).getBeanList({VMBox: vmBoxQuery}).subscribe(res => console.log('res------', res), err => console.log('err----', err));

Above generates request payload like
<soap:Body><impl:getBeanList><VMBox></VMBox></impl:getBeanList></soap:Body>

But i need something like
<soapenv:Body> <urn:getBeanList soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <VMBox xsi:type="urn:VMBox" xmlns:urn="urn:ProvisionServiceBean_VoiceMail" /> </urn:getBeanList> </soapenv:Body>

is it possible to add xsi:type="urn:VMBox" xmlns:urn="urn:ProvisionServiceBean_VoiceMail" to our VMBox class as an attributes so it can work for us.

Thanks in advance.

@nishankkumar1994
Copy link
Author

nishankkumar1994 commented Oct 9, 2019

I found a way to resolve it. We can add attributes like below..

       const vmBoxQuery = new VMBox();
       vmBoxQuery["attributes"] = {};
       vmBoxQuery["attributes"]["xmlns:urn"] = "urn:ProvisionServiceBean_VoiceMail";
       vmBoxQuery["attributes"]["xsi:type"] = "urn:VMBox";

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