Harsh Makadiya
Harsh Makadiya

Reputation: 1

How to pass the params into soap api when using soap package in nestjs

I wanted to pass the params/attributes into my soap api. providing an example

For example when calling the api through postman I am passing separated="true" like this


<bookingLand>
                    <barcodeRequest separated="true">A4</barcodeRequest>
</bookingLand>

but I dont know how to pass it when calling it through internally in my api

 bookingLand: {
          barcodeRequest: 'A4',
}

Can someone please help me here I have tried using _attributes and $attributes but its giving me an error from api side

I am using this https://www.npmjs.com/package/soap

I tried using AI tools like chatgpt and deepseek but didnt get the answer that i wanted.

Upvotes: 0

Views: 23

Answers (0)

Related Questions