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
Improve documentation on custom attributes #151
Comments
thanks, we will update the documentation as soon as possible. |
Just letting you know this helped me, and it probably took me 5+ hours to figure this out. I tried so many things, and this was the final step for me. Also an example would be awesome instead of using Here is an example for the next person looking: Swift:
converts into:
I didn't need different attributes for |
Hi!
First of all, congratulations on this extremely useful library.
I would like to ask you to improve your documentation regarding custom attributes.
I spent some hours trying to do something that I didn't know if was really possible to do with SoapEngine and with some liberal interpretation of some messages exchanges I ended up finding out how to do it, but it would be SOOOO much easier if you documented it up front.. :-)
I was using SoapEngine to connect to a Magento server. At some point, throught some very painful debugging, I found out one of the methods needed to have an array where one of the elements had special attributes, like below:
It is easy to set the "args" tag with the xsi:type="SOAP-ENC:Array" attributes by using [SoapEngine:setValue:forKey:attributes], but I was finding it really hard to set the xsi:type="ns2:Map" attribute to the item tag inside args because it is an element on a list.
I eventually found out that I can create a dictionary which represents a tag using the "value" and "attributes" keys and it would work perfectly.
I didn't find anywhere in the documentation that this is possible; I saw one discussion where you suggest creating a custom class and kinda deduced the above solution from your answers. Please add a similar example to this on your "custom attributes" section on your readme.md because it can help others with the same problem as me.
Thank you and congratulations on your great work!
The text was updated successfully, but these errors were encountered: