Trying to mock soap in swagger

81 views
Skip to first unread message

Geir Sjurseth

unread,
Feb 21, 2015, 4:03:26 AM2/21/15
to swagger-sw...@googlegroups.com
I'm trying to mock up a soap service with apigee-127 but i'm having issues defining the schema for the incoming xml payload. I've looked for examples and I'm just not finding any. Can anyone point me to a reference?

/geir

Ron Ratovsky

unread,
Feb 21, 2015, 11:51:04 AM2/21/15
to swagger-sw...@googlegroups.com
Hi Geir,

While not necessarily impossible, I can't say it's recommended to try and describe a SOAP API using Swagger.
SOAP normally relies on single endpoint servicing different operations based on the SOAP envelope.
REST apis, and as such Swagger, rely on an endpoint describing a single operation.

I'm also not entirely sure how easy it would be to model the full SOAP envelop with Swagger.
It's possible to describe XML to some extent, but we definitely don't support XSDs directly.

Ron

On Sat, Feb 21, 2015 at 11:03 AM, Geir Sjurseth <geir.s...@gmail.com> wrote:
I'm trying to mock up a soap service with apigee-127 but i'm having issues defining the schema for the incoming xml payload. I've looked for examples and I'm just not finding any. Can anyone point me to a reference?

/geir

--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
-----------------------------------------
http://swagger.io
https://twitter.com/SwaggerApi
-----------------------------------------

Geir Sjurseth

unread,
Feb 22, 2015, 6:55:56 AM2/22/15
to swagger-sw...@googlegroups.com
Hi,

Yeah, for me it was less about using a definition to provide a proper and correct model for a soap envelope (i'm happy to just call it a string) and more about being able to use it to quickly spin up mocks.

If not appropriate for this use case it's fine .. And really I'm only using these SOAP mocks to show how I can turn them into a RESTful API instead. SOAP isn't my end game.

Anyway, thanks for the response.

/geir


On Saturday, February 21, 2015 at 5:51:04 PM UTC+1, Ron wrote:
Hi Geir,

While not necessarily impossible, I can't say it's recommended to try and describe a SOAP API using Swagger.
SOAP normally relies on single endpoint servicing different operations based on the SOAP envelope.
REST apis, and as such Swagger, rely on an endpoint describing a single operation.

I'm also not entirely sure how easy it would be to model the full SOAP envelop with Swagger.
It's possible to describe XML to some extent, but we definitely don't support XSDs directly.

Ron
On Sat, Feb 21, 2015 at 11:03 AM, Geir Sjurseth <geir.s...@gmail.com> wrote:
I'm trying to mock up a soap service with apigee-127 but i'm having issues defining the schema for the incoming xml payload. I've looked for examples and I'm just not finding any. Can anyone point me to a reference?

/geir

--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages