Forum Discussion

ramz41's avatar
ramz41
New Contributor
5 years ago

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

  • richie's avatar
    richie
    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
  • avidCoder's avatar
    avidCoder
    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"/>
    • richie's avatar
      richie
      Community Hero
      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
      • sonya_m's avatar
        sonya_m
        SmartBear Alumni (Retired)

        Thanks everyone for trying to help! 

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