SOAP service header modification or any alternative

1C:Enterprise platform integration capabilities and techniques

#1
People who like this:0Yes/0No
Interested
Rating: 27
Joined: Apr 5, 2012
Company: 1TÇ Şirketi - Merv Bilgi İşlem Otomasyonu Yazılım Ltd. Şti.

Hi,

I have some questions about realizetion of non standart SOAP service integration.
Do we have possibility to modify headers (and body according to necessity) of soap request?

For example, soap request should be those:

Code
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soapenv:Header>
      <wsse:Securityxmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
         <wsse:UsernameToken>
            <wsse:Username>1tcuser</wsse:Username>
            <wsse:Password>1tcpass</wsse:Password>
         </wsse:UsernameToken>
      </wsse:Security> 
   </soapenv:Header>
   <soap:Body>
      <GetDocumentsList xmlns="http://erp.1tc.com.tr/">
            <parameters xmlns="">
               <AccountID>ABC0002511585</AccountID>
            </parameters>
      </GetDocumentsList>
   </soap:Body>
</soap:Envelope>

I think, even if on WSProxy no possibility to realize it, there should be possibility realize it via HTTPConnection. Can anyone give an example for realization of soap service request via HTTPConnection?

Edited: Murat Yazlıyev - Sep 07, 2015 12:41 AM
 
#2
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Hello, Murat!

Here are two examples:
How to make GET request with HTTPConnection.
How to make POST request with HTTPConnection.

Hope, this helps.

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.