cancel
Showing results for 
Search instead for 
Did you mean: 

Passing multiple parameters in a single SOAP request

Highlighted
New Contributor

Passing multiple parameters in a single SOAP request

Hi All,

 

Please help me in the below query.

 

<soapenv:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://soa.comptel.com/2011/02/instantlink" xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<wsa:ReplyTo>
<wsa:Address>http://10.113.242.34:9001/middleware/ResponseHandler?wsdl</wsa:Address>
</wsa:ReplyTo>
</soapenv:Header>
<soapenv:Body>
<ns1:CreateRequest>
<ns1:RequestHeader>
<ns1:NeType>Order</ns1:NeType>
<ns1:OrderNo>11264068022700</ns1:OrderNo>
</ns1:RequestHeader>
<ns1:RequestParameters>
<ns1:Parameter name="SO1_ACTION" value="Create"/>
<ns1:Parameter name="SO1_DOMAIN_NAME" value="7013"/>
<ns1:Parameter name="SO1_PART_NUMBER" value="CFS_Domain"/>
<ns1:Parameter orderParam="false" name="SO1_SUBSCRIBER_TYPE" value="POSTPAID"/>
</ns1:RequestParameters>
</ns1:CreateRequest>
</soapenv:Body>
</soapenv:Envelope>

 

 

This is the soap request which I am using.
So in the request I am passing only one "<ns1:Parameter name="SO1_DOMAIN_NAME" value="7013"/>"

I want to pass multiple(for example: 0001,0002 till 0999) in a single request.

Can someone please help me in the request like how to add multiple parameters.

I am using SOAP UI2.5 version.

 

Thanks in Advance.

4 REPLIES 4
Highlighted
Community Hero

Hey @ramz41

This isnt soapui issue. Whether you can multiple pass multiple different value attribute values for any element in your soapbody is defined by the .xsd (the schema) that essentially defines the content of your xml instance (contained within your soapbody tag).

No one on the forum will ne able to answer this as this is specific to your particular endpoint youre hitting.

Your .wsdl might include the .xsd detail or it could be persisted in a separate file.

If you can publish your .xsd we'd be able to tell you how to do what you need (if the schema allows it), but thats all we could do im afraid!

Cheers,

Rich
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
Highlighted
Super Contributor

Did you mean passing the multiple values to below tags one by one?

 

<ns1:Parameter name="SO1_DOMAIN_NAME" value="7013"/>

or like this :-

<ns1:Parameter name="SO1_DOMAIN_NAME" value="7013, 0002, 0999"/>
Highlighted

Hi @avidCoder,

Alright fella....considering @ramz41 said "I want to pass multiple(for example: 0001,0002 till 0999) in a single request." and the parent tag of the xml instance in the request is <CreateRequest />, this sounds like he wants to build up some data and i'd suggest he doesn't care about the approach used....just that it gets done!

However as i said....whether you can add multiple numeric comma separated values on the elements 'value' attribute or whether you can add multiple whole tag lines or even IF injecting multiple records in at the same time is allowed is gonna be defined/controlled by the schema (.xsd).


Cheers

Rich
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
Highlighted
Community Manager

Thanks everyone for trying to help! 

Hi @ramz41 , is the problem solved for you? Please let us know. 


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors