Skip to Content
0
Former Member
Apr 07, 2009 at 12:29 PM

Integrating SmallWorld(Gis) and SAP

166 Views

Hi all

We are trying to integrate SAP with SmallWorld. Whenever we are sending the request1 to XI server from SOAPUI, then it shows LOGON ERROR because we are not supplying username and password explicitly.

request1

<?xml version="1.0" encoding="windows-1252" standalone="yes" ?> 
- <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns0="http://Query_Builder">
- <SOAP-ENV:Header>
- <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
- <wsse:UsernameToken>
  <wsse:User>user</wsse:User> 
  <wsse:Password>psswd</wsse:Password> 
  <wsse:sap-client>001</wsse:sap-client> 
  </wsse:UsernameToken>
  </wsse:Security>
  </SOAP-ENV:Header>
- <SOAP-ENV:Body>
- <ns0:Query_Request_MT xmlns:ns0="http://query_builder">
  <Class>DIST_TRANSFORMER</Class> 
  <Class_Type>002</Class_Type> 
  <Weight_Low>0</Weight_Low> 
  <Weight_High>10</Weight_High> 
  </ns0:Query_Request_MT>
  </SOAP-ENV:Body>
  </SOAP-ENV:Envelope>

whereas for the request2 as well as request1 if we provide username and password in the request properties tab in SOAPUI then

request2

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:quer="http://query_builder">
   <soapenv:Header/>
   <soapenv:Body>
      <quer:Query_Request_MT>
         <Class>DIST_TRANSFORMER</Class>
         <Class_Type>002</Class_Type>
         <Weight_Low>0</Weight_Low>
         <Weight_High>10</Weight_High>
      </quer:Query_Request_MT>
   </soapenv:Body>
</soapenv:Envelope>

it gives the correct output.

But we are intending to send the username and password details with the request itself instead of supplying them explicitly.

Thanks in advance

Sam