338
Views
1
Comments
Name space prefix issue with SOAP Web service
Question

Hello Everyone,


I am trying to consume a SOAP web service in my application, which should have elements with name space prefixes, something like that -

<soapenv:Envelope xmlns:soapenv="https://schemas.xmlsoap.org/soap/envelope/" xmlns:v2="https://www.example.com/schemas/abc/framework/xyz/abc_common/v2/" xmlns:v1="https://www.example.com/schemas/customer/v1/">
   <soapenv:Header/>
   <soapenv:Body>
      <GetCompanyInfo>
         <v2:Metadata compId="111" timestamp="1900-01-01T05:57:16" location="22" country="US"/>
         <v1:CompanyId>111</v1:CompanyId>
         <v1:CompanyName>abc</v1:CompanyName>
         <v1:PostCode>12345</v1:PostCode>
      </GetCompanyInfo>
   </soapenv:Body>
</soapenv:Envelope>

I am able to generate request without prefixes but I need it with prefixes v1 and v2 as highlighted.

Has anybody faced similar problem, if yes please respond with the solution?


Many thanks in advance.


-Vaibhav Sharma

2019-11-08 16-23-42
César Mateus Conceição

Vaibhav,

With Xml Records Extension in the forge you can try manipulate the base attribute and make this work using Xml Config that extension already have.


Hope helped and Regards

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.