You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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 keyvalue above, since those are generic terms.
I didn't need different attributes for Stream and Transport, But i was not able to figure out how to get different ones for each. It didn't matter in my case since they were the same for both.
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: