SOAP pass-through using POST example

Not applicable

Hi,

I want to send a SOAP message into the POST payload, but I can't do it, I tried with API proxy pass-through but I don't know why it doesn't work for me. Anyone has any example?

Thank you so much!

Solved Solved
0 10 398
1 ACCEPTED SOLUTION

Hi Sebastian,

the request payload you sent is incomplete (and there's an extra space between "urn:" and "librarysample.services.apigee.com")

I tried with this one, and it worked just fine:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:librarysample.services.apigee.com">
 <soapenv:Header/>
 <soapenv:Body>
  <urn:countAllAuthors/>
 </soapenv:Body>
</soapenv:Envelope>

View solution in original post

10 REPLIES 10

Hey Sebastian - If you can include/attach the payload you're sending and a zip of your API proxy, that would be a big help. Heads up for @Dino if you're able to help!

Not applicable

I'm attaching the apiproxy and this is the SOAP that i'm trying to send:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:librarysample.services.apigee.com">
<soapenv:Header/>
<soapenv:Body>
<urn:countAllAuthors/>
</soapenv:Body>
</soapenv:Envelope>

libraryexample-rev1-2018-10-05.zip

Hi Sebastian,

the request payload you sent is incomplete (and there's an extra space between "urn:" and "librarysample.services.apigee.com")

I tried with this one, and it worked just fine:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:librarysample.services.apigee.com">
 <soapenv:Header/>
 <soapenv:Body>
  <urn:countAllAuthors/>
 </soapenv:Body>
</soapenv:Envelope>

Hi @deboraelkin,

Thanks for your help, Can I contact you for more questions?

Sure, no problem

How can I do it?

You can post your questions here in the community, so everybody can benefit from the topics discussed. Make sure to start a new thread for different questions

Ok, but my question is about this problem, I don't know why it doesn't work for me, I tried the SOAP that you gave me and I'm getting error 500, what URL are you using for sending the POST?

I deployed your proxy into my environment, and used Postman to generate a POST request to

http://{myorg}-{myenv}.apigee.net/libraryexample

I set the Content-Type header to "text/xml" and the request body to the one I pasted above.

This is the response I got:

<?xml version='1.0' encoding='UTF-8'?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
    <S:Body>
        <countAllAuthorsResponse xmlns="urn:librarysample.services.apigee.com">
            <count>0</count>
        </countAllAuthorsResponse>
    </S:Body>
</S:Envelope>

Wiiii!, it worked for me!, thanks a lot!, you're awesome!