Friday, December 3, 2010

Creating XML for SOAP requests

Ok, I'm sure I'm just missing something remarkably obvious, so feel
free to hit me over the head. I'll thank you.

I need to send SOAP requests to UPS for shipping info. As such, I need
to create an XML "file" that can be sent to them, the results of which
being obviously the thing my audience cares about. The problem is that
I would have thought there was some utility for generating XML, but
that doesn't appear to be the case. There is a helper to output XML to
the screen, but this isn't what I want to do. I need to generate the
XML to be passed to the UPS servers inside the Controller's execution.

I realize I could find some way to bounce a request to a view,
somehow, and cache the results. But this seems like an inefficient way
to go about it. I've looked through the Utility class and it only
seems to handle parsing incoming XML, not creating outgoing stuff.
Doesn't that seem like an oversight?

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate