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

Setting attributes in savon #644

Closed
SebastianThorn opened this issue Nov 22, 2014 · 1 comment
Closed

Setting attributes in savon #644

SebastianThorn opened this issue Nov 22, 2014 · 1 comment

Comments

@SebastianThorn
Copy link

In http://savonrb.com/version2/locals.html at the section "attributes" it says:

If you need to use this option, please open an issue and provide you WSDL for debugging.
This should be handled automatically, but we need real world examples to do so.

This is the soap i would like to generate:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cai3="http://schemas.ericsson.com/cai3g1.2/" xmlns:hss="http://schemas.ericsson.com/ma/HSS/">
   <soapenv:Header>
      <cai3:SessionId>ee1f7b0464db51c49b529</cai3:SessionId>
   </soapenv:Header>
   <soapenv:Body>
      <cai3:Create>
         <cai3:MOType>EPSMultiSC@http://schemas.ericsson.com/ma/HSS/</cai3:MOType>
         <cai3:MOId>
            <hss:imsi>123456789012345</hss:imsi>
         </cai3:MOId>
         <cai3:MOAttributes>
            <hss:CreateEPSMultiSC imsi="123456789012345">
               <hss:imsi>123456789012345</hss:imsi>
               <hss:msisdn>46712345678</hss:msisdn>
               <hss:epsProfileId>profile_123</hss:epsProfileId>
            </hss:CreateEPSMultiSC>
         </cai3:MOAttributes>
      </cai3:Create>
   </soapenv:Body>
</soapenv:Envelope>

I can get all but the attribute on this line: <hss:CreateEPSMultiSC imsi="123456789012345">

@SebastianThorn
Copy link
Author

ok, i found out how to do it.
But i have to say it was hard to find, #518
This should be added to http://savonrb.com/version2/locals.html if possible.

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

No branches or pull requests

1 participant