Soap Webservice Input and Output with customize namespace

Soap Webservice Input and Output with customize namespace

  

Hi All,

i am working on customize input and output for soap webservice, can anyone help me to how can i do it in Outsystems,

ex:Request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:viac="http://www.mysite.com">
   <soapenv:Header>
   <ns2:security xmlns:ns2="http://www.mysite.com">
        <ns2:Username>Username</ns2:Username>
            <ns2:Password>Password</ns2:Password>
    </ns2:security>
   </soapenv:Header>
   <soapenv:Body>
      <viac:GetClients>
         <ClientName>Jonh</ClientName>
         <viac:City>London</viac:City>
         <viac:Country>UK</viac:Country>
      </viac:GetClients>
   </soapenv:Body>
</soapenv:Envelope>


and Response:

<ns2:GetClientsResponse xmlns:ns2="http://www.mysite.com">
    <ns2:GetClientsResponse>
        <EmployeeId>0</EmployeeId>
        <Department>SU</Department>
        <Position>PL</Position>
    </ns2:GetClientsResponse>
</ns2:GetClientsResponse>


When you notice in Request, ClientName with Unqualified, and response EmployeeId, Department and Position are Unqualified, and GetClientsResponse node with namespace.


can anyone know is this possible in Outsystems, if not anyother way to make this work.


Thanks,

Balasubramanian

Hey Balu,


Your post was not very clear about what you where really looking for but from what i could understand you are having problems working with xml right? 

Take a look the .oml file in the attachments with a sample of how to work with xml. 


Hope that helps! 


Source: Get Data From XML

Hi Balu,

You need to pass request in xml format and above oml is the perfect example.

Hi Romero,


Thanks for your reply, i am not processing xml, what i am doing is,

i am Exposing new webservice called "GetClients" in soap,and this webmethod have 3 input parameters, and output with list record with 3 fields,


Now when i am using in SoapUI, all the 3 input parameter are Qualified parameters by default, but what is need is one of the parameter with unqualified without namespace prefix, its the same for output.


its like change the default behavior of generating wsdl in outsytems, 

normally when you see the wsdl, you have this line "attributeFormDefault="qualified" elementFormDefault="qualified"" in schema, 

And in the element "<xs:element minOccurs="0" name="ClientName" type="xs:string"/>"


what i need to change is ""attributeFormDefault="unqualified" elementFormDefault="unqualified""" in schema  

And in the element "<xs:element form="unqualified" minOccurs="0" name="entity" type="xs:string"/>" and all the other parameter stays "qualified"


Any suggestion will be more helpful.


Thanks,

Balu